How To Install Libapache2-mod-php5 In Centos

Posted By admin On 10.02.20

The latest major release of PHP version 7.0 has been released with lots of speed optimizations and security. So you should try this version for your development. This tutorial will help you to install PHP 7.0, Apache >= 2.4.17, & MySQL 5.6 on Ubuntu 15.10, 15.04 & 14.04 LTS release. To setup LAMP stack on Ubuntu 16.04 LTS, visit our new tutorial below.

This tutorial shows how to install an Apache web server on CentOS 7 server with PHP (mod_php) and MySQL database. The acronym LAMP is short for Linux, Apache, MySQL, PHP. This updated tutorial shows the installation of the latest PHP versions (7.0, 7.1 and 7.2) on CentOS 7.4. How To Install PHP on Linux. Following command will install PHP and libapache2-mod-php5. Sudo dnf -y install php php-mysql For CentOS, RHEL, Fedora 21 and.

Install PHP 7

First, install python-software-properties package on your system which provides add-apt-repository command then use the following set of commands to add PPA for PHP 7 in your Ubuntu system and install it. The gaze of orpheus.

Install Apache 2.4

After successful installation, let’s begin installing Apache 2.4. Use the following set of commands to install Apache2 on your Ubuntu system available in default apt repositories.

Install MySQL 5.6

Use the following commands to install or upgrade MySQL 5.6 on your Ubuntu systems. At the last update of this tutorial MySQL, 5.6.27 is latest available MySQL version series of MySQL 5.6.X.

Install Other Requirements

You may also need to install modules like PHP7-MySQL, libapache2-mod-php7.0 etc based on your application requirements. Use the following command to find our available php 7 modules.

Above command will list all available PHP7 modules for installation, Let’s begin installation of modules.

Verify Setup

Finally verify installation of PHP7 with Apache2. Josh byrne. Let’s create a file info.php on website document root using following content.

How To Install Libapache2-mod-php5 In Centos

Now browse this file in web browser. It will so all the details about versions and installation.

Hello there,
maybe I am total stupid but I try to install libapache2-mod-php5 on a vserver for our developer. But it does not work :
yum install mod-php5-apache2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.newnanutilities.org
* base: mirror.rackspace.com
* epel: mirrors.tummy.com
How To Install Libapache2-mod-php5 In Centos * extras: mirrors.serveraxis.net
* updates: mirrors.tummy.com
Setting up Install Process
No package mod-php5-apache2 available.
Nothing to do
Is the name of the package changed or any other way to install it ? Thanks for your kindly help.

How To Install Libapache2-mod-php5 In Centos Download


Best,
Arne