Ubuntu12.04 install lamp environment 1) install LAMP & gt; sudoapt-getinstallapache2mysql-servermysql-clientphp5php5-gdphp5-mysql to configure the MYSQL-SERVER password. 1.1 After the installation is complete, configure APACHE... install lamp environment in ubuntu 12.04 1) install LAMP> sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql to configure the MYSQL-SERVER password. 1.1 After the installation is complete, the configuration file directory of APACHE:/etc/apache2 PHP:/etc/php5 MYSQL configuration file directory:/etc/mysql 2) configure APACHE 2.1 to create the apache Directory in the/home/directory: mkdir apache 2.2 cd apache to create The etc and www directories: mkdir etc www 2.3 to modify the/home/apache Directory permissions: sudo chown user: user-R/home/apache 2.4 COPY the default configuration file to/home/etc/cp-R/etc/apache2/sites-*/home/apache/etc 2.5 modify/etc find/apache2/apache2.conf vi/etc/apache2/apache2.conf 2.6: change Include sites-enabled/to Include/home/apache/etc/sites-enabled/2.7 to restart APACHE sudo apachectl restart 2.8 to configure the default site: vi/home/apache/etc/sites-available/default 2.9 found: DocumentRoot/var/www changed to: DocumentRoot/home/apache/www/default.com 2.10 found: Changed: 2.11 create/home/apache/www/default.com sudo mkdir/home/apache/www/default.com 2.12 create/home/apache/www/default.com/index.php file sudo gedit/home/apache/www/ default.com/index.php input: Save and exit 2.13 for the configuration to take effect: enter http: // localhost/in the sudo apachectl graceful 2.14 browser: hello word!
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