Not able to successfully install PHP 7.4

Laurynas

New member
Joined
Feb 17, 2020
Messages
2
I'm trying to install PHP 7.4 on server with CentOS 6.10 and DirectAdmin v.1.60.3, hower not able to do it successfully.

I'm using commands:
Code:
cd /usr/local/directadmin/custombuild 
./build set_fastest
./build update
./build set php4_release 7.4
./build set php4_mode php-fpm
./build php n
./build rewrite_confs
However PHP 7.4 is not installed. I can see it on dropdown menu and can choose it, however then website shows 503 error.

Part of the output from command ./build php n:
Code:
Gracefully shutting down php-fpm70:  done
Starting php-fpm70:  done
Gracefully shutting down php-fpm56: . done
Starting php-fpm56:  done
Gracefully shutting down php-fpm72:  done
Starting php-fpm72: Failed loading /usr/local/lib/ZendOptimizer_5.2.so:  /usr/local/lib/ZendOptimizer_5.2.so: undefined symbol: zend_opcode_handlers
 done
./build: line 15826: /etc/init.d/php-fpm74: No such file or directory
error reading information on service php-fpm74: No such file or directory
Gracefully shutting down php-fpm72:  done
Starting php-fpm72: Failed loading /usr/local/lib/ZendOptimizer_5.2.so:  /usr/local/lib/ZendOptimizer_5.2.so: undefined symbol: zend_opcode_handlers
 done
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Rewriting all users httpd.conf files, please wait...
Debug mode. Level 10

dataskq: command: action=rewrite&value=httpd
PHP 7.2.27 Installed.
Found /usr/local/directadmin/custombuild/php-7.4.2.tar.gz
Extracting ...
Done.
Configuring php-7.4.2...
Patching php-fpm to not fail on startup if User quota maxed out on socket chown
patching file sapi/fpm/fpm/fpm_unix.c
Hunk #1 succeeded at 234 (offset -1 lines).
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,111
Location
LT, EU
PHP 7.4 compilation is missing in your pasted output :) As for other versions of PHP - it seems you've loaded ZendOptimizer manually for PHP 7.2, it shouldn't be loaded there (but that's not the cause).
 

Laurynas

New member
Joined
Feb 17, 2020
Messages
2
Yep, ./build update_versions solved the problem by installing PHP 7.4, thanks.
 
Top