Script to install LAMP stack PHP 7.3 in CentOS 6

Share this post to your friends !
  • 1
    Share

Script to install LAMP stack PHP 7.3 in CentOS 6
5 (100%) 1 vote[s]

WriteBash - This article, I will guide you to use the script to install LAMP stack PHP 7.3 in CentOS 6.10.

About lab server and script

I use a test server running CentOS 6.10 (Final) operating system 64bit.

The script I wrote will install the software package as follows.

  • Apache: 2.2.15 (Unix).
  • MariaDB: 10.3.13
  • PHP: 7.3.3 (cli) use Remi’s repository.

Download and use script

First, we will download this script file from my gitlab repository to the server. You type the command below.

# yum install wget -y && wget https://gitlab.com/Danny_Pham/WriteBash.com/raw/master/Install/11-Script_install_LAMP_PHP_7.3_in_CentOS_6.sh -O install_lamp.sh

Assign execution permissions to the script.

# chmod 700 install_lamp.sh

And execute the script.

# ./install_lamp.sh

Check the version and service status

You type the following commands to check the version of LAMP stack installed.

script-to-install-lamp-stack-php-7-3-in-centos-6 Script to install LAMP stack PHP 7.3 in CentOS 6
Install LAMP stack PHP 7.3 in CentOS 6.10.

Type to check Apache’s version.

[root@centos6 ~]# apachectl -v
Server version: Apache/2.2.15 (Unix)
Server built:   Jun 19 2018 15:45:13

And type this command to check MariaDB’s version.

[root@centos6 ~]# mysql -V
mysql  Ver 15.1 Distrib 10.3.13-MariaDB, for Linux (x86_64) using readline 5.1

Type this to check PHP’s version.

[root@centos6 ~]# php -v
PHP 7.3.3 (cli) (built: Mar  5 2019 18:50:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies

To check service status, type commands as like below.

[root@centos6 ~]# service httpd status
httpd (pid  742) is running...
[root@centos6 ~]# 
[root@centos6 ~]# service mysql status
 SUCCESS! MariaDB running (468)

Conclusion

The installation of LAMP stack PHP 7.3 has been successful. You have a environment to run your website. Now you need to set up virtualhost for your website.

This script only saves time installing the LAMP stack components, but it doesn’t complete the entire environment for you. You need to edit it manually to fit your website.

If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.


Share this post to your friends !
  • 1
    Share
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

single post bottom banner
«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.