Why Nostr? What is Njump?
2025-03-11 15:14:06
in reply to

utopiArte on Nostr: apparently changes in alternatives do not change the php version to php8.3 ls -l ...

apparently changes in alternatives do not change the php version to php8.3
ls -l /etc/apache2/sites/avilable displayes:
php7.2.conf
php7.2.load
php8.1.conf
php8.1.load
php8.3.conf
php8.3.loada2enmod to enable an Apache module a2dismod to disable a module.

root@VPShosting:~# a2enmod php7.2.conf php7.2.load php8.1.conf php8.1.load php8.3.conf php8.3.load

didn't work

print results
ERROR: Module php7.2.conf does not exist!
Considering dependency mpm_prefork for php7.2:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.2:
Enabling module php7.2.
ERROR: Module php8.1.conf does not exist!
Considering dependency mpm_prefork for php8.1:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.1:
Module php8.1 already enabled
ERROR: Module php8.3.conf does not exist!
Considering dependency mpm_prefork for php8.3:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.3:
Enabling module php8.3.
To activate the new configuration, you need to run:
systemctl restart apache2
root@VPShosting:/etc/apache2/mods-enabled# ls -l
php7.2.conf -> ../mods-available/php7.2.conf
php7.2.load -> ../mods-available/php7.2.load
php8.1.conf -> ../mods-available/php8.1.conf
php8.1.load -> ../mods-available/php8.1.load
php8.3.conf -> ../mods-available/php8.3.conf
php8.3.load -> ../mods-available/php8.3.load


root@VPShosting:~# systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.




root@tupambae:/etc/apache2/mods-enabled# a2dismod php7.2.conf php7.2.load php8.3.conf php8.3.loadprintERROR: Module php7.2.conf does not exist!
Module php7.2 disabled.
ERROR: Module php8.3.conf does not exist!
Module php8.3 disabled.
To activate the new configuration, you need to run:
systemctl restart apache2

root@tupambae:/etc/apache2/mods-enabled# systemctl restart apache2
Author Public Key
npub1294khcygmzxr8fudt4dany08xnz7w3ufqqf4f835regcwpdwqamq82upjh