Results 1 to 25 of 26
Thread: All sites have 500 errors
-
11-20-2009, 09:04 PM #1Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
All sites have 500 errors
I have about 100 sites on my server and all are going 500 internal server error. What could cause this to happen? I don't see anything in the apache error logs other than the normal stuff (favico and missing 404 errors).
-
11-20-2009, 09:06 PM #2Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
It seems that some have 403 errors as well.
-
11-20-2009, 09:20 PM #3Retired Moderator
- Join Date
- Jan 2005
- Location
- Darwin, Australia
- Posts
- 1,339
Anything changed with PHP?
This could happen for example if suPHP was installed on the serverWeb Hosting Plus
Premium Australian Web Hosting
-
11-20-2009, 09:51 PM #4Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
No, nothing and the new development is that it's across to vps servers I have. Not just one.
-
11-20-2009, 10:37 PM #5Web Hosting Evangelist
- Join Date
- Sep 2008
- Location
- NewYork
- Posts
- 474
before anything take a backup for your files, then check the owner for the files,
Code:chown owner:owner filename
Code:chown owner:owner *.php
Code:chown *.php 755 { or 644 if they needed }
-
11-20-2009, 11:17 PM #6Web Hosting Master
- Join Date
- Jun 2009
- Posts
- 672
I think all 500 errors would regard to server errors and wrong configurations on script permissions.
-
11-21-2009, 12:48 AM #7Web Hosting Guru
- Join Date
- Nov 2003
- Location
- Kherson, Ukraine
- Posts
- 267
Error 500 must be logged.
May be you have few error logs, for example for virtual hosts?
May be you using apache 1.3 and your log grown larger than 2GB?Private remote administrator of Linux servers - www.petrov.ks.ua
Quality hosting - Host-Web-Site.com
-
11-21-2009, 02:43 AM #8Junior Guru
- Join Date
- May 2009
- Location
- On a Speck!!!!!
- Posts
- 216
Clear the Apache logs and then give it a try.
Regards,
Tom.
Freelance System Administrator
-
11-21-2009, 03:02 AM #9Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Might be PHP segmentation fault.
-
11-21-2009, 03:09 AM #10Web Hosting Evangelist
- Join Date
- Sep 2008
- Posts
- 545
Your server configurations might be changed.
-
11-21-2009, 03:19 AM #11Web Hosting Master
- Join Date
- Jul 2009
- Posts
- 1,568
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux
-
11-21-2009, 06:23 AM #12Temporarily Suspended
- Join Date
- Feb 2006
- Location
- India
- Posts
- 858
Could be a problem with file permissions.
-
11-21-2009, 09:42 AM #13Support Facility
- Join Date
- Jun 2009
- Posts
- 2,335
This errors indicate that there is definetley something wrong with the web server where your all sites are located. Its seems that something is gone wrong with your apache server. Check the permission of the directories containing the web sites this should be 755.
-
11-21-2009, 10:57 AM #14Sure we can!
- Join Date
- Oct 2003
- Location
- Morocco
- Posts
- 550
did you recently changed php config / installed suexec or such ?
RofyHost - Affordable Shared & Reseller Hosting Since 2003
Proud Moroccan
-
11-21-2009, 03:11 PM #15Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
I didn't, but Unixy was able to help me get it fixed. It turned out that all file permission were changed. I'm not sure how that could have happened. I didn't touch anything on the server before it happened so I think it was either a) a security breach, or b) a failed update to cpanel or possibly a 3rd party add on?
-
11-21-2009, 03:13 PM #16Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
What's interesting is, I have two boxes and they both ended up going the same route about an hour apart. The login information on both is different which makes me suspect some kind of auto update did it...SSHD was failing this morning and when I tracked down the error it was file permissions yet again...
-
11-22-2009, 08:03 PM #17Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
I just wanted to give a shoutout to unixy.net for their help. Very fast and knowledgable support guys over there... I averted a disaster and it was all thanks to the techs at unixy.net's in depth knowledge. I spent hours looking for a resolution and they solved the problem in a matter of minutes! Get in touch with Unixy if you run into any crippling errors before you give up!
-
11-22-2009, 08:09 PM #18Newbie
- Join Date
- Nov 2009
- Posts
- 23
-
11-23-2009, 05:01 AM #19Web Hosting Guru
- Join Date
- Nov 2009
- Location
- Nasik,India
- Posts
- 252
Hi,
for 500 error then you having problem with public_html permission
just have look there........
-
12-03-2009, 08:14 PM #20Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
So this happened again and its definately soemthing to do with messed up permissions. Very frustrating. I fixed it on my own this time and noticed 3 things:
1. Public_html directories have to be chmod to 0755 when they are 0750 on my other box otherwise I get 403 errors.
2. Seems like .htaccess files have been added to all directories.
3. All users and groups are lost as far as ownership. They are simply blank. No owner.
All this happens in the home dir
I have done nothing to cause this. I was in my car driving from the office when it happened. No upgrades, no changes. The error log file is choked with htaccess errors. Permission denied so I can't see what initially caused it.
-
12-03-2009, 08:33 PM #21Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
For public_html normal ownership / permissions would be user:apache 750, but if you've lost the ownership then it makes sense that you'd need world-readable permissions (755).
But only root can change ownership. That and magically-appearing .htaccess files would make me suspect you may have been rooted. What's in the new .htaccess files anyway?
Get a security expert to take a very close look.Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
-
12-03-2009, 08:44 PM #22Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
Actually, the .htaccess was a false alarm...what I DID notice though was
553-Can't open that file: Permission denied ftp
I also loads to / in ftp and nothing is there...
When all users try to ftp...
-
12-03-2009, 10:34 PM #23Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
More symptoms now. User packages have all been reset and show as have zero features (looks like they don't have permission to create their own packages)
-
12-03-2009, 11:48 PM #24Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
It looks like its basically a matter of re syncing cpanel and home permissions. Does anyone know how to do this? I have tried, I can get the sites up but all the backend (account creations, created dbs, creating packages) and ftp are still not working.
-
12-04-2009, 09:44 PM #25Junior Guru Wannabe
- Join Date
- Dec 2004
- Location
- Ottawa, ON
- Posts
- 41
After many hours of trial and error I fixed the problem. This worked for me:
I had to run the following to totally recover:
/scripts/checkbsdgroups
/scripts/chownpublichtmls
Followed by
login to root whm
go to whm >> Resellers >> Reseller Center >> Reset Resellers
Select all Resellers under Reset package permissions to default
Click the reset button.
Before the next step make sure you have an ACL list created with your default permissions.
go to whm >> Resellers >> Reseller Center >> Reset Resellers
Select all Resellers under Apply an ACL list to multiple resellers
Select the appropriate ACL list
Hit apply.
Once that is done you should be back to normal.
You may want to also run:
/scripts/fixeverything/
upcp --force
then
service named restart
service httpd restart
just to clean up anything else.
Similar Threads
-
500 errors on CGI scripts
By geekyhillbilly in forum Programming DiscussionReplies: 3Last Post: 11-07-2009, 01:09 PM -
http / php 500 errors
By Chinese Democracy in forum Hosting Security and TechnologyReplies: 11Last Post: 06-15-2009, 03:20 PM -
premature errors, 500 [urgent please]
By NoAgendas in forum Hosting Security and TechnologyReplies: 11Last Post: 09-06-2006, 09:22 AM -
Need help with 500 errors and apache config
By iamNakor in forum Hosting Security and TechnologyReplies: 11Last Post: 02-12-2005, 02:51 AM -
500 Internal server errors
By sangamg in forum Hosting Security and TechnologyReplies: 3Last Post: 04-07-2004, 08:25 PM