| View previous topic :: View next topic |
| Author |
Message |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Sun Nov 04, 2007 11:01 Post subject: |
|
|
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 |
|
 |
beeners

Joined: 13 Dec 2006 Posts: 38 Location: NC, USA
|
Posted: Sun Nov 04, 2007 11:31 Post subject: |
|
|
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 |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Sun Nov 04, 2007 11:48 Post subject: |
|
|
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 |
|
 |
zygous
Joined: 03 Nov 2007 Posts: 8
|
Posted: Sun Nov 04, 2007 12:11 Post subject: |
|
|
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  |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Sun Nov 04, 2007 12:33 Post subject: |
|
|
| 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 |
|
 |
zygous
Joined: 03 Nov 2007 Posts: 8
|
Posted: Sun Nov 04, 2007 12:37 Post subject: |
|
|
| 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 |
|
 |
Ric

Joined: 27 Jun 2003 Posts: 50 Location: Washington, DC, USA
|
Posted: Sun Nov 04, 2007 13:28 Post subject: |
|
|
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 |
|
 |
beeners

Joined: 13 Dec 2006 Posts: 38 Location: NC, USA
|
Posted: Sun Nov 04, 2007 13:51 Post subject: |
|
|
| 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 |
|
 |
Taracque
Joined: 23 Aug 2006 Posts: 6
|
Posted: Sun Nov 04, 2007 14:15 Post subject: apachectl start works |
|
|
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 |
|
 |
kashbridge
Joined: 27 Jan 2006 Posts: 2
|
Posted: Sun Nov 04, 2007 14:33 Post subject: Same here... |
|
|
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 |
|
 |
beandip
Joined: 03 Nov 2007 Posts: 1
|
Posted: Sun Nov 04, 2007 15:14 Post subject: Re: Same here... |
|
|
| 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. |
|
|
| Back to top |
|
 |
zygous
Joined: 03 Nov 2007 Posts: 8
|
Posted: Sun Nov 04, 2007 16:04 Post subject: |
|
|
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 |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Nov 05, 2007 0:02 Post subject: |
|
|
| 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 |
|
 |
zygous
Joined: 03 Nov 2007 Posts: 8
|
Posted: Mon Nov 05, 2007 0:08 Post subject: |
|
|
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 |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Nov 05, 2007 1:29 Post subject: |
|
|
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 |
|
 |
|