Example of LAMP website environment configuration and domain name binding in CentOS

Source: Internet
Author: User

First, install the LAMP one-click package environment

Currently, this environment package is based on CENTOS 5 or 6 32 or 64-bit systems.

The code is as follows: Copy code
Wget http://soft.laozuo.org/lamp/lamp_centos1.0.tar.gz
Tar zxvf lamp_centos1.0.tar.gz
Cd centos
Sh install. sh

Enter the installation package of the above command and press enter, and then enter the MYSQL password we need to set.

The installation environment is PHP5.4, and the default MYSQL password is admin123. You can set the default ROOT password.

The preceding figure shows the interface after successful installation.

Second, use the LAMP environment to add domain names to build sites

The code is as follows: Copy code
Sh/root/lamp/vhost. sh-I youripaddress

Use the following command to add a site. Replace youripaddress with the IP address of our VPS.

After adding the domain name, the website directory is in the var/www/domain name folder.
Finally, we can use the SFTP or sh/root/lamp/vsftpd. sh command to add FTP users to manage website files. The default Database Directory is managed at http: // ipaddress/phpmyadmin. You can also modify the default database path.

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.