Apache2 Installation
1. We use the root account for installation. First switch to the root account and enter the following command:
Sudo Su
2 install apache2
Apt-Get install apache2
Enter your server IP address in the browser, such as http: // 10.103.30.201. Check whether apache2 works. If it works !), It indicates that you have already worked.
The default document root directory of Apache in Ubuntu is/var/www., Configuration file/etc/apache2/apache2.conf, additional configuration storage subdirectory/etc/apache2
Apache2 Configuration
1. Restart the server:/Etc/init. d/apache2 restart
2. Disable The apache2 server:/etc/init. d/apache2 stop
3. Enable The apache2 server:/etc/init. d/apache2 start
4. Modify the default document root directory: (1) sudo gedit/etc/apache2/sites-enabled/000-Default
(2) Find DocumentRoot in the document and modify the directory of the webpage file to be placed.
(3) restart the Apache server
5. Multiple developers use an apache2 server for development.
You can use the Linux ln command to create a soft connection for each developer under the root directory, pointing to your own Development Directory.