One-click installation of lamp in CentOS

Source: Internet
Author: User

One-click installation of lamp in CentOS
Step 1: Download, decompress, and grant permissions: [html] view plaincopy

  1. Wget -- no-check-certificatehttps: // github.com/teddysun/lamp-yum/archive/master.zip-Olamp-yum.zip
  2. Unziplamp-yum.zip
  3. Cdlamp-yum-master/
  4. Chmod + x *. sh
Step 2: Install LAMP

Enter the following command in the terminal:

./lamp.sh 2>&1 | tee lamp.log
TIPS:
  • Lamp uninstall: one-click LAMP deletion (remember to back up data before deleting it !)
Directory description:
  • MySQL or MariaDB database Directory:/var/lib/mysql/
Command Overview:
  • MySQL or MariaDB command:

    /etc/init.d/mysqld(start|stop|restart|reload|status)
  • Apache command:

    /etc/init.d/httpd(start|stop|restart|reload|status)
Step 3: domain name resolution

Cd/etc/httpd/conf and then edit the httpd. conf file

Vim httpd. conf find the last few lines in the file # <VirtualHost *: 80>, and then add the following code to the end tag of this module.

[Html] view plaincopy
  1. <VirtualHost *: 80>
  2. ServerAdminwww.ugomi.com
  3. DocumentRoot "/data/www/ugomi"
  4. ServerNamewww.ugomi.com
  5. </VirtualHost>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.