Wget wget rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm If you already have EPEL installed: wget rpm -Uvh remi-release-7*.rpm Enabling the Repo Now we need to make sure the repo is enabled and select which version you want to install. We need to head over to /etc/yum.repos.d you should inside see a file called remi.repo. Open the file in your favourite editor (Nano, Pico, Vi etc), you’ll see a number of sections. We need to make sure that the first section [remi] is enabled: [remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch #baseurl=mirrorlist=enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi Note the line enabled=1 make sure this is set! Now technically you can actually go ahead and install PHP, but you will only get PHP 5.4.*. Which might be want to you want is so skip ahead to the next section! If we want PHP 5.5 or PHP 5.6 we need to do a bit more work, further down in the repo.repo file you will see two additional sections [remi-php55] and [remi-php56], decide which PHP version you want to install and then enable the correct.
Read Also: Install and Enable RPMForge Repository in RHEL/CentOS 7/6/5/4. What is EPEL. EPEL (Extra Packages for Enterprise Linux) is open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS. How to install LAMP (Apache, MySQL, PHP) stack on CentOS 7 on February 1, 2017 by Amir Leave a comment This tutorial will concentrate on how to install and configure famous LAMP stack (Linux, Apache, MySQL, PHP ).
So for PHP 5.6 we would change to: [remi-php56] name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch #baseurl=mirrorlist=# WARNING: If you enable this repository, you must also enable 'remi' enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi Once you made your changes save your modified file and quit your editor. Installing PHP sudo yum install php php-gd php-mysql php-mcrypt As you can see PHP is installing version 5.5.20-2.el6.remi from the remi-php55 repo! Once you have hit Y to confirm the install restart apache and magical unicorns you have a better version of PHP!
You can also change your mind in the future by going back into the remi. Epson lq 300 ii driver download. repo file and enable a different PHP version and then run yum update and if you have moved from 5.5 to 5.6 it will upgrade PHP for you. If you want to downgrade for any reason you will need to remove PHP (sudo yum remove php*) and then reinstall the PHP modules you want.
Install Apache and PHP 7 Follow the below steps to install Apache and PHP 7 on CentOS, RHEL and Fedora systems. Step #1: Install EPEL and REMI Repository First of all install required repository to install apache and php 7. On CentOS 7 and RHEL 7 # rpm -Uvh # rpm -Uvh On CentOS 6 and RHEL 6 # rpm -Uvh # rpm -Uvh On Fedora 26 # sudo dnf install # sudo dnf install # sudo dnf install On Fedora 25 # sudo dnf install # sudo dnf install # sudo dnf install On Fedora 24 # sudo dnf install # sudo dnf install # sudo dnf install Step #2: Install Apache and PHP 7 Once enabling the required repository on your system, now install apache and PHP 7 on your system. Follow the below command to install apache and php. On CentOS and RHEL $ sudo yum --enablerepo=remi,remi-php71 install httpd php php-common On Fedora 26 $ sudo dnf --enablerepo=remi install httpd php php-common On Fedora 25/24 # sudo dnf --enablerepo=remi --enablerepo=remi-php71 install httpd php php-common Step #3: Install PHP Modules To setup a php application you will need to install required PHP modules for your application.
Ubuntu Download
Follow the below command to install php modules. On CentOS and RHEL # sudo yum --enablerepo=remi,remi-php71 install php-cli php-pear php-pdo php-mysqlnd php-pgsql php-gd php-mbstring php-mcrypt php-xml On Fedora 26 # sudo dnf --enablerepo=remi install php-cli php-pear php-pdo php-mysqlnd php-gd php-mbstring php-mcrypt php-xml On Fedora 25/24 # sudo dnf --enablerepo=remi --enablerepo=remi-php71 install php-cli php-pear php-pdo php-gd php-mbstring php-mcrypt php-xml Step #4: Restart Apache Service After installing PHP, PHP modules and Apache web server now restart the apache web service and enable to auto start at boot time. For CentOS/RHEL 7 and Fedora 26/25/24 # sudo systemctl start httpd.service # sudo systemctl enable httpd.service For CentOS/RHEL 6 # service httpd start # chkconfig --levels 235 httpd on Congratulation!, you have successfully configured php application on CentOS, RHEL and Fedora system.