Install Apache 1.3 and PHP 4 from source code

zhaozj2021-02-17  58

Summary:

Compile source code installation Apache 1.3.27 and PHP 4.3.1.

--------------------------------------------------

surroundings:

FreeBSD 4.7

GCC 2.95.4

--------------------------------------------------

step:

1, download Apache 1.3.27 Sourcecodes

http://www.apache.org/dist/httpd/

2, compile, installation

Tar zxf apache_1.3.27.tar.gz

ChDIR APACHE_1.3.27

./configure --prefix = / usr / local / apache --enable-module = so

Make 1> LOG 2> Log.ERR &

Make Install

Description:

--Prefix = / usr / local / apache

Specifies the installation directory of Apache

--enable-module = so

Enable Apache dynamic module loading support

3, test

/ usr / local / apache / bin / apachectl configtest

/ usr / local / apache / bin / apachectl start

4, download PHP 4.3.1 source code

http://www.php.net/downloads.php

5, compile, installation

TAR JXF PHP-4.3.1.tar.bz2

CHDIR PHP-4.3.1

./configure --with-mysql --with-apxs = / usr / local / apache / bin / apxs

Make 1> LOG 2> Log.ERR &

Make Install

Description:

--with-mysql

Enable mysql support

--with = apxs = / usr / local / apache / bin / apxs

Compiling dynamic modules for Apache

7. Enable

Added in /usr/local/apache/conf/httpd.conf:

DirectoryIndex Index.php Index.html

Then execute the command:

/ usr / local / apache / bin / apachectl restart

--------------------------------------------------

Reference:

Apache 1.3 Documents

http://httpd.apache.org/docs/

PHP 4 Documents

http://www.php.net/manual/en/

转载请注明原文地址:https://www.9cbs.com/read-29745.html

New Post(0)