PDA

View Full Version : Please... I beg u to help :(


WildWayz
Wed 7th Feb '01, 5:24pm
Hi all

I have a dedicated linux server with CIHost and it is running off RedHat 5.2 with PHP3.

I was told by a developer for PHP that PHP4.04 is ok with RH5.2 so I went to install it.

Apache is a little old so I thought I would update it.

Backed up the .conf files then uninstalled the RPM.

Installed Apache (whatever the new number is) as part of that ApacheToolbox software.

Fine... after adding the <virtualhost> details, the websites were working again.
UNTIL I went to access a PHP file then it tries to download it.

I edited httpd.conf and checked that the AddType syntax parses the php files OK and it does.

When I try to install PHP 4.04 with

./configure --with-mysql=/usr/local/mysql --with-apache=/usr/local/apache --enable-track-vars

and I get this...

Configuring SAPI modules checking for AOLserver support... no checking for Apache module support via DSO through APXS... no checking for Apache module support... no configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache

httpd.h is in the /usr/local/apache/include folder
If I compile it without Apache, it is ok until I make it then I get

/usr/local/mysql/lib/libmysqlclient.a(mf_format.o): In function `fn_format': mf_format.o(.text+0x201): undefined reference to `__lxstat64' /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o): In function `my_fopen': my_fopen.o(.text+0x21): undefined reference to `fopen64' make[1]: *** [php] Error 1 make[1]: Leaving directory `/home/webmaster/php-4.0.4pl1' make: *** [all-recursive] Error 1


Any ideas?

James