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 

Test build of PHP 5.0.5 module available
Goto page 1, 2  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: Mon Sep 26, 2005 22:06    Post subject: Test build of PHP 5.0.5 module available Reply with quote

Sorry for the long delay, other stuff has been keeping me busy. I am now working on updates to all the packages on this site, first is a PHP 5.0.5 package. It also includes updates to many of the linked libraries.

For now it comes with the Lite version of PDFlib only. When it's finished there will be the usual selection of 4 modules (PDFlib lite/commercial - Apache 1.3/2.0).

I want to get some early feedback on this before I proceed:

- This was built on Tiger and I don't have a Panther machine on which I can test it, so I'd be interested to hear if it just works, and how important Panther support is for people out there. I really don't want to spend any effort on Panther compatibility unless there are a *lot* of people that need Panther support

- I'd like to hear if nothing is broken, especially TDS (sybase DB access) and PDFlib (which has been updated to 6.0.2)

http://www2.entropy.ch/download/Entropy-PHP-5.0.5-3.dmg
http://www2.entropy.ch/download/Entropy-PHP-5.0.5-apache2-3.dmg

The first is for your regular Apache 1.3 installation, the second one for Apple's unsupported Apache 2 in /opt/apache2 (on OS X Server only).


Last edited by liyanage on Fri Oct 07, 2005 20:50; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
devplumber



Joined: 05 Jan 2005
Posts: 8

PostPosted: Wed Sep 28, 2005 1:36    Post subject: Panther Support is Important Reply with quote

Panther support is important to me.

I can't download your 5.0.5 build until next week though because I'm waiting on a new high-speed connection to be installed.

Maybe you could create a specific post/poll (if possible) to see how many others would like to continue with Panther support.

And maybe add a link to it on your PHP download page so as to reach the widest possible audience of people looking for your builds.
Back to top
View user's profile Send private message
MilSF1



Joined: 28 Jan 2005
Posts: 17
Location: Louisville, KY

PostPosted: Wed Sep 28, 2005 17:13    Post subject: Early Testing Reply with quote

Just did a bit of early testing on the module and all looks well for the basic stuff. Thanks for putting in the 4.1.14 MySQL client lib! That will help as our app is UTF-8, and we've had some customers who have had difficulties with roundtrip encoding. I'll be able to check that out now.

Great job and thanks for all the hard work!

-mark

p.s. --enable-mbstring=all please? Wink
Back to top
View user's profile Send private message Visit poster's website
liyanage
Site Admin


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

PostPosted: Wed Sep 28, 2005 17:25    Post subject: Reply with quote

Thanks for the feedback so far. Don't worry, --enable-mbstring=all is on my list of highly desired features Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
fatal error



Joined: 06 Oct 2004
Posts: 47
Location: Amersfoort, the Netherlands

PostPosted: Wed Sep 28, 2005 20:39    Post subject: Reply with quote

for the first time ever.. I get errors when installing... Sad

well, not really of the installing, but more when the postflight tries to restart apache.. it chockes on this line:
LoadModule php5_module /usr/local/php5/libphp5.so

Any suggestions?

snippet of install log:
Code:

Sep 28 21:29:26 Shiny-Metal-Ass : run postflight script for PHP
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]: Processing config directory: /private/etc/httpd/users/*.conf
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:  Processing config file: /private/etc/httpd/users/cvs.conf
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:  Processing config file: /private/etc/httpd/users/joeri.conf
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]: Syntax error on line 8 of /usr/local/php5/httpd.conf.php:
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]: Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]: [entropy php /Volumes/Entropy PHP 5.0.5-3/php-5.0.5.pkg/Contents/Resources/activate-module.pl]: Unable to verify that the Apache webserver is running correctly with the new module using the 'apachectl configtest' command. The PHP software itself has been installed sucessfully, but you need to figure out why Apache is not happy... at /Volumes/Entropy PHP 5.0.5-3/php-5.0.5.pkg/Contents/Resources/activate-module.pl line 188.
Sep 28 21:29:27 Shiny-Metal-Ass : postflight[4060]:
Sep 28 21:29:27 Shiny-Metal-Ass : Install failed: The following install step failed: run postflight script for PHP
Back to top
View user's profile Send private message
liyanage
Site Admin


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

PostPosted: Wed Sep 28, 2005 21:55    Post subject: Reply with quote

Are you on Panther by any chance? What's the output of
Code:
sw_vers
on your system?

What's the output of

Code:
otool -L /usr/local/php5/libphp5.so | grep -v : | cut -f 1 -d ' ' | xargs ls -l


on your system?

it should look something like this:

Code:

-rwxr-xr-x   1 root  wheel     8804 Sep  8 09:41 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
-rwxr-xr-x   1 root  wheel   214088 Sep  8 09:42 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
-r-xr-xr-x   1 root  wheel  4314628 Sep  1 01:00 /usr/lib/libSystem.B.dylib
lrwxr-xr-x   1 root  wheel       18 May 18 00:23 /usr/lib/libbz2.1.0.dylib -> libbz2.1.0.2.dylib
-rwxr-xr-x   1 root  wheel  1199188 Sep  1 01:01 /usr/lib/libcrypto.0.9.7.dylib
-rw-r--r--   1 root  wheel   987544 Sep  1 01:01 /usr/lib/libiconv.2.dylib
-rwxr-xr-x   1 root  wheel   329872 Sep 11 19:18 /usr/lib/libiodbc.2.dylib
-rwxr-xr-x   1 root  wheel   343645 Sep  1 01:02 /usr/lib/libmx.A.dylib
-rwxr-xr-x   1 root  wheel   103336 Sep 11 19:18 /usr/lib/libpam.1.dylib
-rwxr-xr-x   1 root  wheel   262880 Sep  8 09:42 /usr/lib/libssl.0.9.7.dylib
lrwxr-xr-x   1 root  wheel       16 Sep  1 01:00 /usr/lib/libz.1.dylib -> libz.1.2.3.dylib
lrwxr-xr-x   1 root  staff       19 Sep 28 00:02 /usr/local/php5/lib/libcurl.2.dylib -> libcurl.2.0.2.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 00:02 /usr/local/php5/lib/libexpat.0.dylib -> libexpat.0.4.0.dylib
lrwxr-xr-x   1 root  staff       21 Sep 28 00:02 /usr/local/php5/lib/libexslt.0.dylib -> libexslt.0.8.12.dylib
-rwxr-xr-x   1 root  staff  1680276 Sep 27 23:26 /usr/local/php5/lib/libfreetype.6.3.8.dylib
lrwxr-xr-x   1 root  staff       19 Sep 28 00:02 /usr/local/php5/lib/libintl.2.dylib -> libintl.2.3.0.dylib
-rwxr-xr-x   1 root  staff    34260 Sep 27 23:26 /usr/local/php5/lib/libltdl.3.dylib
lrwxr-xr-x   1 root  staff       21 Sep 28 00:02 /usr/local/php5/lib/libmcrypt.4.dylib -> libmcrypt.4.4.7.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 00:02 /usr/local/php5/lib/libmhash.2.dylib -> libmhash.2.0.0.dylib
lrwxr-xr-x   1 root  staff       18 Sep 28 00:02 /usr/local/php5/lib/libpdf.5.dylib -> libpdf.5.0.1.dylib
-rwxr-xr-x   1 root  staff   146732 Sep 27 23:26 /usr/local/php5/lib/libpng12.0.1.2.5.dylib
lrwxr-xr-x   1 root  staff       18 Sep 28 00:02 /usr/local/php5/lib/libsybdb.5.dylib -> libsybdb.5.0.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 00:02 /usr/local/php5/lib/libungif.4.dylib -> libungif.4.1.2.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 00:02 /usr/local/php5/lib/libxml2.2.dylib -> libxml2.2.6.22.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 00:02 /usr/local/php5/lib/libxslt.1.dylib -> libxslt.1.1.15.dylib
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
fatal error



Joined: 06 Oct 2004
Posts: 47
Location: Amersfoort, the Netherlands

PostPosted: Thu Sep 29, 2005 9:00    Post subject: Reply with quote

Code:

Shiny-Metal-Ass:~ joeri$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.4.2
BuildVersion:   8C46


This is the output with PHP 5.0.4 installed... (I reinstalled it)
Code:

Shiny-Metal-Ass:~ joeri$ otool -L /usr/local/php5/libphp5.so | grep -v : | cut -f 1 -d ' ' | xargs ls -l
-rwxr-xr-x   1 root  wheel     8804 Sep 28 22:01 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
-rwxr-xr-x   1 root  wheel   186940 Sep  7 22:54 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
-r-xr-xr-x   1 root  wheel  4213200 Aug 18 12:53 /usr/lib/libSystem.B.dylib
-rwxr-xr-x   1 root  wheel  1199188 Aug 18 12:54 /usr/lib/libcrypto.0.9.7.dylib
-rw-r--r--   1 root  wheel   987544 Aug 18 12:54 /usr/lib/libiconv.2.dylib
lrwxr-xr-x   1 root  wheel       16 May  4 17:42 /usr/lib/libiodbc.2.1.6.dylib -> libiodbc.2.dylib
-rwxr-xr-x   1 root  wheel   103336 Sep 21 08:41 /usr/lib/libpam.1.dylib
-rwxr-xr-x   1 root  wheel   262880 Sep  7 22:54 /usr/lib/libssl.0.9.7.dylib
lrwxr-xr-x   1 root  wheel       16 Aug 18 12:53 /usr/lib/libz.1.dylib -> libz.1.2.3.dylib
lrwxr-xr-x   1 root  staff       19 Sep 28 22:00 /usr/local/php5/lib/libcurl.2.dylib -> libcurl.2.0.2.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 22:00 /usr/local/php5/lib/libexpat.0.dylib -> libexpat.0.4.0.dylib
lrwxr-xr-x   1 root  staff       21 Sep 28 22:00 /usr/local/php5/lib/libexslt.0.dylib -> libexslt.0.8.10.dylib
-rwxr-xr-x   1 root  staff  1692348 Apr  4 17:33 /usr/local/php5/lib/libfreetype.6.3.7.dylib
lrwxr-xr-x   1 root  staff       19 Sep 28 22:00 /usr/local/php5/lib/libintl.2.dylib -> libintl.2.3.0.dylib
-rwxr-xr-x   1 root  staff    34260 Apr  4 17:33 /usr/local/php5/lib/libltdl.3.dylib
lrwxr-xr-x   1 root  staff       21 Sep 28 22:00 /usr/local/php5/lib/libmcrypt.4.dylib -> libmcrypt.4.4.7.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 22:00 /usr/local/php5/lib/libmhash.2.dylib -> libmhash.2.0.0.dylib
lrwxr-xr-x   1 root  staff       18 Sep 28 22:00 /usr/local/php5/lib/libpdf.5.dylib -> libpdf.5.0.1.dylib
-rwxr-xr-x   1 root  staff   142088 Apr  4 17:33 /usr/local/php5/lib/libpng12.0.1.2.5.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 22:00 /usr/local/php5/lib/libungif.4.dylib -> libungif.4.1.2.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 22:00 /usr/local/php5/lib/libxml2.2.dylib -> libxml2.2.6.17.dylib
lrwxr-xr-x   1 root  staff       20 Sep 28 22:00 /usr/local/php5/lib/libxslt.1.dylib -> libxslt.1.1.12.dylib


and with the not working 5.0.5
Code:

Shiny-Metal-Ass:~ joeri$ otool -L /usr/local/php5/libphp5.so | grep -v : | cut -f 1 -d ' ' | xargs ls -l
-rwxr-xr-x   1 root  wheel     8804 Sep 28 22:01 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
-rwxr-xr-x   1 root  wheel   186940 Sep  7 22:54 /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
-r-xr-xr-x   1 root  wheel  4213200 Aug 18 12:53 /usr/lib/libSystem.B.dylib
lrwxr-xr-x   1 root  wheel       18 May  4 17:41 /usr/lib/libbz2.1.0.dylib -> libbz2.1.0.2.dylib
-rwxr-xr-x   1 root  wheel  1199188 Aug 18 12:54 /usr/lib/libcrypto.0.9.7.dylib
-rw-r--r--   1 root  wheel   987544 Aug 18 12:54 /usr/lib/libiconv.2.dylib
-rwxr-xr-x   1 root  wheel   329872 Sep 28 22:01 /usr/lib/libiodbc.2.dylib
-rwxr-xr-x   1 root  wheel   343645 Aug 18 12:54 /usr/lib/libmx.A.dylib
-rwxr-xr-x   1 root  wheel   103336 Sep 21 08:41 /usr/lib/libpam.1.dylib
-rwxr-xr-x   1 root  wheel   262880 Sep  7 22:54 /usr/lib/libssl.0.9.7.dylib
lrwxr-xr-x   1 root  wheel       16 Aug 18 12:53 /usr/lib/libz.1.dylib -> libz.1.2.3.dylib
lrwxr-xr-x   1 root  staff       19 Sep 29 09:59 /usr/local/php5/lib/libcurl.2.dylib -> libcurl.2.0.2.dylib
lrwxr-xr-x   1 root  staff       20 Sep 29 09:59 /usr/local/php5/lib/libexpat.0.dylib -> libexpat.0.4.0.dylib
lrwxr-xr-x   1 root  staff       21 Sep 29 09:59 /usr/local/php5/lib/libexslt.0.dylib -> libexslt.0.8.12.dylib
-rwxr-xr-x   1 root  staff  1680276 Sep 27 23:26 /usr/local/php5/lib/libfreetype.6.3.8.dylib
lrwxr-xr-x   1 root  staff       19 Sep 29 09:59 /usr/local/php5/lib/libintl.2.dylib -> libintl.2.3.0.dylib
-rwxr-xr-x   1 root  staff    34260 Sep 27 23:26 /usr/local/php5/lib/libltdl.3.dylib
lrwxr-xr-x   1 root  staff       21 Sep 29 09:59 /usr/local/php5/lib/libmcrypt.4.dylib -> libmcrypt.4.4.7.dylib
lrwxr-xr-x   1 root  staff       20 Sep 29 09:59 /usr/local/php5/lib/libmhash.2.dylib -> libmhash.2.0.0.dylib
lrwxr-xr-x   1 root  staff       18 Sep 29 09:59 /usr/local/php5/lib/libpdf.5.dylib -> libpdf.5.0.1.dylib
-rwxr-xr-x   1 root  staff   146732 Sep 27 23:26 /usr/local/php5/lib/libpng12.0.1.2.5.dylib
lrwxr-xr-x   1 root  staff       18 Sep 29 09:59 /usr/local/php5/lib/libsybdb.5.dylib -> libsybdb.5.0.dylib
lrwxr-xr-x   1 root  staff       20 Sep 29 09:59 /usr/local/php5/lib/libungif.4.dylib -> libungif.4.1.2.dylib
lrwxr-xr-x   1 root  staff       20 Sep 29 09:59 /usr/local/php5/lib/libxml2.2.dylib -> libxml2.2.6.22.dylib
lrwxr-xr-x   1 root  staff       20 Sep 29 09:59 /usr/local/php5/lib/libxslt.1.dylib -> libxslt.1.1.15.dylib
Back to top
View user's profile Send private message
liyanage
Site Admin


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

PostPosted: Thu Sep 29, 2005 11:08    Post subject: Reply with quote

Hmm nothing special there... Can I access that machine via SSH over the Internet? I'd like to try it myself... iChat or e-mail me if that's possible. I'll need an admin account on that box.

Do you have any other non-standard modules loaded?
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
grahama



Joined: 05 Jul 2003
Posts: 11

PostPosted: Fri Sep 30, 2005 17:22    Post subject: Reply with quote

I am on 10.3.9, and get the error [There were errors when installing the programl] when trying to upgraded php to your 5.05 package. Is there something special I need to do ?

Also, does the new php package have a new version of MING included ?


g
Back to top
View user's profile Send private message Send e-mail
fatal error



Joined: 06 Oct 2004
Posts: 47
Location: Amersfoort, the Netherlands

PostPosted: Sun Oct 02, 2005 7:20    Post subject: Reply with quote

liyanage wrote:
Hmm nothing special there... Can I access that machine via SSH over the Internet? I'd like to try it myself... iChat or e-mail me if that's possible. I'll need an admin account on that box.
Do you have any other non-standard modules loaded?

The machine is my laptop, used for (local) development, so pretty hard to access. Mostly because I connect to the internet by UMTS (mobile phone card).

I have no non-standard modules loaded...

But I am trying to build PHP myself (still unsuccessful) but managed to install some libraries needed to build it... maybe there is the problem?? Should not be, because you have the needed libraries inside the php5 folder...

I'm still looking for some nice tutorials/explaination on how to build PHP5 myself, with the modules I need and without modules I don't need. When I search for this info, I mostly get pointed towards your prebuild module Sad. Do you have some info for me? (for example, I installed libxml, the latest version, but some other modules still picks the old one)... How do you build the php module?? Smile
Back to top
View user's profile Send private message
liyanage
Site Admin


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

PostPosted: Sun Oct 02, 2005 18:56    Post subject: Reply with quote

grahama: It's quite possible that it does not run at all on Panther.

fatal error: You can see every last detail about my build process in the Makefile available in my Subversion repository, linked to from several places on the website and in the forum.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
lgallop



Joined: 29 Oct 2004
Posts: 1
Location: Notre Dame, IN

PostPosted: Wed Oct 05, 2005 20:11    Post subject: Same Issue Reply with quote

I just tested the installer on a virgin OS 10.3.9 machine, and it failed with the same error message as noted above. The error message occures during, or just after, the final installer scripts are executed.

By the by, Panther support is very important to me and my organization, as the University of Notre Dame (where I work) has yet to migrate to Tiger, plus I don't know if the older production machines I work with could handle Tiger...
Back to top
View user's profile Send private message
liyanage
Site Admin


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

PostPosted: Thu Oct 06, 2005 8:14    Post subject: Reply with quote

It's confirmed that this build will not run on Panther, I will look into that later.

It should run on Tiger though and I would really appreciate more testing and reports on Tiger machines, and the ability to log in to a machine on which it does not work.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
larsnu



Joined: 13 Oct 2005
Posts: 1
Location: Oslo, Norway

PostPosted: Sun Oct 16, 2005 10:31    Post subject: Reply with quote

I have tested the 5.0.5-3 package on my Mac OS X 10.4.2 with all Apple updates installed. I upgraded from 5.0.4. Everything seems to work fine.

Thanks for providing the PHP packages for Mac OS X.

Best regards
--
Lars Nummedal
Back to top
View user's profile Send private message
ultimate



Joined: 26 May 2003
Posts: 14
Location: Stillwater, OK

PostPosted: Mon Oct 17, 2005 4:29    Post subject: Reply with quote

liyanage wrote:
It should run on Tiger though and I would really appreciate more testing and reports on Tiger machines, and the ability to log in to a machine on which it does not work.


I installed it via command line on my test server running Mac OS X Server 10.4.2 and Apache 2.0.53 and it seems to be working fine now that I have it configured. The installer didn't set up the httpd.conf or /usr/local/php5/httpd.conf.php

Code:
$sudo /opt/apache2/bin/apachectl configtest
Syntax error on line 11 of /usr/local/php5/httpd.conf.php:
Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration


Nothing was added to /opt/apache2/conf/httpd.conf and so I added the following lines which work, at least for a test page...

Code:
LoadModule php5_module /usr/local/php5/libphp5.so
<IfModule mod_php5.c>
    # If php is turned on, we respect .php and .phps files.
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
         
    # Since most users will want index.php to work we
    # also automatically enable index.php
    <IfModule mod_dir.c>
        DirectoryIndex index.html index.php
    </IfModule>
</IfModule>


It did crash and leave a log in /Library/Logs/CrashReporter/httpd.crash.log, but I'm pretty sure that was an initial syntax error because it all seems to be working now.

Dennis
Back to top
View user's profile Send private message AIM Address
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 1, 2  Next
Page 1 of 2

 
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