[BUG] Wrong PHP socket for PHP5.5 proxy

interfasys

Verified User
Joined
Oct 31, 2003
Messages
2,100
Location
Switzerland
Using RC6 with php-fpm
After having installed both PHP 5.4 and 5.5 I found this in
/etc/httpd/conf/extra/httpd-hostname.conf
Code:
ProxyPassMatch ^/roundcube/(.*\.php(/.*)?)$ fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fwebapps.sock/var/www/html/roundcube/$1
ProxyPassMatch ^/webmail/(.*\.php(/.*)?)$ fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fwebapps.sock/var/www/html/webmail/$1
ProxyPassMatch ^/roundcube/(.*\.php55(/.*)?)$ fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fwebapps.sock/var/www/html/roundcube/$1
ProxyPassMatch ^/webmail/(.*\.php55(/.*)?)$ fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fwebapps.sock/var/www/html/webmail/$1

Seems to me like the path for the second set of proxy is wrong
 
That's probably coming from this block
Code:
PHP_INI=/usr/local/lib/php.ini
PHP_INI_FPM53=/usr/local/php53/lib/php.ini
PHP_INI_FPM54=/usr/local/php54/lib/php.ini
PHP_INI_FPM55=/usr/local/php55/lib/php.ini
PHP_BIN=/usr/local/bin/php
PHP_SBIN_FPM53=/usr/local/php53/sbin/php-fpm53
PHP_SBIN_FPM54=/usr/local/php54/sbin/php-fpm54
PHP_SBIN_FPM55=/usr/local/[B][COLOR="#FF0000"]php54[/COLOR][/B]/sbin/php-fpm55

PHP_INI_SUPHP53=/usr/local/php53/lib/php.ini
PHP_INI_SUPHP54=/usr/local/php54/lib/php.ini
PHP_INI_SUPHP55=/usr/local/php55/lib/php.ini
PHP_BIN_SUPHP53=/usr/local/php53/bin/php-cgi53
PHP_BIN_SUPHP54=/usr/local/php54/bin/php-cgi54
PHP_BIN_SUPHP55=/usr/local/[B][COLOR="#FF0000"]php54[/COLOR][/B]/bin/php-cgi55
 
Thank you for testing CB 2.0 and helping to get it stable. The bug is fixed and CB 2.0 will soon be re-uploaded to DA fileservers. We'll soon re-write a lot what's related to PHP-FPM, because mod_proxy_fcgi is going to support UDS in Apache 2.4.8. If we get http://mail-archives.apache.org/[email protected]> fixed too, we'd be very close to the stable release of CB 2.0.
 
Thanks :)
I hope you can rewrite it with some loops without having to replicate all the statements for each PHP version.

Speaking of mod_proxy_fcgi, why is mod_fastcgi still compiled if using exclusively php-fpm? I thought it was one or the other?

Code:
php1_release=5.4
php2_release=5.5
php1_mode=php-fpm
php2_mode=php-fpm
htscanner=yes
php_ini=no
php_timezone=CET
#Possible values - production or development
php_ini_type=production
ioncube=yes
x-mail-header=yes
zend=no
 
Back
Top