Fixes in php install
This commit is contained in:
parent
694f422d11
commit
56f4361929
1 changed files with 22 additions and 7 deletions
|
|
@ -27,9 +27,24 @@ elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='almalinux
|
|||
|
||||
if linux_distro=='rocky' or linux_distro=='almalinux':
|
||||
|
||||
if call("sudo dnf install -y php php-gd php-mysqlnd php-fpm php-zip", shell=True) > 0:
|
||||
print('Error, cannot install php...')
|
||||
exit(1)
|
||||
# In fedora, install some extra packages for get modular php packages from remi.
|
||||
|
||||
rh_version=distro.version()
|
||||
|
||||
"""
|
||||
dnf config-manager --set-enabled crb
|
||||
|
||||
Command to install the EPEL repository configuration package:
|
||||
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
||||
|
||||
Command to install the Remi repository configuration package:
|
||||
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
|
||||
"""
|
||||
|
||||
if call("dnf config-manager --set-enabled crb && dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-%s.noarch.rpm && dnf install https://rpms.remirepo.net/enterprise/remi-release-%s.rpm" % (rh_version, rh_version), shell=True) > 0:
|
||||
print('Error, cannot enable remi repo...')
|
||||
exit(1)
|
||||
|
||||
|
||||
if linux_distro=='fedora':
|
||||
|
||||
|
|
@ -37,10 +52,10 @@ elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='almalinux
|
|||
|
||||
fedora_version=distro.version()
|
||||
|
||||
if call("dnf -y install https://rpms.remirepo.net/fedora/remi-release-%s.rpm && dnf config-manager --set-enabled remi" % fedora_version, shell=True) > 0:
|
||||
if call("dnf -y install https://rpms.remirepo.net/fedora/remi-release-%s.rpm && dnf config-manager setopt remi.enabled=1" % fedora_version, shell=True) > 0:
|
||||
print('Error, cannot enable remi repo...')
|
||||
exit(1)
|
||||
|
||||
if call("sudo dnf -y install php82 php82-php-gd php82-php-mysqlnd php82-php-imap php82-php-intl php82-php-fpm php82-php-process composer unzip", shell=True) > 0:
|
||||
print('Error, cannot install php...')
|
||||
exit(1)
|
||||
if call("sudo dnf -y install php84 php84-php-gd php84-php-mysqlnd php84-php-imap php84-php-intl php84-php-fpm php84-php-process composer unzip", shell=True) > 0:
|
||||
print('Error, cannot install php...')
|
||||
exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue