APACHE2+PHP4.3.6+MYSQL4.0.20+SSL configuration Process

Source: Internet
Author: User
Tags config install php ini root directory

Apache2+php4.3.6+mysql4.0.20+ssl Detailed configuration process:

First install the required files into the root directory:

1. mysql-client-4.0.20-0.i386.rpm

2. mysql-server-4.0.20-0.i386.rpm

3. httpd-2.0.49.tar.gz 4. Php-4.3.6.tar.gz

Let's install MySQL first, as follows:

# >RPM–UVH mysql-server-4.0.20-0.i386.rpm

# >RPM-UVH mysql-client-4.0.20-0.i386.rpm

# >mysql_install_db (Initialization of the database)

# >mysql–u Root–p (see if you can log in, ask for a password)

The next step is to install Apache2, as follows:

# >tar ZXVF httpd-2.0.49.tar.gz

# >CD httpd-2.0.49

# >./configure--prefix=/usr/local/apache2--enable-so--enable-ssl

(--prefix=/usr/local/apache2 for installation path,--ENABLE-SO support module,--ENABLE-SSL support SSL)

# >make

# >make Install (end of installation)

Initial test:

# >cd/usr/local/apache2/htdoc/

# >CP index.html.zh-cn.gb2312 index.html

# >CD. /CONF (into Apache configuration folder, i.e./usr/local/apache2/conf)

# >vi Http.conf

Find Adddefaultcharset iso-8859-1 and replace iso-8859-1 with GB2312 to solve the Chinese garbled problem. Continue to find AddType, find AddType application/x-tar. tgz, cancel the annotation and change it to read as follows:

AddType Application/x-tar. tgz

AddType image/x-icon. ico

AddType application/x-httpd-php. PHP (Disk exit)

# >/usr/local/apache2/bin/apachectl Start (Launch Apache server, now take a look at it with your browser, close it without any problems)

# >/usr/local/apache2/bin/apachectl Stop

# >/usr/local/apache2/bin/apachectl–l (You can view the modules already loaded with this command)

Finally, install PHP-4.3.6, as follows:

# >tar ZXVF php-4.3.6.tar.gz

# >CD php-4.3.6

#>./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs--with-config-filepath=/usr/ local/php--enable-sockets--with-mysql

(--prefix=/usr/local/php installation path)

(--with-apxs2=/usr/local/apache2/bin/apxs, I'm not quite sure what that means, but I have to look at this file for myself.)

(--with-config-filepath=/usr/local/php, the location of the configuration file, a moment to copy the configuration file here)

(--enable-sockets--with-mysql, support for some features)

# >make

# >make Install

# >CP Php.ini-dist/usr/local/php/php.ini (this file is a PHP configuration file.) )

# >cd/usr/local/apache2/conf/

# >vi Httpd.conf

(Edit httpd.conf file, see if there are LoadModule php4_module modules/libphp4.so, the default should be)

# >/usr/local/apache2/bin/apachectl Start

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.