Strange Error from Fris. index.php files generate 500 error

Status
Not open for further replies.

manik

Member
Messages
49
Reaction score
0
Points
6
Dear Friends at X10,
I am having a strange error which was not occurring when we were on LOTUS.

When my site address is typed http://www.manik.in , it opens http://www.manik.in/cgi-sys/defaultwebpage.cgi which should not be the default page. It should open index.php or index.html by default.

I can't open index.php files on my website even if by typing the address so the default pages won't open. These are generating 500 internal server error.

http://www.manik.in/index.php
http://www.manik.in/StudSupp/index.php

Where as pages having similar structure and composition opens fine.http://www.manik.in/StudSupp/embedded.php works as usual. The files have the same syntax combination. Earlier these pages never showed any error.

Further the mail system on Fris is not working. I set up mx entries to forward my mails and it worked fine and I am having my mail delivered to gmail.
Someone please help.
Manik.:frown:
 
Last edited:

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
I'm not seeing the default website error page, although it is now showing 500 errors on every request. The first thing to check would be to see if you have any .htaccess files in the root of the domain and try renaming them.
 

manik

Member
Messages
49
Reaction score
0
Points
6
I'm not seeing the default website error page, although it is now showing 500 errors on every request. The first thing to check would be to see if you have any .htaccess files in the root of the domain and try renaming them.

Hi, Can you please elaborate? I need .htaccess for anti leech.

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://manik.in/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://manik.in$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manik.in/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manik.in$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ [URL="http://manik.in/"]http://manik.in[/URL][R,NC]
ErrorDocument 404 /404.shtml
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
Often 500 errors are caused by something in .htaccess .
Yours seems to be OK ( a phony file name brings up your custom 404 page for me ).

Is your index page a .php page? Make sure the permissions are set to 0755 .
Is there anything 'special' going on, redirects, etc?
 

manik

Member
Messages
49
Reaction score
0
Points
6
Is your index page a .php page? Make sure the permissions are set to 0755 .
Is there anything 'special' going on, redirects, etc?

Yes, my index is index.php. I don't have any tool to set the permission. Can you tell how to find it out?.

There is nothing special going on.

--Manik.
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
cPanel --> File Manager
check the box next to index.php to select
click "key" icon on top menu, "Change Permissions"
All get 'Read' and 'Execute', User gets 'Write' ... should show 755. Click 'Change Permissions'
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
change your .htaccess file to this

PHP:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://manik.in/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://manik.in$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manik.in/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manik.in$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://manik.in[R,NC]
ErrorDocument 404 /404.shtml
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
change your .htaccess file to this

PHP:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://manik.in/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://manik.in$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manik.in/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.manik.in$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://manik.in[R,NC]
ErrorDocument 404 /404.shtml

While I agree that, due to the recent reconfigurations, .htaccess files should have

RewriteBase /

included, I am pretty sure that is not the cause of his problem. The rewrite rule only kicks in on image files and then it does a url redirect, instead of internal rewrite. His site is throwing a 500 when a .php file is requested.

I forgot to mention that he can also check the Error Log from the cPanel page. It might have some info.
 

manik

Member
Messages
49
Reaction score
0
Points
6
Thanks Zubair and Dlukin for your timely help,
The solution has worked and reputation added.

Regards :biggrin: ,
Manik.

---------- Post added at 12:21 PM ---------- Previous post was at 12:21 PM ----------

Admins,
Please close thread as the target support has been achieved.

- Manik.
 
Last edited:

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
you are welcome, keep using x10Hosting ;)

***Thread Closed***
 
Status
Not open for further replies.
Top