Excerpt |
---|
You need to run yum in order to use PHP after setup your CentOS 8. Even though you have httpd, PHP may need to be installed manually. |
First of all, you need to check if you have httpd on your CentOS 8 server as following:
Code Block |
---|
ls /usr/sbin/httpd |
If it does not exist, you can install it simple as following:
Code Block |
---|
yum -y install httpd |
If everything is okay, please run below commands to install PHP packages you need.
Code Block |
---|
yum update yum install make gcc libssh2 php-devel php-pear libssh2-devel pecl install -f ssh2 echo "extension=ssh2.so" > /etc/php.d/50-ssh2.ini yum install php php-common php-devel php-bcmath php-gd php-pdo php-pear php-mysqlnd php-mbstring php-xml tidy php-tidy php-soap php-pecl-apcu php-mcrypt php-pecl-memcache php-intl php-zip redis ImageMagick-devel |
Actually I faced below errors while I install PHP packages
Code Block |
---|
No match for argument: php-tidy No match for argument: php-pecl-ssh2 No match for argument: php-mcrypt No match for argument: php-pecl-memcache |