Install LAMP and PHP 5.6 on Centos 7
This is the second post on Centos 7 setup. In the previous article we hardened ssh and created new users. Today we will install LAMP on Centos 7 and latest PHP 5.6 with all necessary extensions.
1. Install Apache
|
|
Check that everything works fine, by pointing browser to http://your_server_IP_address/. You should see Apache test page.
2. Enable apache to start on boot
|
|
3. Install Mariadb (popular MySQL fork)
|
|
4. Install PHP 5.6
We will get php5.6 from remi repository.
Install EPEL repository
|
|
Install remi repository
|
|
Enable remi
|
|
Install php 5.6, redis and opcache on Centos 7
|
|
Then create file /var/www/html/test.php with <?phpinfo(); ?> and open http://your_server_IP_address/test.php in browser. You should be able to see information about php with all modules installed.
5. Install composer
|
|
That’s it LAMP stack is installed! You can now set up Wordpress or Laravel-based website. In the next article we will install NodeJS 4, NPM and PM2 on Centos 7.