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