upgrading php ver 4.0.6 to 4.3.1 problem

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Post Reply
User avatar
mike
New php-forum User
New php-forum User
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens
Contact:

Post by mike » Mon Jul 07, 2003 3:44 am

Here is a quick installation of apache/php:

Code: Select all

----------------- 
Install apache:
-----------------
1. cd /usr/local

2. wget http://www.apache.org/dist/httpd/apache_1.3.27.tar.gz

3. tar -xzf apache_1.3.27.tar.gz

4. cd apache_1.3.27

5. ./configure --enable-module=unique_id --enable-module=rewrite --enable-module=speling --enable-module=expires --enable-module=info --enable-module=log_agent --enable-module=log_referer --enable-module=usertrack --enable-module=proxy --enable-module=userdir --enable-module=so

6. make

7. make install

-----------------
Install PHP:
-----------------
1. cd /usr/local

2. download php-4.3.x and tar -xzf php-4.3.x.tar.gz

3. cd php-4.3.x

4. ./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars \
--enable-ftp \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets

5. make ... make install (as apache)

CONFS:
in /usr/local/apache/conf/http.conf :

put:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps

change:

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml
</IfModule>

to:
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
</IfModule>

Then hit /usr/local/apache/bin/apachectl start
and apache will start.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests