Build apache + php environment on SLES-11-SP1-i586

Source: Internet
Author: User
Tags ftp login

Build apache + php environment on SLES-11-SP1-i586
0. Install SLES-11-SP1:

When Configuring telnet and ftp, disable the firewall or enable ports 20/21 (FTP) and 22 (SSH) 23 (TELNET. If ftp login fails, refer to the following link to change the configuration file:

Http://blog.csdn.net/fm0517/article/details/7312297

1. Overall Installation Process
1.1 install Apache2.2.19:
Click here to download httpd-2.2.19.tar.gz]
$ Tar-xvzf httpd-2.2.19.tar.gz
$ Httpd-2.2.19 cd
$./Configure -- enable-rewrite -- enable-module = so
$ Make
# Make install
1.2 install php5.3.6:
Click here to download php-5.3.6.tar.gz]
$ Tar-xvzf php-5.3.6.tar.gz
$ Php-5.3.6 cd
$./Configure -- with-apxs2 =/usr/local/apache2/bin/apxs
$ Make
# Make install

2. Problem Solving
At this point, you will find the xml2-config not found error while installing php's configure, which can be addressed by installing the libxml2-devel. While the SLES-11-SP1 comes with the installation of libxml2-2.7.6, and online download to the corresponding libxml2-devel-2.7.6, it needs to upgrade to 2.7.7.
Add the following steps 1.1 to 1.2 between 2.1 and 2.7:
2.1 when installing the libxml2-2.7.7, you will be prompted to depend on libreadline. so.6, download and install it first.
[Click here to download libreadline6-6.0-18.3.i586.rpm]
# Rpm-ivh libreadline6-6.0-18.3.i586.rpm

2.2 When you reinstall the libxml2-2.7.7, a message is prompted that the libxml2-python depends on the libxml2-devel-2.7.6, causing the original file to not be overwritten, so you need to delete the libxml2-python in Yast first.

Go to YaST2 => Software => software management, enter a libxml2-python in the search box, right-click the libxml2-python on the right, choose delete, and in the displayed dialog box select will perform the following operations ", then confirm, accept, and continue.
2.3 re install libxml2-2.7.7 at this time:
[Click here to download libxml2-2.7.7-3.6.i586.rpm]
# Rpm-Uvh libxml2-2.7.7-3.6.i586.rpm

2.4 When installing the libxml2-devel-2.7.7, you will be prompted to depend on zlib-devel and Readline-devel, download and install it first.
2.5 install zlib-devel-1.2.3:
[Click here to download zlib-devel-1.2.3-141.1.i586.rpm]
# Rpm-IVH zlib-devel-1.2.3-141.1.i586.rpm


2.6 install readline-devel-5.2:
[Click here to download readline-devel-5.2-141.10.i586.rpm]
# Rpm-IVH readline-devel-5.2-141.10.i586.rpm

2.7 re install libxml2-devel-2.7.7 at this time:
[Click here to download libxml2-devel-2.7.7-3.6.i586.rpm]
# Rpm-IVH libxml2-devel-2.7.7-3.6.i586.rpm

3. Continue to install php5.3.6
Install php5.3.6 by following the steps in Step 1.2.

4. Configure and restart Apache
After installing PHP, open the configuration file httpd. conf of Apache and find the following new Configuration:
Loadmodule php5_module modules/libphp5.so
Add the following configuration to indicate that PHP is used to Parse Files suffixed with. php:
Php5-script. php AddHandler
Restart apache2: run the following command in the directory/usr/local/apache2/bin: # apachectl restart

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.