| View previous topic :: View next topic |
| Author |
Message |
Joshua Pokotilow
Joined: 15 Nov 2007 Posts: 3
|
Posted: Sun Nov 18, 2007 19:04 Post subject: |
|
|
| liyanage wrote: | | Oh, interesting... I also use the Zend Framework... Good to know... I don't know if there’s something I can change in my build. So are you saying the queries just don't work right now? Or just some of them? |
I haven't played around with this too much, but it would appear the only queries that fail are ones containing large quoted strings. (i.e. strings that generate too many recursive calls in preg_replace.) The particular query that failed on my side of things was one designed to insert a news article into a "text" column in a MySQL database.
Isn't it odd that Linux can handle this particular preg_replace call while OS X can't? Does Linux PHP have a bigger regular expression stack, or something? |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Sun Nov 18, 2007 22:25 Post subject: |
|
|
| Joshua Pokotilow wrote: | | Isn't it odd that Linux can handle this particular preg_replace call while OS X can't? Does Linux PHP have a bigger regular expression stack, or something? |
It is odd. It could be the result of a configure-time check of the PCRE engine, a difference during the compilation, a but, basically a lot of things... |
|
| Back to top |
|
 |
ralphrmartin
Joined: 02 Nov 2007 Posts: 11
|
Posted: Mon Nov 19, 2007 13:43 Post subject: |
|
|
Marc
another data point for my observation above about a phpmyadmin triggered crash:
If I fire up httpd in 32 bit mode using
arch -i386 /usr/sbin/httpd -D FOREGROUND
then your php module seems to work fine, and there is no longer a crash when logging in with phpmyadmin.
It therefore seems something is not quite right with the 64 bit version of the build.
Hope this helps.
Ralph |
|
| Back to top |
|
 |
bobcole
Joined: 19 Nov 2007 Posts: 1 Location: USA
|
Posted: Mon Nov 19, 2007 14:10 Post subject: Old Python Command |
|
|
Marc:
I encountered the same failure to install problem as previously described by others. I looked through the system console log to see what is said about the post flight segment. That led me to look at the activate-entropy.php.pl python script which I tried to understand even though I don't know python.
I found out that, according to www.python.org/doc/2.4/lib/module-subprocess.html, the os.system() command has been replaced. You might take a look to see if that is causing any problems with your script.
Also, the -h flag on the unix command (test -h) has been deprecated according to the man test page which suggests using the -L flag for compatibility.
I appreciate all the work you do on this project.
I hope this helps.
Bob |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Nov 19, 2007 17:12 Post subject: Re: Old Python Command |
|
|
Bob: We are not working on or discussing the installer python scripts here right now.
I know they don't work and they will be rewritten once the software itself is ready. Right now we are discussing the PHP module itself, not the installer mechanism. |
|
| Back to top |
|
 |
starck
Joined: 20 Nov 2007 Posts: 4
|
Posted: Tue Nov 20, 2007 12:57 Post subject: YES! OSX.5.1 Leopard with PHP & GD support |
|
|
Hi all . . .
I am not aware of these NDA rules (or what that means) but I would like to confirm that I can verify that PHP 5.2.4 with GD support works just fine on an INTEL iMAC under OS X.5.1 Leopard.
As of a couple of weeks ago . . . .
This was the .tar.gz of the of the PHP5 for Leopard. . . .
http://www2.entropy.ch/download/php5.leopard.20071101.tar.gz
1. Download it.
2. Simply movie/drag the whole upzipped folder and drop it into usr/local/ (so the path to the folder is /usr/local/php5). You will be prompted to Authenticate the move.
3. Manually edit the /etc/apache2/httpd.conf file to load /usr/local/php5/libphp5.so
The uncommented line should read. . . .
“LoadModule php5_module local/php5/libphp5.so”
(no quotes of course)
4. Restart Apache and hit your test.php file to verify that GD is now listed as an extension.
Was the easiest way I could find to get PHP5.2.4 working with GD.
Cheers! _________________ - Chris |
|
| Back to top |
|
 |
willytk
Joined: 21 Nov 2007 Posts: 2
|
Posted: Wed Nov 21, 2007 11:49 Post subject: Re: YES! OSX.5.1 Leopard with PHP & GD support |
|
|
Hello there
I installed the php5-5.2.5.leopard.release1.tar on my G5 Dual 2.3 Ghz with Leopard 10.5.1. I get the nice Entropy php info, but when I do a apachectl configtest I get the following:
| Code: |
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\ |
Also, phpmyadmin 2.11.2.2 only displays garbled text in the login box, like this:
#1045 - Access denied for user 'ÅÉq¼jÓÍ'@'localhost' (using password: YES)
...even though I typed in root.
Any ideas?
Thanks! |
|
| Back to top |
|
 |
jpaffett
Joined: 13 Nov 2007 Posts: 5
|
Posted: Fri Nov 23, 2007 9:21 Post subject: |
|
|
Marc,
I'm aware that the effort to get this up and running is obviously putting some strain on your resources. Do you think there's a case for opening up the work to an open source project, to produce the full featured OS X PHP packages?
Please don't take this as a criticism. I just feel that with a growing community of developers depending on OS X and PHP for their development environment, there ought to be a bit more ownership of the problem by that community. |
|
| Back to top |
|
 |
sstringer
Joined: 06 Nov 2007 Posts: 10 Location: Dallas, TX
|
Posted: Wed Nov 28, 2007 12:51 Post subject: Re: YES! OSX.5.1 Leopard with PHP & GD support |
|
|
Using starck's suggested method of simply copying the unzipped php5 folder to /usr/local (above), I was unable to get Apache to run.
Trying php5.leopard.20071101.tar.gz, I got the following error:
| Code: | | httpd: Syntax error on line 116 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: _libiconv\n Referenced from: /usr/local/php5/libphp5.so\n Expected in: /usr/lib/libiconv.2.dylib\n |
Trying a more recent build, I can confirm willytk's error on my Mac Pro running 10.5.1 with the latest (?) download, php5-5.2.5.leopard.release1.tar.gz.
| Code: |
httpd: Syntax error on line 116 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
|
I hope this helps. Let me know if you need any more info.
-Steve _________________ Steve Stringer
http://stringfoo.com |
|
| Back to top |
|
 |
jimhu
Joined: 04 Sep 2006 Posts: 5
|
Posted: Fri Nov 30, 2007 0:45 Post subject: |
|
|
On a brand-new MacBook Pro Core 2 Duo
1. Download http://www2.entropy.ch/download/php5-5.2.5.leopard.release1.tar.gz
2. Expand
3. cp the php5 directory (as root) to /usr/local (old one was mv'd to php5_old)
4. edit /etc/apache2/httpd.conf to add the line:
LoadModule php5_module /usr/local/php5/libphp5.so
5. copy /usr/local/php5/lib/php.ini-recommended to /usr/local/php5/lib/php.ini
6. restart apache
This seems to work with Mediawiki, phpmyadmin, phpicalendar and some other things, but I have not tested it extensively yet. This seemed deceptively simple... anything specific I should be testing?
If I am reading the thread correctly, the module is essentially stable but the package installer requires major refactoring. Is that correct?
I'd like to try this no Leopard Server on some intel XServes here... anyone tried/had any problems with the server version of Leopard yet? |
|
| Back to top |
|
 |
mumunol
Joined: 13 Nov 2007 Posts: 15 Location: Paris, France
|
Posted: Fri Nov 30, 2007 1:39 Post subject: Building PHP5.2.5 with imap + mssql + GD support and more |
|
|
Needing mssql + imap (with ssl) + gd support I successfully build my own pure PHP 5.2.5 i386 version,
1) installing properly brand new imap, libxml2, libiconv and freetds libs from sources
2) using (obviously depending on where were installed the previous libs and on on applications versions - for mysql at least) :
| Code: | ./configure' '--prefix=/usr/local/httpd' '--with-iconv=/usr/local' '--with-zlib' '--with-apxs2=/usr/sbin/apxs' '--disable-xmlreader' '--with-xsl' '--with-curl' '--enable-ftp' '--enable-mbstring' '--enable-sockets' '--with-iodbc=/usr' '--with-mhash=/usr/local/httpd' '--with-openssl=/opt/local' '--with-kerberos' '--with-imap=/usr/local/imap2006k' '--with-imap-ssl=/opt/local' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-mysql=/usr/local/mysql-5.0.45-osx10.4-i686' '--with-xmlrpc' '--with-libxml-dir=/opt/local' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/X11' '--enable-bcmath' '--with-ldap' '--enable-exif' '--enable-soap' '--enable-mbregex' '--with-mssql=/opt/local'
|
3) compiling Apache 2.2.6 from sources with :
| Code: | ./configure --enable-layout=Darwin --enable-mods-shared=all
make
make install |
|
|
| Back to top |
|
 |
mysty
Joined: 01 Dec 2007 Posts: 1
|
Posted: Sat Dec 01, 2007 16:38 Post subject: PPC data point |
|
|
Hey Marc,
I'm back here after my first visit about 20 months ago - firstly may I echo the great THANKS for all your work on this.
Using a 1.67 GHz PPC G4 PowerBook, ugraded from Tiger to Leopard 10.5.1 I installed drupal, which was complaining about lack of GD Image support.
Your php5-5.2.5.leopard.release1.tar.gz fixed that and I think is working fine - although I don't have that GD table output in phpinfo()..
So, thanks again, and given you don't have a PPC I thought I would feedback the following output:
| Code: |
$ php -v
dyld: NSLinkModule() error
dyld: Symbol not found: _php_sig_gif
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20060613/gd.so
Expected in: flat namespace
Trace/BPT trap
$ arch -i386 /usr/local/php5/bin/php -v
arch: posix_spawnp: /usr/local/php5/bin/php: Bad CPU type in executable
soc:local mysty$ arch -i386 /usr/local/php5/bin/php -v
arch: posix_spawnp: /usr/local/php5/bin/php: Bad CPU type in executable
$ machine
ppc7450
$ sysctl hw.cpu64bit_capable
hw.cpu64bit_capable: 0
$ sysctl machdep.cpu.brand_string
machdep: class is not implemented |
with this in php.ini
| Code: | #LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/php5/libphp5.so
|
phpinfo() gives:
PHP Version 5.2.5
www.entropy.ch Release 1
Universal Binary i386/x86_64/ppc7400/ppc64 - this machine runs: ppc
I'm not getting any php startup errors even with the following in php.ini
| Code: | | display_startup_errors = On |
and using
| Code: | $ sudo apachectl stop
$ sudo apachectl start |
For various unrelated reasons I'm going to do a full erase & reinstall Leopard and I will feedback if anything is different - though I don't expect it to be.
If there is anything further I can feedback that's potentially useful I'm happy to try.
All the best,
mysty |
|
| Back to top |
|
 |
mhoward
Joined: 06 Nov 2007 Posts: 2
|
Posted: Sun Dec 02, 2007 0:38 Post subject: |
|
|
Hey, Marc.
I've installed the 5.2.5.leopard.release1 on my Mac Pro running 10.5.1 and it's working great. Thanks! Just curious if PDFlib is still on your list for a future release.
Thanks again. |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Dec 03, 2007 13:25 Post subject: |
|
|
PDFList is definitely on the list.
I am very busy wrapping up a client project and I should have more time again towards middle of December, then I'll get back to the PHP package.
The free PDFLib should be no problem, I am no sure if I can get the commercial PDFlib in a 4-way universal binary. |
|
| Back to top |
|
 |
mattmecham
Joined: 01 Jun 2006 Posts: 1
|
Posted: Mon Dec 03, 2007 17:51 Post subject: |
|
|
| jimhu wrote: | On a brand-new MacBook Pro Core 2 Duo
1. Download http://www2.entropy.ch/download/php5-5.2.5.leopard.release1.tar.gz
2. Expand
3. cp the php5 directory (as root) to /usr/local (old one was mv'd to php5_old)
4. edit /etc/apache2/httpd.conf to add the line:
LoadModule php5_module /usr/local/php5/libphp5.so
5. copy /usr/local/php5/lib/php.ini-recommended to /usr/local/php5/lib/php.ini
6. restart apache
|
Worked perfectly. Thanks! |
|
| Back to top |
|
 |
|