I have a server which seems to be working fine for the most part except with a wordpress install, where it is proving impossible to apply any updates either to plugins or wordpress itself. This became apparent as the server was being set up but the server manager I hired liked to go walkabout for extended periods and eventually disappeared.
I have just hired another server manager to look at this and he tells me this problem exists because the server has been set up using mod_php which he advises against and said it could be fixed by switching to mod_fcgi. After many hours of trying however, every time he attempts to fix this and restarts the httpd you see the "Internal Server Error" page with the error in the logs. He has tried changing the client limits.
He said:
"The fix is to use either:
suPHP
CGI
FastCGI
which run under the sites username. Any files made are made under your name, which resolves the plugin issue. The only PHP process that works on your server is mod_php, which, while fast, is not that secure as it runs under "apache".
FastCGI and CGI come up with the same issue:
[Sun Sep 19 05:06:45 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Sun Sep 19 05:06:45 2010] [error] [client 124.168.0.12] Premature end of script headers: phpinfo.php
suPHP also refuses to work."
Does anybody here know how to get this to work? It seems to be surprisingly tricky.
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
Using php-fcgi is realy easy in ispconfig, you just have to select it in the website settings. Go to the website settings, select "php-fcgi" in the php settings and enable the "suexec" checkbox. Then click on save and wait a minute to get the changes applied.
If you get any errors with your php application, then you most likely uploaded the files with a wrong user, e.g. root. You have to chown all files to the website user and client group then. For details see error.log of the website.
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
1) Which tutorial did you use to install the server.
2) Most likely he created the phpinfo file under the wrong user. Please post the output of the command:
ls -la phpinfo.php
from within the website directory.
Quote:
Then he tried the suexec box with the same result.
This is not optional. php-fcgi and suexec should be enabled together.
Recent comments
16 hours 31 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 6 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 23 hours ago
2 days 4 hours ago
2 days 5 hours ago