I saw that, the worker works with multithreading CPU and for that is faster. Well, I don't get it, why GD was not working and the solution was to install that package (libapache2-mod-php5).
Posts by Delta04
-
-
I have encounter a problem with one of our hosted sites, that use gd to display thumbnails and those images did not appear. In phpinfo, GD was loaded and everything looks OK. After searching the web, I have discovered a thread that was recommending to install libapache2-mod-php5. Problem solved, after the install, all the images are OK.
One thing I notice, during the libapache2-mod-php5 installation,
Code- root@csrv8:~# apt-get install libapache2-mod-php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- apache2-mpm-prefork
- The following packages will be REMOVED:
- apache2-mpm-worker
- The following NEW packages will be installed:
- apache2-mpm-prefork libapache2-mod-php5
- 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
- Need to get 3,139 kB of archives.
- After this operation, 8,718 kB of additional disk space will be used.
- Do you want to continue [Y/n]?
What do you think about the request to replace apache2-mpm worker with apache2-mpm prefork? Is that OK?
OS: Ubuntu 12.04 and 14.04LTS, i-mscp 1.1.14.
-
It's OK. I'm using a dirty hack to "fix" the problem, for the moment. I'm waiting for any reply.
Shell-Script- #!/bin/bash
- #Disable debug output
- set +x
- #Set timezone to Bucharest
- export TZ=Europe/Bucharest
- url="http://www.domain.tld"
- while [ true ]
- do
- code=`curl -sL -w "%{http_code}\\n" "$url" -o /dev/null`
- echo "Found code $code"
- if [ "x$code" = "x200" ]
- then
- echo $(date +"%T") : Site is up.
- sleep 10
- else
- echo $(date +"%T") : Site is down.
- echo Restarting PHP...
- service php5-fpm restart
- if [ $? -eq 0 ]; then
- echo Restart succeeded.
- else
- echo Restart failed.
- fi
- sleep 10
- fi
- done
-
I have some problems with one of our servers that is hosting a high traffic website. To be more exact, from time to time with no reason php5-fm dies and the quick fix is to restart the process.
I wonder what can we tweak to optimize the server for such a big task.A part of the apache2 error log is,
Code- [Sat Sep 27 13:10:58.013184 2014] [fastcgi:error] [pid 23562:tid 139667001292544] (2)No such file or directory: [client 74.6.254.101:39370] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld": connect() failed[Sat Sep 27 13:10:58.013245 2014] [fastcgi:error] [pid 23562:tid 139667001292544] [client 74.6.254.101:39370] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld"[Sat Sep 27 13:10:58.048675 2014] [fastcgi:error] [pid 23562:tid 139666883794688] (2)No such file or directory: [client 68.180.225.108:15248] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld": connect() failed[Sat Sep 27 13:10:58.048726 2014] [fastcgi:error] [pid 23562:tid 139666883794688] [client 68.180.225.108:15248] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld"[Sat Sep 27 13:10:58.079957 2014] [fastcgi:error] [pid 23562:tid 139666808260352] (2)No such file or directory: [client 5.14.222.14:1419] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld": connect() failed, referer: https://www.google.ro/[Sat Sep 27 13:10:58.080007 2014] [fastcgi:error] [pid 23562:tid 139666808260352] [client 5.14.222.14:1419] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld", referer: https://www.google.ro/
The configuration is a cloud server with 8vcpu, 16GB RAM, SSD Storage.
Software. Ubuntu 14.04LTS, Apache 2.4.7, PHP 5.5.9, I-mscp 1.1.14
The website is a Wordpress installation. Traffic of the site is around 10.000 -18.000 unique visitors, and I saw a peak on the 480 simultaneous visitors. Most of the time there are ~100 simultaneous visitors.
I use also memcache and local CDN (w3 total cache plugin) to make the website snappy.PHP Settings for this domain,
Apache tuning, that I have done in apache2.conf
Rest of the apache2 settings are default.
I did some tuning also on /etc/apache2/mods-available/mpm_worker.conf
Any suggestions? Thanks!
-
-
Uninstall, delete, install and all that... already done it.
-
OK. I updated the OpenDkim plugin to the latest version and the problem remains.
-
Hello,
For some time I encounter a problem with the latest version of OpenDkim (0.0.3), installed on I-mscp 1.1.13 in combination with Ubuntu 14.04 LTS.
I did install the opendkim opendkim-tools, the plugin, everything was OK except that when I create and activate OpenDkim for a domain, inside the box, containing the has, all I see is ""v=DKIM1; k=rsa; s=email; "" -
Ok, I did all that and no change. Apache had already in the domain vhost " AllowOverride All ". In root dir of web server, inside .htaccess I did insert " AddHandler .html php5 ". I have added also .html in /etc/php5/fpm/pool.d/ domain.tld.conf.... Did I missed something?
-
Sorry for the late answer. Today I started to modified the files to see if it's working or not. Well, I encounter a small problem with the Apache2 vhost files. The server is running on an Ubuntu 14.04 witch comes with Apache/2.4.7.
On this version of Apache2 things are a bit different than Apache 2.2.x from your example, one of the reason that I can't find,