How to add a website on a Linux VM instance

Source: Internet
Author: User
How to add a website on a Linux cloud host I bought a PHP space for a website but I don't know how to configure it, so I searched the website, we hope to help you with the following configuration paths. The standard environment paths provided by the website cloud shall prevail. If you install them separately, Please configure them according to the actual installation path.
1. log on to your Linux cloud host and enter the Web server configuration folder. Run the command: CD/etc/httpd/CONF.
2. Back up the web server configuration file. Run the command: CP httpd. conf httpd. conf. Bak.
3. Modify the Web server configuration file. Run the command: VI httpd. conf.
4. Add website configuration information;
1) press the letter I to enter the editing mode;
2) at the end of the configuration file, add
<Virtualhost *: 80>
Serveradmin admin @ domain
DocumentRoot/webserver/wwwroot/phpcmsv9
Servername test.com
Serveralias www.test.com
Directoryindex index.html index. php index.htm
<Directory "/webbserver/wwwroot/phpcmsv9">
Options + des
AllowOverride none
Order allow, deny
Allow from all
</Directory>
</Virtualhost>
3) Save the changes. Press ESC, enter ": WQ", and press Enter;
4) Make the configuration take effect. Run the command: Service httpd restart
5) Test the website. Enter the domain name in the browser to test the settings.

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.