Thursday 21 April 2016

Install MariaDB Apache PHP LAMP in CentOS 7


1. Install mariadb (successor of MySQL)
# yum install mariadb mariadb-server -y

2. install Apache
# yum install httpd -y

3. install PHP
# yum install php php-mysql -y

4. Configure Apache
#systemctl start httpd.service
#systemctl enable httpd.service

5. Configure MariaDB:
# systemctl start mariadb
#mysql_secure_installation
all answer Y
#systemctl enable mariadb.service

6.Configure PHP:
#systemctl restart httpd.service
search PHP modules:
#yum search php-
get info of module:
#yum info package_name
install PHP modules:
#yum install package1 package2...

7. Test PHP
vi /var/www/html/info.php
put in file:
save file
open firewall:
# firewall-cmd --permanent --zone=public --add-service=http
# firewall-cmd --permanent --zone=public --add-service=https
# firewall-cmd --reload

in browser, input:
http://your_server_IP_address/info.php
after success: #rm /var/www/html/info.php
Next steps: install mail server: WebMail : Squirrelmail < Roundcube < Horde ; migrate code and data; install SSL; change DNS to new IP

1 comment:

  1. The Kona Floor Lamp can elevate the look of your bedroom or living area. A vibrant walnut wood finish is mixed with antique brass metals and a cream textured fabric shade,
    creating a style that can fit perfectly into mid-century modern, art deco or eclectic inspired homes. With a 61'' height and a 2.5'' thick square pole.
    For more detail visit ths links:konalamp

    ReplyDelete

Search