Skip to content

Instantly share code, notes, and snippets.

@francosalcedo
Last active April 16, 2018 02:03
Show Gist options
  • Save francosalcedo/6955ef47040e5d710829b360bad95221 to your computer and use it in GitHub Desktop.
Save francosalcedo/6955ef47040e5d710829b360bad95221 to your computer and use it in GitHub Desktop.
PHP all versions on CENTOS 7 - REMI REPO configure .SO file for httpd
-- Install remi repository:
(Need epel repository :: yum install epel-release)
cd /tmp
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -ivh remi-release-7.rpm
-- Install php
-- remplace 70 for other version (71,72)
yum install php70-php-bcmath php70-php-cli php70-php-common php70-php-fpm php70-php-gd php70-php-intl php70-php-json php70-php-mbstring php70-php-mcrypt php70-php-mysqlnd php70-php-opcache php70-php-pdo php70-php-pear php70-php-pecl-uploadprogress php70-php-pecl-zip php70-php-soap php70-php-xml php70-php-xmlrpc
-- Install .so remi compilated for Apache httpd (remplaze 70 for other versions 71,72)
yum install php70-php-embedded
-- Configure in httpd(apache)
-- locate .so
/opt/remi/php{version}/root/lib64/libphp{version}.so
/etc/httpd/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment