PHP install problem
here is my error:
[root@host bin]# pwd
/usr/local/apache/bin
[root@host bin]# ./apachectl configtest
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: uncompress
[root@host bin]#
./configure \
--prefix=/usr/local/apache \
--enable-module=so \
--enable-module=info \
--enable-rule=SHARED_CORE
./configure \
--prefix=/usr/local/php \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--enable-track-vars \
--enable-trans-sid \
--enable-magic-quotes
I also tried compiling PHP --with-apache instead of --with-apxs. That didn't work for some reason (I forgot).
Apache is working, just no PHP parsing yet.
I also have mySQL installed, and have tested it via the terminal. (I want PHP!)
What do I do?
Mark Hensler
If there is no answer on Google, then there is no question.
mairving posted this at 11:29 — 21st September 2001.
They have: 2,256 posts
Joined: Feb 2001
Try adding --with-zlib to your configure line in PHP.
Mark Hensler posted this at 16:03 — 21st September 2001.
He has: 4,048 posts
Joined: Aug 2000
[root@host php]# rm config.cache
[root@host php]# ./configure \
--prefix=/usr/local/php \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--enable-track-vars \
--enable-trans-sid \
--enable-magic-quotes \
--with-zlib
.....
Configuring extensions
checking if the location of ZLIB install directory is defined... no
checking whether to include ZLIB support... yes
configure: error: Cannot find libz
[root@host php]# find / -name zlib* 2>/dev/null &
[1] 20102
[root@host php]# /usr/lib/python2.0/lib-dynload/zlibmodule.so
/usr/local/php-4.0.6/ext/zlib
/usr/local/php-4.0.6/ext/zlib/zlib.c
/usr/local/php-4.0.6/ext/zlib/zlib.dsp
/usr/local/php-4.0.6/ext/zlib/zlib.m4
/usr/local/php-4.0.6/ext/zlib/zlib_fopen_wrapper.c
/usr/local/php-4.0.6/ext/zlib/zlib_win32_howto.txt
/home/server_stuff/php/php-4.0.6/ext/zlib
/home/server_stuff/php/php-4.0.6/ext/zlib/zlib.c
/home/server_stuff/php/php-4.0.6/ext/zlib/zlib.dsp
/home/server_stuff/php/php-4.0.6/ext/zlib/zlib.m4
/home/server_stuff/php/php-4.0.6/ext/zlib/zlib_fopen_wrapper.c
/home/server_stuff/php/php-4.0.6/ext/zlib/zlib_win32_howto.txt
/mnt/cdrom/Mandrake/RPMS/zlib1-1.1.3-15mdk.i586.rpm
/mnt/cdrom/Mandrake/RPMS/zlib1-devel-1.1.3-15mdk.i586.rpm
[root@host php]# find / -name libz* 2>/dev/null &
[1] 22911
[root@host php]# /usr/lib/libz.so.1.1.3
/usr/lib/libzvt.so.2
/usr/lib/libzvt.so.2.2.10
/mnt/cdrom/Mandrake/mdkinst/lib/libz.so.1
/lib/libz.so.1
/lib/libz.so.1.1.3
[root@host php]# find / -name libpng* 2>/dev/null &
[1] 22958
[root@host php]# /usr/share/doc/libpng2-1.0.9
/usr/share/doc/libpng2-1.0.9/libpng.txt
/usr/lib/libpng.so.2
/usr/lib/libpng.so.2.1.0.9
/mnt/cdrom/Mandrake/mdkinst/lib/libpng.so.2
/mnt/cdrom/Mandrake/RPMS/libpng2-1.0.9-1mdk.i586.rpm
/mnt/cdrom/Mandrake/RPMS/libpng2-devel-1.0.9-1mdk.i586.rpm
[root@host php]#
Do I not have zlib or libz or whatever it wants installed?
I just now downloaded zlib and libpng, should I install them?
Thanks,
Mark Hensler
If there is no answer on Google, then there is no question.
mairving posted this at 18:48 — 21st September 2001.
They have: 2,256 posts
Joined: Feb 2001
I would install them. I usually put the install directories in /usr/local/...
nike_guy_man posted this at 03:29 — 22nd September 2001.
They have: 840 posts
Joined: Sep 2000
Hey
I was just installing RH 7.1 on my new awesome server/workstation, and I ran into some problems too.
I compiled everything, fixed all the httpd.conf files (libphp4.so was marked in the wrong spot), and restarted apache.
However, all I get is the text file in my browser.
Any ideas?
mairving posted this at 12:17 — 22nd September 2001.
They have: 2,256 posts
Joined: Feb 2001
A text file when running a PHP script? If so then you probably need to make sure of a couple of things:
(1.) Make sure that you have a line like this in httpd.conf
AddType application/x-httpd-php .php .php3 .php4
(2.)Make sure that the script is executable.
(3.)Make sure that you compiled in apache. Try running httpd -l to see if mod_php4.c exists.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Mark Hensler posted this at 02:20 — 23rd September 2001.
He has: 4,048 posts
Joined: Aug 2000
I installed zlib and libpng.
I re-configured PHP, ran 'make', and 'make install'.
'./apachectl configtest' passed, and apache is now parsing PHP
Thank You!
Mark Hensler
If there is no answer on Google, then there is no question.
nike_guy_man posted this at 02:23 — 23rd September 2001.
They have: 840 posts
Joined: Sep 2000
hmmm
I tried apachectl configtest and it tells me apachectl is not a valid command.
Is this a mandrake command or all apache?
Mairving: mod_php4.so is NOT listed there.
I'm going to download it and try to install it.
Thanks!
Mark Hensler posted this at 07:37 — 23rd September 2001.
He has: 4,048 posts
Joined: Aug 2000
go into your apache/bin directory, then do a listing. Do you see 'apachectl'?
if so run "./apachectl configtest"
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.