If you want to use Ubuntu as the website server, some basic services are essential. This article makes a simple arrangement for the establishment of the environment. AppachApache is the world's top Web server software. It can run on almost all widely used computer platforms. Because of its wide use of cross-platform and security, it is one of the most popular Web server software. Installation of sudoapt-getinstallapache2 about 5 m, installation is complete
If you want to use Ubuntu as the website server, some basic services are essential. This article makes a simple arrangement for the establishment of the environment.
Appach
Apache is the world's No. 1 Web server software. It can run on almost all widely used computer platforms. Because of its wide use of cross-platform and security, it is one of the most popular Web server software.
Install
sudo apt-get install apache2
About 5 MB. After installation, the server will automatically start
Enter http: // localhost, http: // 127.0.0.1, or IP in the browser. If It works is displayed !, It means that Apache is successfully installed. By default, Apache will create a directory named www under/var, which is the Web directory, all Web files that can be accessed through a browser must be placed in this directory.
If you change the configuration, restart the command as follows:
sudo /etc/init.d/apache2 restart
Here, if you just run some static Web pages, you only need to put the designed html file into the/var/www directory.
One problem I encountered here is that the level-2 directory under the root directory cannot be accessed and re-installed multiple times, which is the same problem.
PHP
PHP support is also a must for many websites. The installation command is as follows:
sudo apt-get install libapache2-mod-php5 php5
You need to download the installation package about 6 MB. Installation extension:
sudo apt-get install libapache2-mod-php5 php5
For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2013-11/93153p2.htm
Recommended reading:
Build your own wiki and Forum under Ubuntu (figure) http://www.linuxidc.com/Linux/2008-02/11085.htm
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04Http://www.linuxidc.com/Linux/2013-06/86250.htm
Install LAMP and phpMyAdmin http://www.linuxidc.com/Linux/2012-09/71192.htm in Ubuntu
Ubuntu 12.04 LAMP installation configuration http://www.linuxidc.com/Linux/2012-05/61079.htm
Compile and install LAMP (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12) http://www.linuxidc.com/Linux/2013-03/80333p3.htm in CentOS 5.9
Source code construction of Web Server Architecture in RedHat 5.4 LAMP environment and application PHPWind http://www.linuxidc.com/Linux/2012-10/72484p2.htm
LAMP source environment to build WEB Server Linux + Apache + MySQL + PHP http://www.linuxidc.com/Linux/2013-05/84882.htm