Hi Everyone,
i'm experiencing a problem with php versions that come out of the box with Plesk Onyx 17.5.3. The problem i have that all php versions out of the box are compiled with "Thread Safety" disabled and i want to enable it as it is required for php pthreads module. Is there any way i can do that on plesk onyx?
I have compiled an additional php-7.0.18 to
/opt/plesk/php/7.0-TS/
using this configuration
./configure --prefix=/opt/plesk/php/7.0-TS --bindir=/opt/plesk/php/7.0-TS/bin --sbindir=/opt/plesk/php/7.0-TS/sbin --libexecdir=/opt/plesk/php/7.0-TS/lib64 --datadir=/opt/plesk/php/7.0-TS/share --sysconfdir=/opt/plesk/php/7.0-TS/etc --sharedstatedir=/opt/plesk/php/7.0-TS/com --localstatedir=/opt/plesk/php/7.0-TS/var --libdir=/opt/plesk/php/7.0-TS/lib64 --includedir=/opt/plesk/php/7.0-TS/include --infodir=/opt/plesk/php/7.0-TS/share/info --mandir=/opt/plesk/php/7.0-TS/share/man --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --with-libdir=lib64 --cache-file=../config.cache --with-config-file-path=/opt/plesk/php/7.0-TS/etc --with-config-file-scan-dir=/opt/plesk/php/7.0-TS/etc/php.d --disable-debug --with-pear=/opt/plesk/php/7.0-TS/share/pear/ --with-pic --disable-rpath --with-bz2 --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-kerberos --enable-calendar --with-libxml-dir=/usr --enable-xml --enable-phpdbg --with-enchant=shared,/usr --with-litespeed --enable-fpm --with-fpm-acl --without-gd --disable-dom --disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --disable-xmlwriter --without-sqlite3 --disable-phar --disable-fileinfo --disable-json --without-pspell --disable-wddx --without-curl --disable-posix --disable-sysvmsg --disable-sysvshm --disable-sysvsem --with-fpm-systemd build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu --enable-maintainer-zts --enable-soap=shared --enable-cgi
make -j4
make -j4 install
added php handler to plesk for php-fpm
plesk bin php_handler --add -displayname "7.0 Thread Safety" -path /opt/plesk/php/7.0-TS/sbin/php-fpm -clipath /opt/plesk/php/7.0-TS/bin/php -phpini /opt/plesk/php/7.0-TS/etc/php.ini -type fpm -service php70-TS-fpm -poold /opt/plesk/php/7.0-TS/etc/php-fpm.d/ -id custom-php70-ts-fpm
added php handler to plesk for php-fastcgi
plesk bin php_handler --add -displayname "7.0.18 Thread Safety" -path /opt/plesk/php/7.0-TS/bin/php-cgi -clipath /opt/plesk/php/7.0-TS/bin/php -phpini /opt/plesk/php/7.0-TS/etc/php.ini -type fastcgi -id custom-php70-ts-fastcgi
server is responding with a status of 503 (Service Unavailable)
at this point i'm able to pick installed additional php version from plesk for each of the domains however I'm missing something and as soon as i pick newly installed php either fpm or fastcgi the server is responding with a status of 503 (Service Unavailable)
php error_log
[proxy:error] [pid 9965:tid 139787540027136] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/example.com/php-fpm.sock (*) failed
[proxy_fcgi:error] [pid 9965:tid 139787540027136] [client x.x.x.x:z] AH01079: failed to make connection to backend: httpd-UDS
Can somebody advice how do i troubleshoot this? and maybe share command line code on how to compile additional php for Plesk Onyx 17.5.3 from source
i'm experiencing a problem with php versions that come out of the box with Plesk Onyx 17.5.3. The problem i have that all php versions out of the box are compiled with "Thread Safety" disabled and i want to enable it as it is required for php pthreads module. Is there any way i can do that on plesk onyx?
I have compiled an additional php-7.0.18 to
/opt/plesk/php/7.0-TS/
using this configuration
./configure --prefix=/opt/plesk/php/7.0-TS --bindir=/opt/plesk/php/7.0-TS/bin --sbindir=/opt/plesk/php/7.0-TS/sbin --libexecdir=/opt/plesk/php/7.0-TS/lib64 --datadir=/opt/plesk/php/7.0-TS/share --sysconfdir=/opt/plesk/php/7.0-TS/etc --sharedstatedir=/opt/plesk/php/7.0-TS/com --localstatedir=/opt/plesk/php/7.0-TS/var --libdir=/opt/plesk/php/7.0-TS/lib64 --includedir=/opt/plesk/php/7.0-TS/include --infodir=/opt/plesk/php/7.0-TS/share/info --mandir=/opt/plesk/php/7.0-TS/share/man --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --with-libdir=lib64 --cache-file=../config.cache --with-config-file-path=/opt/plesk/php/7.0-TS/etc --with-config-file-scan-dir=/opt/plesk/php/7.0-TS/etc/php.d --disable-debug --with-pear=/opt/plesk/php/7.0-TS/share/pear/ --with-pic --disable-rpath --with-bz2 --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-kerberos --enable-calendar --with-libxml-dir=/usr --enable-xml --enable-phpdbg --with-enchant=shared,/usr --with-litespeed --enable-fpm --with-fpm-acl --without-gd --disable-dom --disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --disable-xmlwriter --without-sqlite3 --disable-phar --disable-fileinfo --disable-json --without-pspell --disable-wddx --without-curl --disable-posix --disable-sysvmsg --disable-sysvshm --disable-sysvsem --with-fpm-systemd build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu --enable-maintainer-zts --enable-soap=shared --enable-cgi
make -j4
make -j4 install
added php handler to plesk for php-fpm
plesk bin php_handler --add -displayname "7.0 Thread Safety" -path /opt/plesk/php/7.0-TS/sbin/php-fpm -clipath /opt/plesk/php/7.0-TS/bin/php -phpini /opt/plesk/php/7.0-TS/etc/php.ini -type fpm -service php70-TS-fpm -poold /opt/plesk/php/7.0-TS/etc/php-fpm.d/ -id custom-php70-ts-fpm
added php handler to plesk for php-fastcgi
plesk bin php_handler --add -displayname "7.0.18 Thread Safety" -path /opt/plesk/php/7.0-TS/bin/php-cgi -clipath /opt/plesk/php/7.0-TS/bin/php -phpini /opt/plesk/php/7.0-TS/etc/php.ini -type fastcgi -id custom-php70-ts-fastcgi
server is responding with a status of 503 (Service Unavailable)
at this point i'm able to pick installed additional php version from plesk for each of the domains however I'm missing something and as soon as i pick newly installed php either fpm or fastcgi the server is responding with a status of 503 (Service Unavailable)
php error_log
[proxy:error] [pid 9965:tid 139787540027136] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/example.com/php-fpm.sock (*) failed
[proxy_fcgi:error] [pid 9965:tid 139787540027136] [client x.x.x.x:z] AH01079: failed to make connection to backend: httpd-UDS
Can somebody advice how do i troubleshoot this? and maybe share command line code on how to compile additional php for Plesk Onyx 17.5.3 from source