2. Build Apache server + PHP support

Source: Internet
Author: User

1. General Network Architecture diagram

General network programming is divided into: client development and server development. iOS programmers are primarily engaged in client-side development, i.e. front-end development. Background is generally PHP JSP ASP. NET to develop.

2. Use localhost to verify that Apache is working properly

3. Start the Apache server

Start:sudo apachectl- k start

reboot: sudo apachectl- k restart

4. find the default document directory for Apache

directory where Apache configuration files are located: CD /etc/apache2/

To open the Apache configuration file: sudo vim httpd.conf

In Vim/used to find:/documentroot

5. Create a new Sites folder

Note: Folders can be added to the sidebar in a drag-and-drop manner:

Modify the Apache server path by modifying two places:

6. Test if Apache is working properly

7.PHP Support

CD /etc/apache2

sudo vim httpd.conf

/php

Press the letter x, delete #, and then press ESC, enter : Wq exit editor

CD /etc/

sudo cp php.ini.default php.ini

Restarting the Apache server

8. Test if PHP is working properly

9. Command-line Summary:

1.CD /etc/apache2/ into the Apache configuration file directory

2.sudo cp file1 file2 copy file1 to file2

3.sudo vim httpd.conf using vim to open httpd.conf file

4.sudo apachectl- k start Apache

5.sudo apachectl- k restart restart Apache

2. Build Apache server + PHP support

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.