Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Installation

Status
Not open for further replies.

qleader

Technical User
Dec 20, 2001
31
US
I have red hat 7.2 w/ apache 1.3.23, MySQL, PHP 4.0. I have all installed. When I configure Apache for the php modules.
e.g. (./config.status --activate-module=src/modules/php4/libphp4.a) The configuration will run and I can make, then make install.
Then edit the hgttpd.conf file for php.
After the configuration I get these message:
<=== src/modules/standard
===>src/modules/php4
make[4]:***No rule to make target 'all' Stop.
make[3]:***[subdirs] Error 1
make[2]:Leaving directory 'usr/local/etc/apache....../src'
make[1]:***[build-std] Error 2
make[1]:Leaving directory 'usr/local/..........'
make:***[build] Error 2

The reason I ask I am trying to figure out if this is my problem. When I run a simple phpinfo test page I get the option to download or open file. This happens on the machine running the web server and on a windows machine accessing the web server thru a LAN.

Any ideas??
 
Hi qleader.

Below is the way I made it work.

1. At first, just do configure in the directory where apache source resides.

# tar zxvf apache_xxx.tar.gz
# cd ../apache_xxx
# ./configure

2. Next install mysql.

# tar zxvf mysql_xxx_tar.gz
# cd ../mysql_xxx
# ./configure
# make
# make install

3. Then install php.

# tar zxvf php_xxx_tar.gz
# cd php_xxx
# ./configure --with-mysql --with-apache=../apache_xxx --enable-track-vars
# make
# make install

4. Well,make apache source with php module.

# cd ../apache_xxx
# ./configure --activate-module=src/modules/php4/libphp4.a
# make
# make install

5. Do this.

# cp php.ini-dist /usr/local/lib/php.ini
You can edit your .ini file to set PHP options.

6. At last, Edit your httpd.conf or srm.conf file and check that these lines are present and not commented out.

AddType application/x-httpd-php .php

LoadModule php4_module libexec/libphp4.so

7. Now start apache server, then you can find it work well:)

Note that don't use Kill -HUP to restart it. This doesn't work well.

Shuichi Ninomiya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top