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 

Package for PHP 5.0.0-12 available
Goto page 1, 2  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    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: Thu Aug 05, 2004 23:17    Post subject: Package for PHP 5.0.0-12 available Reply with quote

I just finished a package for PHP5. It seems to work OK on my machine so I'd like to hear how it works for others.

The software is installed into /usr/local/php5.

The activation script should change any previous reference to /usr/local/php in the /etc/httpd/httpd.conf file to the new location. Let me know how well that works. It should be possible to switch back to PHP 4 by changing /usr/local/php5 back to /usr/local/php in the conf file.

The package is at

http://www2.entropy.ch/download/Entropy-PHP-5.0.0-12.dmg

[Note: This package was broken, the new version can be found here: http://www.entropy.ch/phpbb2/viewtopic.php?t=1446 ]


Last edited by liyanage on Wed Aug 11, 2004 16:22; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
fullmoon



Joined: 06 Aug 2004
Posts: 2
Location: Vienna, Austria

PostPosted: Fri Aug 06, 2004 9:12    Post subject: Reply with quote

Hallo Marc!

I tried to install your PHP5 Package today on my Mac (all Software Updates installed, works fine with your PHP4 package; I did not install any additional UNIX stuff besides MySQL)

However, the problem begins at the installation procedure - the postflight script fails with these errors in the Log:
“Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)”
“Unable to verify that the Apache webserver is running correctly with the new module...”

I tried to activate it manually in HTTP.conf ‘apachectl configtest’ yields this very same error:
“Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)”

If I change it back to php4, everything works great.

I hope this problem can be resolved
Back to top
View user's profile Send private message AIM Address
phil



Joined: 06 Dec 2003
Posts: 6
Location: Newcastle Upon Tyne, England

PostPosted: Fri Aug 06, 2004 10:32    Post subject: Problems Reply with quote

Hi Marc,

I'm experiencing problems - the package stopped with the message 'there were errors during the installation, please try installing again'.

G5 (10.3.4, PHP 4.3.2, Apache 1.3.29)

Phil
Back to top
View user's profile Send private message AIM Address
fullmoon



Joined: 06 Aug 2004
Posts: 2
Location: Vienna, Austria

PostPosted: Fri Aug 06, 2004 10:38    Post subject: Reply with quote

Phil, you seem to have the same problem as me - my Installer said the same.
So it is not a problem with my setup.
Back to top
View user's profile Send private message AIM Address
liyanage
Site Admin


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

PostPosted: Fri Aug 06, 2004 13:01    Post subject: Reply with quote

Hmm... Is this on OS X Server or Client? Have any and all security and other software updates been applied?

Can anyone with this problem give me an ssh login to an affected machine?

If so, send me a private mail with

- username
- password
- hostname

The account must have admin rights
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
dotmac.info



Joined: 13 Dec 2003
Posts: 5

PostPosted: Sat Aug 07, 2004 4:04    Post subject: Reply with quote

For what it's worth, I didn't have a bit of trouble. As have all of Marc's packages, this installed and ran flawlessly for me.

I'm running 10.3.4, with not much else in the way of other Unixy stuff installed except for MySQL.

Thanks, Marc!



August Trometer
Back to top
View user's profile Send private message
Reformed



Joined: 06 Aug 2004
Posts: 1

PostPosted: Sat Aug 07, 2004 6:46    Post subject: Reply with quote

The install ran perfectly for me too. No problems at all. Thanks for all your work. Now if I can just get PHPMVC working with PHP5. I think the XML functionality broke. Having issues with PEAR Pager as well. Anyone else having issues with their apps? Maybe we could devote a forum to that? Rolling Eyes
Back to top
View user's profile Send private message Send e-mail
trickie



Joined: 07 Aug 2004
Posts: 1
Location: Melbourne, Australia

PostPosted: Sat Aug 07, 2004 10:37    Post subject: Reply with quote

Worked for me too, thanks Marc.

Mac OS 10.3.4
Back to top
View user's profile Send private message
Peperzaken



Joined: 07 Aug 2004
Posts: 2
Location: Groningen, Netherlands

PostPosted: Sat Aug 07, 2004 11:45    Post subject: Reply with quote

It doesnt work for me, here's my install log:

Quote:
Aug 7 11:21:46 : PHP Installation Log
Aug 7 11:21:46 : Opened from: /Users/josh/Desktop/php-5.0.0.pkg
Aug 7 11:21:46 : Hardware Model: PowerMac7,2 @ 1800 MHz, 1024 MB
Aug 7 11:21:46 : Running OS Build: 7H63
Aug 7 11:21:46 : Installer Language: Dutch
Aug 7 11:21:48 : Requirement: requires "bepaalde VolumeCheck-criteria" PASS for root=(none), domain=0
Aug 7 11:21:48 : Requirement: requires "bepaalde criteria voor bestandsinhoud" PASS for root=(none), domain=0
Aug 7 11:21:50 : Requirement: requires "bepaalde VolumeCheck-criteria" PASS for root=/, domain=0
Aug 7 11:21:50 : === Starting check on volume /
Aug 7 11:21:50 : Requirement: requires "bepaalde criteria voor bestandsinhoud" PASS for root=/, domain=0
Aug 7 11:21:51 : Selected volume 'G5 HD (160GB)'
Aug 7 11:21:51 : Mounted at: /
Aug 7 11:21:51 : OpenFirmware: first-boot/@0:9
Aug 7 11:21:51 : Partition type: Journaled HFS+
Aug 7 11:21:51 : Partition map: disk0s9
Aug 7 11:21:51 : Partition: 9
Aug 7 11:21:51 : Protocol: ATA
Aug 7 11:21:51 : Media Type: Generic
Aug 7 11:21:51 : Volume Size: 160028553216
Aug 7 11:21:58 : Starting install
Aug 7 11:22:00 : Creating directory at /private/tmp/.php-5.0.0.pkg.587.upgradeZeZwd7
Aug 7 11:22:01 : Extracting files from PHP
Aug 7 11:22:01 : Running task: /System/Library/PrivateFrameworks/Installation.framework/Resources/pax
Aug 7 11:22:05 : Finished task: /System/Library/PrivateFrameworks/Installation.framework/Resources/pax
Aug 7 11:22:05 : Running task: /Users/josh/Desktop/php-5.0.0.pkg/Contents/Resources/postflight
Aug 7 11:22:07 : Processing config directory: /private/etc/httpd/users/*.conf
Aug 7 11:22:07 : The postflight script in php-5.0.0 failed.
Aug 7 11:22:07 : Processing config file: /private/etc/httpd/users/josh.conf
Aug 7 11:22:07 : Syntax error on line 8 of /usr/local/php5/httpd.conf.php:
Aug 7 11:22:07 : Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)
Aug 7 11:22:07 : [entropy php /Users/josh/Desktop/php-5.0.0.pkg/Contents/Resources/activate-module.pl]: Unable to verify that the Apache webserver is running correctly with the new module and the configuration file changes using the 'apachectl configtest' command. The PHP software itself has been installed sucessfully, but it has not been
Aug 7 11:22:07 : activated. Your old /etc/httpd/httpd.conf file is untouched... at /Users/josh/Desktop/php-5.0.0.pkg/Contents/Resources/activate-module.pl line 182.
Aug 7 11:22:07 : [entropy php /Users/josh/Desktop/php-5.0.0.pkg/Contents/Resources/activate-module.pl]: The modified config file is available in '/etc/httpd/httpd.conf.entropy-temp' so you can examine it and try to activate the PHP module. at /Users/josh/Desktop/php-5.0.0.pkg/Contents/Resources/activate-module.pl line 183.
Aug 7 11:22:07 : Install Failed
Aug 7 11:22:07 : Error detected
Aug 7 11:22:07 : Name: NSGenericException
Aug 7 11:22:07 : Reason: The postflight script in php-5.0.0 failed. (code 1)
Aug 7 11:22:07 : Aborted install.


I did check my premissions befor running your installer, but it didn't work... I hope you can use this info.

It seems to go wrong in the postflight part.
_________________
Visit my website @ www.peperzaken.nl
Back to top
View user's profile Send private message
liyanage
Site Admin


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

PostPosted: Sat Aug 07, 2004 20:50    Post subject: Reply with quote

Somebody mentioned that the install started working as soon as MySQL was installed onto the machine.

Can anyone confirm this? Do the machines on which the install runs correctly have MySQL installed? Don't the machines on which it fails?
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
mhawkshaw



Joined: 08 Jun 2003
Posts: 6

PostPosted: Sun Aug 08, 2004 12:22    Post subject: Successful Reply with quote

I have installed PHP 5 on my machine (Mac OS 10.3.4) which has MySQL installed (version 4.0.20) and didn't have any problems. I haven't had much of a chance to have a play with it, but checked some scripts and they seem to work OK. phpinfo reports version 5.0.0. I haven't checked yet, but could anyone tell me if SOAP support is included in this package?
Back to top
View user's profile Send private message
liyanage
Site Admin


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

PostPosted: Sun Aug 08, 2004 19:14    Post subject: Reply with quote

The module was built with xmlrpc-epi support (http://xmlrpc-epi.sourceforge.net/). That in turn seems to support SOAP. I don't know if that is also accessible via the PHP wrapper.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
mhawkshaw



Joined: 08 Jun 2003
Posts: 6

PostPosted: Mon Aug 09, 2004 8:54    Post subject: PHP5 package & MySQL Reply with quote

Marc,

I've just tried installing the PHP5 package on a machine without MySQL installed (still 10.3.4 with bundled Apache) and the installer failed. Seems you're right in that you need MySQL installed for this package to work.

I tried a script with "SoapClient" in that I know works on a Windows XP machine with PHP5 and the php_soap.dll extension activated and all I get is a blank page on my other Mac with PHP5 installed. Not even a PHP error message. Machine will load other pages with PHP scripts in OK.
Back to top
View user's profile Send private message
phil



Joined: 06 Dec 2003
Posts: 6
Location: Newcastle Upon Tyne, England

PostPosted: Mon Aug 09, 2004 15:22    Post subject: MySQL installed and package quits Reply with quote

Hmm. I have MySQL 4.0.18 and the installer quits on me -

"There were errors during installation. Please try installing again."

I have a pretty standard OS X client machine - OS X 10.3.4, PHP 4.3.2, Apache 1.3.29. I also have Tomcat and the Java Services Developer Pack installed, if you think that might cause a problem...
Back to top
View user's profile Send private message AIM Address
Mats



Joined: 04 Aug 2004
Posts: 18
Location: London, UK

PostPosted: Mon Aug 09, 2004 18:33    Post subject: Re: PHP5 package & MySQL Reply with quote

mhawkshaw wrote:
Marc,

I've just tried installing the PHP5 package on a machine without MySQL installed (still 10.3.4 with bundled Apache) and the installer failed. Seems you're right in that you need MySQL installed for this package to work.

I tried a script with "SoapClient" in that I know works on a Windows XP machine with PHP5 and the php_soap.dll extension activated and all I get is a blank page on my other Mac with PHP5 installed. Not even a PHP error message. Machine will load other pages with PHP scripts in OK.


mhawkshaw::
What are your settings in the php.ini file ??? Most likely - default - the error reporting takes place in the /var/log/httpd/error.log file. Open the Console app in /Applications/Utilities/ and you will most likely see the errors.
_________________
Kind regards,

Mats
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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