Sambahosting - Cheap Java/JSP reseller VPS Dedicated Servers webhosting!  

Go Back   Sambahosting - Cheap Java/JSP reseller VPS Dedicated Servers webhosting! > General Category > Support Issues
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2009, 12:18 PM
beer beer is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Default 500 Internal server error while installing a script!!!

I am getting 500 internal server error while trying to install a script. It works fine in other hosting accounts I have with other webhosts, so it should be something related with the server. Have you see this kind of errors before?
Reply With Quote
  #2  
Old 04-23-2009, 04:13 AM
violin violin is offline
Junior Member
 
Join Date: Nov 2007
Posts: 29
Default

I've seen this error before, when the file permissions were wrong. You have to use the php files with permission 644 and directories 755. Do you see any messages in the cpanel access logs ?
Reply With Quote
  #3  
Old 04-24-2009, 12:35 PM
beer beer is offline
Junior Member
 
Join Date: May 2008
Posts: 9
Default

hmm yes, my files are having 777 permission and I see some errors like "premature end of script headers"in the error log. This script has a lot of sub-directories with 777 permission, do I need to spend another 4-5 hours to change them to 755? thats hilarious!!!
Reply With Quote
  #4  
Old 04-28-2009, 07:03 AM
OC-Scott OC-Scott is offline
SH Staff
 
Join Date: Nov 2007
Posts: 99
Default

The following commands via SSH help to change all the file permission to 644 & sub directories to 755 recursively

#find ./ -type f -exec chmod 644 {} \;
#find ./ -type d -exec chmod 755 {} \;

Quote:
Originally Posted by beer View Post
hmm yes, my files are having 777 permission and I see some errors like "premature end of script headers"in the error log. This script has a lot of sub-directories with 777 permission, do I need to spend another 4-5 hours to change them to 755? thats hilarious!!!
__________________
Scott Terman
Senior Server Administrator
Sambahosting Inc.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.