PHP version not changing in multi php setup

ericovk

Verified User
Joined
Apr 17, 2012
Messages
228
Location
Rotterdam, Netherlands
I already had a multi php setup with php 5.6 and 7.3. Just changed it to php 7.4 and 7.3 and rebuild it within DirectAdmin with the Martynas "custombuild" plugin. I only rebuilt php (should be fine I guess?)

After building I changed the users php from 7.3 to 7.4, but shell tells me the user is still on 7.3.26.

I waited for 10+ minutes, manually did ./build rewrite_confs and then restarted httpd. No other result.

I checked settings in DA. Everything looks good:
/usr/local/directadmin/directadmin c | grep php
php_mail_log=1
php_mail_log_dir=
parse_php_mail_log_at_limit=1
disable_php_script_at_limit_threshold=80
disable_php_script_at_limit_minimum=100
show_php_version=1
php_fpm_restarts=0
php_home_tmp_session_save_path=0
php_fpm_max_children_default=100
brute_force_pma_log=/var/www/html/phpMyAdmin/log/auth.log
php_version_selector=1
set_php_bin_path_in_crons=0
set_php_bin_path_in_shell=0
set_php_ini_scan_dir_in_crons=0

# grep php options.conf
php1_release=7.3
php1_mode=php-fpm
php2_release=7.4
php2_mode=php-fpm
php_ini=no
php_timezone=Europe/Amsterdam
php_ini_type=production
phpmyadmin=yes
phpmyadmin_ver=4
suhosin_php_uploadscan=no
secure_php=no
php3_release=no
php4_release=no
php3_mode=php-fpm
php4_mode=php-fpm
phpmyadmin_public=yes
 
Sorry, but I didn't understand what you wrote, ikkeben?

I am running php as php-fpm. Running the VPS on CentOS 6 though. Could this be the root cause?
 
Sorry, but I didn't understand what you wrote, ikkeben?

I am running php as php-fpm. Running the VPS on CentOS 6 though. Could this be the root cause?
php1_release always used as shell version, because you always has at least this one version installed.
you can't change shell ver via php selector, only by reinstalling php1_release. or use CloudLinux - it can change shell too.
Or create own alias for bashrc to use any php ver in shell.
 
I swapped php versions (php1_release=7.4 and php2_release=7.3), but I see the /usr/local/php74 folder is almost empty. Only a lib folder is in there. php73 folder has a lot more folders and files.
 
Back
Top