
19th May 2012, 16:57
|
|
Member
|
|
Join Date: May 2012
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Found the solution now! PHP-FPM seems to be working fine now!
|

19th May 2012, 17:31
|
|
Member
|
|
Join Date: May 2012
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

21st May 2012, 10:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
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?).
|

21st May 2012, 14:10
|
|
Member
|
|
Join Date: May 2012
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

21st May 2012, 14:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,894
Thanks: 693
Thanked 4,191 Times in 3,208 Posts
|
|
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.
|

21st May 2012, 14:29
|
|
Member
|
|
Join Date: May 2012
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

21st May 2012, 14:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,894
Thanks: 693
Thanked 4,191 Times in 3,208 Posts
|
|
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.
|

21st May 2012, 15:02
|
|
Member
|
|
Join Date: May 2012
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Where can I find the apache error log?
I have attached the sites error log.
|

21st May 2012, 15:14
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,894
Thanks: 693
Thanked 4,191 Times in 3,208 Posts
|
|
Quote:
Originally Posted by erkan
Where can I find the apache error log?
|
/var/log/apache2/
|

21st May 2012, 16:11
|
|
Member
|
|
Join Date: May 2012
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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$
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 14:11.
|
|
Recent comments
4 hours 59 min ago
14 hours 27 min ago
15 hours 16 min ago
18 hours 50 min ago
23 hours 14 min ago
23 hours 36 min ago
1 day 1 hour ago
1 day 11 hours ago
1 day 16 hours ago
1 day 18 hours ago