Fixes in phpo
This commit is contained in:
parent
c5a9654f8b
commit
71ad1d0fff
1 changed files with 20 additions and 3 deletions
|
|
@ -24,6 +24,23 @@ elif linux_distro=='debian' or linux_distro=='ubuntu':
|
|||
print('Error, cannot install php...')
|
||||
exit(1)
|
||||
elif linux_distro=='rocky' or linux_distro=='fedora':
|
||||
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)
|
||||
|
||||
if linux_distro=='rocky':
|
||||
|
||||
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)
|
||||
|
||||
if linux_distro=='fedora':
|
||||
|
||||
# In fedora, install some extra packages for get modular php packages from remi.
|
||||
|
||||
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:
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue