![]() |
Wordpress, permissions, mod-php, suphp
Hello,
On one of my sites I'm running Wordpress. It is also configured with an FTP user. Wordpress has the ability to update files from its admin panel. But here's the problem: suPHP is much slower than Mod_PHP. Mod_PHP is much faster, but it runs everything as user www-data! So when using mod-php I have to chmod the dir to www-data:www-data and everything runs fast BUT I can't update the software and I can't login with FTP, but with Suphp the site is so slow that it actually locks down.... Guys, I need your advice on this! What should I do? Thanks! Mark |
Use php-fcgi + suexec.
|
Well that's still using php-cgi and it's still too slow!
But I have solved it in a different way: by using ACL. The webroots of these sites are set to user:group www-data:www-data with an ACL entry u:web29:rwX,g:client5:rX and it includes a default. What I did was, I created a script to do all of this for me hourly through a cronjob. Here it is, I hope it will benefit others with the same problem: Code:
#!/bin/bash |
Quote:
So the solution is still to use php-fcgi, you hack is not nescessary and its highly recommended to not use it! To further speed up php scripts, intall eaccelerator or xcache. |
Quote:
Quote:
|
Try to install apache2-mpm-itk +mod_php and configure the creation of new sites.
see http://www.howtoforge.com/forums/showthread.php?t=25918 for more details |
Quote:
14023 web28 20 0 123m 53m 26m S 6.7 2.6 0:03.26 /usr/bin/php-cgi This is what I meant with 'still using cgi' - I selected FastCGI so that's why I wanted to make sure that we are talking about the same thing.. are we? |
Quote:
Quote:
Ify ou want to know if it is running as cgi or fastcgi, just look in the vhost configuration file. Quote:
|
Thanks Till, I have updated it to FastCGI and it does indeed work just as fine. One question remaining though: when I use mod-php and xcache, I can see that php is using xcache from the xcache admin page. However when I use FastCGI I see no web page in xcache's database. Could you help me with this so that xcache does use FastCGI-websites?
|
My problem is known on this page, too:
http://forum.lighttpd.net/topic/16734 Might there be some solution at hand for ispconfig? |
| All times are GMT +2. The time now is 03:44. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.