Apachetl Server configuration and upgrade (under Unix and Mac)

Source: Internet
Author: User

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)

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.