Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > PHP Problems, please help

PHP Problems, please help
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 29, 2001, 11:44 PM
 
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
Reply With Quote
Mar 30, 2001, 02:33 AM
 
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
Reply With Quote
Mar 30, 2001, 02:38 AM
 
One more thing... You may have to copy over the 'conf*' and 'lt*' files from /usr/share/libtool/ as well.
     
Eyedoc  (op)
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 30, 2001, 09:56 AM
 
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
Reply With Quote
Mar 30, 2001, 10:09 AM
 
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
Reply With Quote
Mar 30, 2001, 11:10 AM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:53 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2