 |
 |
PHP Problems, please help
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2001
Status:
Offline
|
|
I am having a very bizarre problem with PHP and my Apache installation. I configured PHP with --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql --enable-xml --enable-track-vars. It compiles OK and then gives the usual error in the pear directory when installing. I then activate the module in httpd.conf and then when I fire up apache I get an erro which states:
dyld: /usr/sbin/httpd undefined symbols:
_compress
_uncompress
/usr/sbin/apachectl start: httpd not started
If I comment out the loading of the php4 module in httpd.conf then it starts up fine. I am using apache_1.3.19
and php4.0.4pl1. Does anyone have any idea what the problem is? Any help is appreciated.
Jason Whitman
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jul 2000
Status:
Offline
|
|
Originally posted by Eyedoc:
I am having a very bizarre problem with PHP and my Apache installation. I configured PHP with --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql --enable-xml --enable-track-vars. It compiles OK and then gives the usual error in the pear directory when installing. I then activate the module in httpd.conf and then when I fire up apache I get an erro which states:
dyld: /usr/sbin/httpd undefined symbols:
_compress
_uncompress
/usr/sbin/apachectl start: httpd not started
If I comment out the loading of the php4 module in httpd.conf then it starts up fine. I am using apache_1.3.19
and php4.0.4pl1. Does anyone have any idea what the problem is? Any help is appreciated.
Jason Whitman
I haven't tried PHP on OSX Final yet, but try adding a --with-zlib=/usr to your config.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jul 2000
Status:
Offline
|
|
One more thing... You may have to copy over the 'conf*' and 'lt*' files from /usr/share/libtool/ as well.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2001
Status:
Offline
|
|
Thank you very much for the suggestion as that fixed the problem. I have no idea why, but am truly grateful.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: London, UK & Pittsburgh, USA
Status:
Offline
|
|
There is a PHP4.0.4 .pkg installer I found that works great setting up PHP as a DSO for Apache. Get it off my iDisk (un: kephart) or from the web: http://homepage.mac.com/kephart/FileSharing.html
There is some other stuff on there of interest, but I ran out of space, so you'll have to d/l MySQL pkg installer from lightyear designs if you don't have it already [6.2MB] http://homepage.mac.com/LightyearDes...1.0.pkg.tar.gz
I know you got yours working, Eyedoc, but just in case anyone else picks up on this thread.
------------------
- David Kephart
ICQ: 19510117
AIM: TheKephart
|
|
- David Kephart
ICQ: 19510117
AIM: TheKephart
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jul 2000
Status:
Offline
|
|
Originally posted by Eyedoc:
Thank you very much for the suggestion as that fixed the problem. I have no idea why, but am truly grateful.
Your welcome, I guess I should explain what those things are. The first thing, "--with-zlib=/usr" tells PHP where to find the Zip compressiosn libs. Since when you tried to run PHP it could not find the symbols for them, that tag just told the comlier / linker where they are.
As far as moving the conf* and lt* files from /usr/share/libtool, These are updated for OSX and have important info on how to find dynamic libs in OSX (and create them).
I'm no UNIX expert by all means, so I may have butchered some of this. But, I'm pretty sure this si the basic idea of things.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|