Problem when switch to php-fpm

crane

Verified User
Joined
May 19, 2013
Messages
27
Location
Hà Nội
hi,
First, I used fastCGI as the default option of PHP. Today, I switch to php-fpm but in the error_log I see there are the thousands of error lines starting with fcgi:
Code:
[proxy_fcgi:error] [pid 12343:tid 139832447723264] [client 188.225.76.5:56941] AH01071: Got error 'Primary script unknown

And there are more half of user use command php-cgi55.

Code:
[root@csrv02 custombuild]# ./build options
Apache: 2.4.10
mod_ruid2: no
htscanner: no
Dovecot: 2.2.14
AWstats: no
Exim: 4.84
exim.conf update: yes
SpamAssassin: no
ClamAV: no
MySQL: no
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
PHP (default): 5.4 as php-fpm
PHP (additional): 5.5 as suphp
phpMyAdmin: 4.2.10.1-all-languages
ProFTPD: 1.3.5
Pure-FTPd: no
RoundCube webmail: 1.0.3
Replace "php.ini" with './build all' and './build php_ini': no
Auto updates/notifications: no
Run "clean" every time: no
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: yes
Show texts in bold: yes
SquirrelMail: 1.4.22-20140402_0200
Zend Guard Loader: yes
ionCube loader: 4.7.0
Suhosin: 0.9.36

How can I switch all of my account to PHP 5.4 with php-fpm?
 
hi smtalk,
I read issue: https://bugs.php.net/bug.php?id=67998, they said that:

I've found that the following fixes the problem (removing "/" from the end of "localhost"):
AddHandler "proxy:unix:/usr/local/php54/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php54

But official Apache documentation states that "/" ending should be there.

Then, I edit /usr/local/directadmin/data/users/ducphucart/httpd.conf

<Proxy "unix:/usr/local/php54/sockets/ducphucart.sock|fcgi://php-fpm54.ducphucart/">
ProxySet min=0
</Proxy>

to

<Proxy "unix:/usr/local/php54/sockets/ducphucart.sock|fcgi://php-fpm54.ducphucart>
ProxySet min=0
</Proxy>

This site works without errors.

Could you tell me how to update massive httpd.conf in each user folder?

thanks
 
DA pre-release and 1.46.3 (which should be released today) should have it already fixed in DA templates.
 
No, it means that DirectAdmin version 1.46.3 has a fix for that already :) I was not talking about CB version.
 
hi,
After update DA, I run those commands:
./build apache
./build php n
./build rewrite_confs

But with top command, there are many user using php-cgi55 in command column, it's normal?

my options.conf:
#PHP Settings
php1_release=5.5
php1_mode=php-fpm
php2_release=5.4
php2_mode=suphp
opcache=no
htscanner=no
php_ini=no
php_timezone=Asia/Ho_Chi_Minh
php_ini_type=production
ioncube=yes
zend=yes
suhosin=yes
x_mail_header=yes

thanks
 
Do you have any files in /usr/local/directadmin/data/templates/custom ?
 
I have just sent you my server details. Hope you help me soon.
Waiting for your good news.
thank you
 
Back
Top