Ok PHP-FPM is working now and I have uploaded a test site. But the site isn´t so fast and it seem to be overloading my server. I hade the same problem with normal fcgi, I thought that PHP-FPM wouldn´t overload my server. Here is my test site: http://www.ffatest.se/ Is there something I can do to make PHP-FPM to not overload my server? My server is a VPS with 3,5 GB RAM and 2 CPU cores.
I suggest you install munin to find out what's going on. A server like yours shouldn't be overloaded with a simple Apache/PHP-FPM setup (unless you have loads of traffic), so I guess there's a problem somewhere else (maybe slow hard drives?).
It is a test site so it has no more than 5 visitors at one time. I have now installed Munin but I don´t know how to interpret the information. It would be great if you could take a look at it here: http://31.192.226.88/munin/ffatest.se/index.html
Your system is currently idle, its not overloaded. It can have many different reasons when a site appears slow, e.g. inclusion of external content or javascript scripts that load slow, slow harddisk or programming mistakes in the site scripts.
If you try to access the site now you can see that it is barley loading: http://www.ffatest.se/ Yes the RAM isn´t overloading right now but the site isn´t loading. If I restart apache the site will work normally for a while again before it stops loading again. If you wait long enough, a couple of hours, the RAM will overload. If I use mod php instead of PHP-FPM the site will load normally and the RAM will never overload, this only happends when I use FCGI in some form.
There must be a general config issue on your server, the problem is not a php speed problem, maybe related to vlogger. We could have saved yourself a lot of time if you would have posted this indformation first instaed of asking for php-fpm. Check the global apache error.log and the error.log of the website for errors.
The log seems to only contain one error but instead there are several hundred rows with that same error. Here it is: BEGIN failed--compilation aborted at /usr/local/ispconfig/server/scripts/vlogger line 148. piped log program ' /usr/local/ispconfig/server/scripts/vlogger -s access.log -t "%Y%m%d-access.log" -d "/etc/vlogger-dbi.conf" /var/log/ispconfig/httpd' failed unexpectedly Can't locate Date/Format.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /usr/local/ispcon$
There is a perllibrary missing. Please run: apt-get install libtimedate-perl libdbi-perl and then restart apache.
Do you have already a php binary cache like xcache or apc installed? If not, then run: apt-get install php5-xcache and restart apache before you do the load tests.
Yes it seems to be working correct now! Another thing, I was going to install mod security but I can´t seem to find a guide that works. I tried this guide but replaced the version number with 2.6.5 instead which is the latest version: http://www.crucialp.com/resources/t...ng/how-to-install-mod_security-for-apache.php But when I run: tar zxvf mod_security-2.6.5.tar.gz I get this error message: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
You can try this: Code: mv mod_security-2.6.5.tar.gz mod_security-2.6.5.tar tar xvf mod_security-2.6.5.tar
Now I get this message instead: tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors