Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 13th, 2000, 12:11 AM
gorth97 gorth97 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Los Angeles, CA
Posts: 1 gorth97 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
okay i've tried every installation procedule possible from various tutorials but nothing seems to work.. did the static installtion, tried various versions of php, apache, etc..

I have mysql installed correctly and have redhat 6.1 running kernel 2.2.16.

Here are the steps that I run to install php with apache:

1.) install mysql
2.) install apache with config:
./configure --prefix=/usr/local/apache --datadir=/home/httpd --logfiledir=/var/log/httpd --enable-module=most --enable-shared=max --disable-rule=WANTHSREGEX
3.) install php with config:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache --with-mysql=/usr/local/mysql --with-system-regex

so far so good.. no error messages

4.) ran cp php.ini-dist /usr/local/etc/php4.ini (and various other locations to make sure it wasnt this problem)
5.) editted httpd.conf to have LoadModule php4_module libexec/libphp4.so and AddModule mod_php4.c and
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
(weird thing is the loadmodule and addmodule were already uncommented)...

6.) ./apachectl graceful

here is where the error message:
./apachectl graceful: httpd not running, trying to start
Syntax error on line 238 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
./apachectl graceful: httpd could not be started

Any help would be much appreciated. THank you



Reply With Quote
  #2  
Old July 13th, 2000, 03:24 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>--with-config-file-path=/usr/local/apache

You should then cp your php.ini-dist to /usr/local/apache/php4.ini

According to "configure" script:
--with-config-file-path=PATH
Sets the path in which to look for php.ini.
defaults to /usr/local/lib"

Have you read http://www.devshed.com/Talk/Forums/Forum15/HTML/000020.html ?

Reply With Quote
  #3  
Old July 25th, 2000, 01:43 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 44
I've had the same problem a couple of times, and I found that on occasion with the 'apxs' install, stopping and restarting apache is not enough. When I rebooted the system completely, httpd started fine. (...for what it's worth)

Also, I notice the error message mentions "undefinded symbol: uncompress". I could be off base on this, but it might be worth checking to see what version of zlib (compression library) is on your system. You should have a file called zlib.h in /usr/include or /usr/local/include. Open it and see if the comments mention whether it is older than version 1.0.9. I am not at all sure whether PHP automatically searches for zlib on install, but you can manually force it. My install used the following:

unpack zlib-1.1.3, ./configure --shared
make, make install

add --with-zlib-dir=shared to your PHP ./configure directives

Reply With Quote
  #4  
Old August 13th, 2000, 08:28 AM
zcrar70's Avatar
zcrar70 zcrar70 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 49 zcrar70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi,

I am having exactly the same problem as described above with exactly the same error message, which is:

Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so:
undefined symbol: uncompress

I have been at loss over this problem and doing everything specified in
http://www.devshed.com/Talk/Forums/Forum15/HTML/000020.html[/url]

has still not solved my problem. I also did the --with-zlib=pth/to/zlib as suggested, but to no avail (i did not do the uncompress zlib bit or the --shared / --with-zlib=shared though, as it launched the KFM program, which i assume has somthing to do with KDE, and kept giving weird error messages).

Another thing is that there was no ClearModuleList section in httpd.conf file, so i didn't uncomment/add AddModule mod_php4.c

Sinilarly, there were no AddTypes in the file so i added "application/x-httpd-php .php4 .php" in the mime.conf file instead - don't know if that was right.


I am at loss over the problem and have spent over a week now trying to get php4/apache1.1.13/mysql to work together. Is it smthing easy I am doing wrong ???????

any help greatly appreciated.......

nick

[This message has been edited by zcrar70 (edited August 13, 2000).]

Reply With Quote
  #5  
Old August 13th, 2000, 08:17 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>i did not do the uncompress zlib bit or the --shared / --with-zlib=shared though

Just do it. Just follow rycamor's suggestion.
Also check out -> http://www.phpbuilder.com/mail/php-install/2000071/0320.php

Just install all RPMs that named "zlib" something.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > help with php4/apache install.. too frustrated now :>


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway