Ubuntu Configuration Virtual Host

Source: Internet
Author: User
Tags php and mysql
Ubuntu under Apache Virtual Host configuration Enable site deactivation site method A2ensite/a2dissite such as adding a ecshop virtual machine first to/etc/apache2/site-available/ Set up a file in the directory Ecshop and add <virtualhost *:80>servername www.ecshop.comServerAdmin [email protected]documentroot "/var/www/ecshop/" errorlog "/var/log/apache2/ecshop_errors.log" Customlog "/var/log/apache2/ecshop_accesses.log" Common </VirtualHost> then execute the command sudo a2ensite esshop this way, the virtual host site ecshop.com is already installed. You can be in/etc/apache2/ A ecshop soft connection is found in the sites-enabled/directory and then restarted apache/etc/init.d/apache2 Restart then modifies the hosts file vi/etc/hosts so that you should be able to access the last point off The issue of PHP and MySQL interconnection generally needs to install this apt-get install Php5-mysql libapache2-mod-auth-mysql

Ubuntu Configuration Virtual Host

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.