Linux under the installation of Apache, PHP installation process ____linux
Source: Internet
Author: User
The installation of Apache under Linux
1, into the work directory: Cd/usr/local/work
(If not the new, command: mkdir/usr/local/work)
2, in the work directory download Apache from the website and decompression:
wget http://dev.xiaonei.com/apache-mirror/httpd/httpd-2.0.63.tar.gz
Decompression: Tar zxvf httpd-2.0.63.tar.gz
3, into the httpd-2.0.63 directory: CD httpd-2.0.63
4, the establishment of makefile, and the Apache installation to the/usr/local/apache2 directory:
./CONFIGURE-PREFIX=/USR/LOCAL/APACHE2-ENABLE-MODULE=SO (There is a point before/configure.) Of
5. Start compiling: Make
6, start to install Apache to the work directory:
Make install
7, this Apache installation work is completed, you can start the system each time through the following command to start or restart the Apache service:
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl restart
8, open the browser, in the Address bar type "http://localhost" appears "It works!" or Apache icon of the beautiful interface, indicating the success of Apache installation.
PHP installation////
1. Get installation files: http://www.php.net/downloads.php http://cn2.php.net/distributions/php-5.5.4.tar.gz
wget http://cn2.php.net/distributions/php-5.5.4.tar.gz
Get the support files needed to install PHP: http://xmlsoft.org/sources/libxml2-2.9.1.tar.gz
wget http://xmlsoft.org/sources/libxml2-2.9.1.tar.gz
2. Install LIBXML2
Tar zxvf libxml2-2.9.1.tar.gz
CD libxml2-2.9.1.
./configure--PREFIX=/USR/LOCAL/LIBXML2
Make
Make install
If the installation is successful, the bin, include, Lib, man, and share five directories will be generated under the/usr/local/libxml2/directory. When you install the PHP5 source package configuration Later, you specify where to install LIBXML2 library files by adding the "--with-libxml-dir=/usr/local/libxml2" option to the Configure command.
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