My site is not up.

Status
Not open for further replies.

gandhire

New Member
Messages
13
Reaction score
0
Points
0
Hi,

I was waiting for the server migration to be over. It looks like my site is still not up after migration.

www.gandhirealestates.co.cc

Could you please look into the issue.

Thanks and regards,

gandhire
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
Hi,

I was waiting for the server migration to be over. It looks like my site is still not up after migration.

www.gandhirealestates.co.cc

Could you please look into the issue.

Thanks and regards,

gandhire

Hi gandhire,

Your site gandhirealestates.co.cc is loading 500.shtml, Or the site is returning 500 error? Check your error logs to know what is going on?
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Your site is giving 500 Internal server error...

Go to cpanel file manager and check your .htaccess file..
If you don`t know much about that post the code of this file here. We will try to help you.

Edit: 3 minutes late ;)
 
Last edited:

gandhire

New Member
Messages
13
Reaction score
0
Points
0
Hi guys,

Thanks for your reply.

I have checked for (.htaccess) file. It does not appear anywhere in cPanel - File Manager.
When I search for (.htaccess) it shows a few locations (public_html, public html/file/users) and so on...

It shows there are 11 such files in different locations, but none is visible.
Also when I double click on one of these files, it goes to the folder location but the file still is missing.

I have checked error log, but its blank. :dunno:

I am a bit confused as database exists and so does the application files.....?

Regards,

Amit
 
Last edited:

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Hi guys,

Thanks for your reply.

I have checked error log, but its blank. :dunno:

.....?

Just follow what i said
Go to cpanel file manager and check your .htaccess file..
If you don`t know much about that post the code of this file here. We will try to help you.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
I have checked for .htaccess files.

But it dosen't exist or I am unable to find it.

Could it be a hidden file? If so how to access hidden files?

Thanks,

Amit

YES this is a hidden file...

If you are using cpanel file manager then click on "Show dot file" While opening File Manager from cpanel..

If you are using FTP client Then This can be found in preference of client..
 

gandhire

New Member
Messages
13
Reaction score
0
Points
0
Ok here is the .htaccess file:

=-----------------

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName gandhirealestates.co.cc
AuthUserFile /home/gandhire/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/gandhire/public_html/_vti_pvt/service.grp
=------------------


The .htaccess-or is as follows:

=------------------
# SEARCH ENINGE FRIENDLY URLS FOR OR 2.5+
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
RewriteEngine On
Rewriterule ^index.html index.php
RewriteRule listing-(.*)-([0-9]*).html index.php?action=listingview&listingID=$2 [L]
RewriteRule page-(.*)-([0-9]*).html index.php?action=page_display&PageID=$2 [L]
RewriteRule search.html index.php?action=searchpage [L]
RewriteRule searchresults.html index.php?action=searchresults [L]
RewriteRule agents.html index.php?action=view_users [L]
RewriteRule view_favorites.html index.php?action=view_favorites [L]
RewriteRule calculator.html index.php?action=calculator&popup=yes [L]
RewriteRule saved_searches.html index.php?action=view_saved_searches [L]
RewriteRule listing_image_([0-9]*).html index.php?action=view_listing_image&image_id=$1 [L]
RewriteRule logout.html index.php?action=logout [L]
RewriteRule member_signup.html index.php?action=signup&type=member [L]
RewriteRule agent_signup.html index.php?action=signup&type=agent [L]
RewriteRule member_login.html index.php?action=member_login [L]
RewriteRule edit_profile_([0-9]*).html index.php?action=edit_profile&user_id=$1 [L]
RewriteRule agent-(.*)-([0-9]*).html index.php?action=view_user&user=$2 [L]
RewriteRule (.*)-searchresults-([0-9]*).html index.php?action=searchresults&pclass[]=$2 [L]
RewriteRule contact-agent-(.*)-([0-9]*).html index.php?action=contact_agent&popup=yes&listing_id=$2 [L]
RewriteRule (.*)-search-([0-9]*).html index.php?action=search_step_2&pclass[]=$2 [L]
RewriteRule article-(.*)-([0-9]*).html index.php?action=blog_view_article&ArticleID=$2 [L]
RewriteRule blog.html index.php?action=blog_index

#Set Error pages
ErrorDocument 500 /500.shtml


=------------


Thanks,
Amit
Edit:
Ok here is the .htaccess file:
.
.
.
.
RewriteRule contact-agent-(.*)-([0-9]*).html index.php?action=contact_agent&popup=yes&listing_id=$2 [L]
RewriteRule (.*)-search-([0-9]*).html index.php?action=search_step_2&pclass[]=$2 [L]
RewriteRule article-(.*)-([0-9]*).html index.php?action=blog_view_article&ArticleID=$2 [L]
RewriteRule blog.html index.php?action=blog_index

#Set Error pages
ErrorDocument 500 /500.shtml


=------------


Thanks,
Amit

Is it the last line that is cousing issues? :nuts:
 
Last edited:

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
remove these lines from .htaccess
AuthName gandhirealestates.co.cc
AuthUserFile /home/gandhire/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/gandhire/public_html/_vti_pvt/service.grp

also download .htaccess-or on your computer and delete it from your public_html folder..
 

gandhire

New Member
Messages
13
Reaction score
0
Points
0
remove these lines from .htaccess


also download .htaccess-or on your computer and delete it from your public_html folder..


No improvement.

The code looks like this now:
+------------------------------

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

+-------------------
I have also removed the .htaccess-or file
Still I get the same 500.shtml page!

Regards,
Amit
 
Last edited:

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Remove all code from .htaccess file and paste this code..
PHP:
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

This is 100% working. I test it on my account
 

gandhire

New Member
Messages
13
Reaction score
0
Points
0
Remove all code from .htaccess file and paste this code..
PHP:
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
 
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

This is 100% working. I test it on my account


Ok. Here is the fix for that.

No doubt a few files went missing as a result of server migration that happend a short while back, because of which the index.php file was unable to find them on web drive and 500.shtml file was showing up every time.

Changing .htaccess file didn't prove to be useful beacause of the same reason.

How did I find out???

I replaced the code in index.php with "hello" and guess what it worked.

But I was lucky that my database was intact and I had backup of files I had changed.
Next I had to uninstall my orealty script and reinstall it.

I restored modified files and database; and its back to norma.

Lucky to be back!!!:biggrin:

Thanks for your support though!

Regards,

Amit
 
Status
Not open for further replies.
Top