Apachetl Server
1. Create a Sites folder (the default is a network folder) to perform cd/etc/apache2/on the terminal
2. If there is a
"Swap file". File name. SWP "Already exists! [O]pen read-only, (E) dit anyway, (R) Ecover, (Q) uit: ") Remove the previous
Please choose Q to remove the previous one to upgrade this instructions you have previously configured, but the simplest way to upgrade is to delete directly and then select Q
It didn't come out the best but
3. Enter the Vim editor and do not enter anything but command line mode 2 modes and edit mode
Meaning of input/find
/documentroot
4. Change the original path to your own sites path
5. To prevent an error, comment out the original two lines # is the comment meaning
and write two new lines.
6. Insert is entered in edit mode by letter I
Add in front of two lines and press ESC to exit
From edit mode to command-line mode
7.shift V Y P (be sure to follow the English input method)
Press I again to enter edit mode
9. Delete the copied path
Drag your sites path straight over.
Watch out and erase the space again ESC.
10. Save exit: Wq
11. sudo apachectl-k restart
Finished with the results
Udo Apachectl-k Restart
Finished with the results
--------------------------------
12
But there's one drawback. Unable to display file path UTF8 file encoding
Access the server to know the specific path
Change the configuration again
sudo vim httpd.conf
/I
Search/options Follow
Find post input I plus indexes in Options ESC last: Wq exit
Apachetl Server configuration and upgrade (under Unix and Mac)