Entropy.ch Discussion Forums Forum Index Entropy.ch Discussion Forums
Discussion forums about Mac OS X software development.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing on Leopard
Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 17, 18, 19  Next
 
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X
View previous topic :: View next topic  
Author Message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Sun Nov 04, 2007 11:01    Post subject: Reply with quote

Interesting, I also get the message when I try apachectl -t, I never did that before so I never noticed.

However, it does start successfully if I restart with apachectl start / apachectl stop.

Is that your observation too?
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
beeners



Joined: 13 Dec 2006
Posts: 38
Location: NC, USA

PostPosted: Sun Nov 04, 2007 11:31    Post subject: Reply with quote

Just tried php5.leopard.20071104.tar.gz
Same issues

Code:
$ sudo apachectl -t
httpd: Syntax error on line 115 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _xmlTextReaderSchemaValidate\n  Referenced from: /usr/local/php5/libphp5.so\n  Expected in: /usr/lib/libxml2.2.dylib\n

$ sudo apachectl configtest
httpd: Syntax error on line 115 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _xmlTextReaderSchemaValidate\n  Referenced from: /usr/local/php5/libphp5.so\n  Expected in: /usr/lib/libxml2.2.dylib\n

$ php -v
PHP 5.2.4 (cli) (built: Sep 23 2007 22:34:35)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

$ machine
i486

$ sysctl hw.cpu64bit_capable
hw.cpu64bit_capable: 1

$ sysctl machdep.cpu.brand_string
machdep.cpu.brand_string: Intel(R) Core(TM)2 Extreme CPU X7900  @ 2.80GHz


Thanks for working through this!

Beeners
Back to top
View user's profile Send private message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Sun Nov 04, 2007 11:48    Post subject: Reply with quote

beeners,

can you try to actually start apache with apachectl start/stop and try to load a phpinfo() page. I'd like to know if it actually works.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
zygous



Joined: 03 Nov 2007
Posts: 8

PostPosted: Sun Nov 04, 2007 12:11    Post subject: Reply with quote

Using 20071104 I can't even start Apache, I see the same error as beeners when running 'apachectl -t'.

Beeners' use of 'php -v' may be misleading - running that on my box all looks well, but it's the Apple PHP that's running. If I run '/usr/local/php5/bin/php -v' I get a segfault.

This release is definitely not working I'm afraid Sad
Back to top
View user's profile Send private message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Sun Nov 04, 2007 12:33    Post subject: Reply with quote

Hmm weird it's working for me both on the command line and in Apache. I need to figure out what's different on your machines...
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
zygous



Joined: 03 Nov 2007
Posts: 8

PostPosted: Sun Nov 04, 2007 12:37    Post subject: Reply with quote

I've only been using OS X for a week, so please excuse a newbie question: presumably there's some information about my PHP segmentation fault being dumped somewhere? Would that be helpful and where could I find it?
Back to top
View user's profile Send private message
Ric



Joined: 27 Jun 2003
Posts: 50
Location: Washington, DC, USA

PostPosted: Sun Nov 04, 2007 13:28    Post subject: Reply with quote

I running this release (http://www2.entropy.ch/download/php5.leopard.20071101.tar.gz) on my 2.4 GHz Intel Core 2 Duo MacBook Pro. My PHP/MySQL app works fine, but I get a 'segmentation fault' if I attempt anything at the command line, like 'php -v'.

Is this normal for this release?

Thanks!
Back to top
View user's profile Send private message
beeners



Joined: 13 Dec 2006
Posts: 38
Location: NC, USA

PostPosted: Sun Nov 04, 2007 13:51    Post subject: Reply with quote

liyanage wrote:
beeners,

can you try to actually start apache with apachectl start/stop and try to load a phpinfo() page. I'd like to know if it actually works.


Sorry, I did that but did not include the results it in my previous post.

sudo apachectl stop and sudo apachectl start gave no errors. System Preferences showed that "Web Sharing" was on. I even toggled Web Sharing in System Preferences... BUT

Apache was not actually running,:
no httpd process and
I got the "failed to open page" error when trying to open http://localhost

Thanks

Beeners
Back to top
View user's profile Send private message
Taracque



Joined: 23 Aug 2006
Posts: 6

PostPosted: Sun Nov 04, 2007 14:15    Post subject: apachectl start works Reply with quote

Confirmed, apachectl stop/start works properly without error message. Configtest still fails with Symbol not found: _xmlTextReaderSchemaValidate.
(Core (1) Duo)

Taracque


Last edited by Taracque on Sun Nov 04, 2007 15:17; edited 1 time in total
Back to top
View user's profile Send private message
kashbridge



Joined: 27 Jan 2006
Posts: 2

PostPosted: Sun Nov 04, 2007 14:33    Post subject: Same here... Reply with quote

I can confirm I get exactly the same error messages as Beener on my Mac Pro/Leopard using 'apachectl -t' etc.

Also, my HTTP error log says:

[warn] Init: Session Cache is not configured [hint: SSLSessionCache]
dyld: NSLinkModule() error
dyld: Symbol not found: _arcfour_LTX__is_block_algorithm
Referenced from: /usr/local/php5/lib/libmcrypt.4.dylib
Expected in: flat namespace

Kevin.
Back to top
View user's profile Send private message
beandip



Joined: 03 Nov 2007
Posts: 1

PostPosted: Sun Nov 04, 2007 15:14    Post subject: Re: Same here... Reply with quote

liyanage wrote:
Hmm on one of my machines (Intel 64bit) it does not start unless I deactivate mcrypt. You might have to move aside /usr/local/php5/php.d/50-extension-mcrypt.ini


I installed release 4 on my PPC Dual 2.5 Ghz G5 machine running leopard and I also ran into the problem where apache would no longer even start. At that point I saw the same "session" errors in my apache error log as kashbridge (below). I saw your above post and removed the /usr/local/php5/php.d/50-extension-mcrypt.ini file and then Apache started right up.

PHP and MYSQL are now back to normal and my web site is back up and operational. Thank you so much for your continued work on this.

kashbridge wrote:
I can confirm I get exactly the same error messages as Beener on my Mac Pro/Leopard using 'apachectl -t' etc.

Also, my HTTP error log says:

[warn] Init: Session Cache is not configured [hint: SSLSessionCache]
dyld: NSLinkModule() error
dyld: Symbol not found: _arcfour_LTX__is_block_algorithm
Referenced from: /usr/local/php5/lib/libmcrypt.4.dylib
Expected in: flat namespace

Kevin.
Quote:
Back to top
View user's profile Send private message
zygous



Joined: 03 Nov 2007
Posts: 8

PostPosted: Sun Nov 04, 2007 16:04    Post subject: Reply with quote

Oh, now this is weird!

I've just gone back to trying 20071104, but I've moved 50-extension-mcrypt.ini out of /usr/local/php5/php.d.

Now, apachectl -t throws the following:
Code:
httpd: Syntax error on line 118 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _xmlTextReaderSchemaValidate\n  Referenced from: /usr/local/php5/libphp5.so\n  Expected in: /usr/lib/libxml2.2.dylib\n


BUT

Apache does run, and PHP is running OK. It's definitely using Entropy PHP too, because the site I'm trying to work on uses PDO-MySQL, and that's where Apple's PHP was failing.

CLI PHP still segfaults though.
Back to top
View user's profile Send private message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Mon Nov 05, 2007 0:02    Post subject: Reply with quote

zygous wrote:

Now, apachectl -t throws the following:
Code:
httpd: Syntax error on line 118 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _xmlTextReaderSchemaValidate\n  Referenced from: /usr/local/php5/libphp5.so\n  Expected in: /usr/lib/libxml2.2.dylib\n


BUT

Apache does run, and PHP is running OK.


Yes that's what I'm getting. It's definitely not a clean solution even though it seems to work (for some). I'll investigate some more...
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
zygous



Joined: 03 Nov 2007
Posts: 8

PostPosted: Mon Nov 05, 2007 0:08    Post subject: Reply with quote

Cool. Well, thanks for compiling and releasing what you have - it's clearly not a trivial task on a Mac and I suspect I'd have been tearing my hair out by now if I'd had to attempt it. Release 4 looks like it will do nicely for me to develop on for the timebeing.

Good luck working out what the problem is. I'll keep watching this thread and if I can help with debugging stuff I will....
Back to top
View user's profile Send private message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Mon Nov 05, 2007 1:29    Post subject: Reply with quote

I looked a bit closer at how apachectl works and it explicitly overrides the library search path and forces system-supplied libraries to be preferred, which kind of defeats the purpose of my custom-built libs.

So I am not sure if the apachectl -t output is really a good indicator and if I will ever be able to fix it. We might just have to live with it.

I made a new package whose binaries are mostly twolevel-namespace, these should hopefully work a bit better with the system httpd binary.

Try it out and let me know how it works. In this version, mcrypt works on both of my machines.

Again, do not test this using apachectl -t, its output is meaningless. Test it by firing up Apache and checking phpinfo() and/or your own code.

http://www2.entropy.ch/download/php5.leopard.20071105.tar.gz

Note: the upload is still running, the file should be complete about 30 minutes after I post this. File size is 50387619 bytes.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X All times are GMT + 1 Hour
Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 17, 18, 19  Next
Page 10 of 19

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group