1. gksudo gedit /etc/apache2/sites-available/mysite
examples:
change the DocumentRoot to point to the new location. For example, /home/user/public_html/
change the Directory directive, replace
change the ErrorLog and CustomLog directives ...
1.0 create folder /home/user/public_html
1.1 cp /var/www/index.html /home/user/public_html/
2. sudo a2dissite default && sudo a2ensite mysite
3. sudo /etc/init.d/apache2 restart
[ref]
https://help.ubuntu.com/community/ApacheMySQLPHP
沒有留言:
張貼留言