I have a problem trying to get apache to work with php on red hat linux 6.2.... i have compiled apache 1.3.19 and php 4.... and i have also compiled mysql 3.23.26....this is exactly what i did to compile everything....
MYSQL --->
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s mysql-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/var
shell> chgrp -R mysql /usr/local/mysql
shell> chown -R root /usr/local/mysql/bin/
shell> bin/safe_mysqld --user=mysql &
=mysql worked and compiled correctly....
APACHE--->
$ ./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so
$ make
$ make install
$ /usr/local/apache/bin/apachectl start
= apache worked fine.... i could see test page and everything...
PHP 4 --->
$ ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs
$ make
$ make install
after this, i stopped apache and tried to restart it...and i get this error...
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: uncom
press
./bin/apachectl start: httpd could not be started
After the suggestion of another person == this is what he suggested...
I think most likely your problem stems from not having the zlib sompressions library installed (or having an older version installed).
Do you have the "gd" image library installed on your system? PHP automatically detects whether you have gd installed and automatically adds support for it in while compiling. The gd library, however, requires the zlib compression library. I posted some comments about this in the PHP documentation at http://www.php.net/image (see the user comment by rick@e-possibility.com at the bottom)
The easiest thing to do is install zlib:
1. Download zlib from www.info-zip.org/pub/infozip/zlib
2. ./configure --shared
3. make, make install
Then add "with-zlib-dir=shared" in your configuration directives for PHP.
Or, you might get away with disabling gd support in your PHP configuration (if you don't want to create server-side images). Just add --without-gd in your ./configure directives.
But I still get the same problem....
SOMEBODY HELP !!! this is the umpteenth time i'm trying to get mysql, apache and php4 to work ...any help would be geratly appreciated..Thank you.