In ubuntu, configure the Apache virtual host to enable the site stop method a2ensite/a2dissite. for example, to add an ecshop virtual machine, first create a file ecshop in the/etc/apache2/site-available/directory and add & lt; virtualHost *: 80... in ubuntu, configure the Apache virtual host to enable the site stop method a2ensite/a2dissite. for example, to add an ecshop virtual machine, first create a file ecshop in the/etc/apache2/site-available/directory and add ServerName www. ecshop. comServerAdmin 519509954 @ qq .. comDocumentRoot "/var/www/ecshop/" ErrorLog "/var/log/apache2/ecshop_errors.log" CustomLog "/var/log/apache2/ecshop_accesses.log" common Then run the sudo a2ensite esshop command. the ecshop.com on the VM has been installed. in this case, you can find an ecshop soft connection in the/etc/apache2/sites-enabled/directory and restart Apache/etc/init. d/apache2 restart and then modify the hosts file vi/etc/hosts this should be able to access the last point Guan Yu php and mysql interconnection problem general need to install this apt-get install php5-mysql libapache2-mod-auth-mysql
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