Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

upgrading php ver 4.0.6 to 4.3.1 problem

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

upgrading php ver 4.0.6 to 4.3.1 problem

Postby triad40001 » Sat Jul 05, 2003 4:16 pm

having a problem grading php

downloaded 4.3.1 and issued the commands
./configure
make
make install

But then when I run phpinfo() it still states that I'm running the old ver 4.0.6

Someone once suggested to re-complie something in apache?

help me obe one kenobi :)
triad40001
New php-forum User
New php-forum User
 
Posts: 4
Joined: Sat Jul 05, 2003 4:09 pm

Postby 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.
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.