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 

Leopard: PHP 5.2.5 Release 6 BETA
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 9, 10, 11  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
wegus



Joined: 30 Mar 2005
Posts: 23

PostPosted: Wed Feb 20, 2008 15:33    Post subject: Reply with quote

thanks ghostwheel, i do speak bash! As Softlinks create supplemental dependencies between installations i decided to copy those few .h and lib-files ( fortunately i did put the original ones in a .tgz) and then chowned them to the correct user.

May be i did something wrong, i think i will at least, but this error would result in something like "file not found or missing" . It's the "wrong architecture" that bothers me!


EDIT: i just gave MAMP a try ( i don't like such whole in one solutions normally) took their PHP5-Release used the same ZendDebugger.so copied it to their extension_dir, added the same 3 line to their php.ini and it works perfectly!

Obviously i haven't been that wrong. I would appreciate Marcs Version to run with the ZendDebugger to as i would prefer a standalone PHP of such a quality as Backend for Eclipse/PDT. If you find some Time Marc you think ou might integrate a debugger to your distribution ?
_________________
An Apple a day keeps the doctor away!
Back to top
View user's profile Send private message
cjgarrison



Joined: 10 Sep 2004
Posts: 8

PostPosted: Fri Feb 22, 2008 0:06    Post subject: PHP 5.2.5 Release 6 BETA... preinstall questions Reply with quote

Before we install this onto a fresh default set up of our Mac OS X 10.5 Server on a PPC G4 Xserve, we had these questions/concerns...

- Since PHP is already enabled, do we need to heed the note in the PHP 5.2.4 instructions and uncomment the respective lines in the httpd.conf file and/or do anything prior to executing the installation code at the top of this thread?

- Is the MySQL authentication still broken for the PPC installs?

- Are their any other things to be aware of that are not complete in regards to simply providing basic Apache/MysQL/PHP with standard Apple installed modules + GD functionality?

All we're looking for is an easy installer package for GD Graphics Library or ImageMagick since we've had no luck with MacPort, MAMP, and all of the other installation walkthroughs, etc, that we could find.

Thanks for any feedback and making these packages available.

Curtis Garrison
Founder & President
DreamCars.com - "What's Your Dream Car?"
P.O. Box 801548; Dallas, TX 75380
Mobile: 214-808-2878
http://www.DreamCars.com
Back to top
View user's profile Send private message
reubidium



Joined: 18 Feb 2008
Posts: 1
Location: San Francisco, Calif.

PostPosted: Fri Feb 22, 2008 20:44    Post subject: I too am having Mysql authentication problems Reply with quote

I don't get it. I am creating users in phpMyAdmin but trying to log on as any of them is persistently refused. I can see these users are being created in the mysql.user table (via cli mysql)

This is on Leopard 10.5.2 running on a 2008 iMac core2 duo.
Back to top
View user's profile Send private message Visit poster's website
cjgarrison



Joined: 10 Sep 2004
Posts: 8

PostPosted: Sat Feb 23, 2008 22:05    Post subject: Install tips... Reply with quote

In case there are some that can benefit from this info, check out this link we found to help follow through and complete the installation...
http://docs.moodle.org/en/Step_by_Step_Installation_on_a_Mac_OS_X_10.5_Server

Here's some of the info that you may find useful...

To get this missing GD library support into your Mac Server it would be the easiest way that you download the file PHP 5.2.5 (beta6 or newer). For the package please try this URL http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz or search inside the forum PHP on Mac OS X for a newer one. Download and unpack the package. Move the contained folder php5 into /usr/local ... so you get /usr/local/php5 ... and change the owner to root.
sudo mv /usr/local/php5 ~/Desktop/php5.old
curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
tar -xzf php5-*-beta.tar.gz
sudo mv php5 /usr/local/
sudo chown -R root:admin /usr/local/php5

Now the web server must know that you want to use a new PHP library from now on. Therefore edit the file /etc/apache2/httpd.conf. You should comment the line "LoadModule php5_module libexec/apache2/libphp5.so" by adding a # as the first character of the line. After this you add the new line "LoadModule php5_module local/php5/libphp5.so". Save the file.
#LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php5_module local/php5/libphp5.so

The second thing you must configure is the file php.ini. You will find the file inside the new package. Edit /usr/local/php5/lib/php.ini. To contact the database MySQL with PHP you have to set the default socket name for local MySQL connects. Save the file.
mysql.default_socket = /var/mysql/mysql.sock

That's all ... restart the web server.


Curtis Garrison
Founder & President
DreamCars.com - "What's Your Dream Car?"
P.O. Box 801548; Dallas, TX 75380
Mobile: 214-808-2878
http://www.DreamCars.com
Back to top
View user's profile Send private message
mumunol



Joined: 13 Nov 2007
Posts: 15
Location: Paris, France

PostPosted: Mon Feb 25, 2008 23:28    Post subject: Re: I too am having Mysql authentication problems Reply with quote

reubidium wrote:
I don't get it. I am creating users in phpMyAdmin but trying to log on as any of them is persistently refused. I can see these users are being created in the mysql.user table (via cli mysql)

This is on Leopard 10.5.2 running on a 2008 iMac core2 duo.


You should take a look at my post on page 4 + ged's one on page 5 :

http://www.entropy.ch/phpbb2/viewtopic.php?t=2945&postdays=0&postorder=asc&start=45
Back to top
View user's profile Send private message
kimovski



Joined: 27 Feb 2008
Posts: 2
Location: Stockholm

PostPosted: Thu Feb 28, 2008 17:12    Post subject: Re: Install tips... Reply with quote

cjgarrison wrote:

The second thing you must configure is the file php.ini. You will find the file inside the new package. Edit /usr/local/php5/lib/php.ini. To contact the database MySQL with PHP you have to set the default socket name for local MySQL connects. Save the file.
mysql.default_socket = /var/mysql/mysql.sock

That's all ... restart the web server.


Thanks. This also worked for me, as I had same issues connecting my MySQL apps after installing PHP5 Beta 6 from Marc's instructions.

(I'm running 2xG5 10.5.2 64bit)
Back to top
View user's profile Send private message
los1sol



Joined: 28 Feb 2008
Posts: 2

PostPosted: Thu Feb 28, 2008 17:59    Post subject: Re: Leopard: PHP 5.2.5 Release 6 BETA Reply with quote

Hey Marc, I tried to follow your instructions but I can't get past the first step because I keep getting this error: "mv: rename /usr/local/php5 to /User/Carlos/Desktop/php5.old: No such file or directory"

I think that is because I am working off the native PHP configuration in Leopard and so I don't believe I have a php5 directory anywhere (at least def. not in my usr directory). Do you have any idea what I could do to resolve this?

I'm running an Intel-based Macbook Pro C2D, with Leopard 10.5.2 and the tutorial I followed to set up my PHP installation was based on this: http://foundationphp.com/tutorials/php_leopard.php

Any help whatsoever, from you or anyone else that can help me, would be truly appreciated. I'm lost!

Thanks,
Carlos

liyanage wrote:

Installation:

Code:
sudo mv /usr/local/php5 ~/Desktop/php5.old
curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
tar -xzf php5-*-beta.tar.gz
sudo mv php5 /usr/local/
sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf
sudo apachectl restart


DO NOT USE “apachectl configtest” or -t to check if it works. If you have to, use “/usr/local/php5/bin/apachectl configtest” instead.
Back to top
View user's profile Send private message
shl



Joined: 05 Feb 2008
Posts: 6

PostPosted: Thu Feb 28, 2008 18:11    Post subject: Reply with quote

try it without the first line.... only needed when updating old marc php version!
Back to top
View user's profile Send private message
FastLaneJB



Joined: 28 Feb 2008
Posts: 2

PostPosted: Fri Feb 29, 2008 23:54    Post subject: Reply with quote

Hi all,

First of all thanks for the wonderful PHP package. I do have a problem with MySQL, let me explain.

I'm running the newly released (At least I've only just noticed it) x86_64 bit MySQL build for 10.5. By the way they haven't updated the preference pane in that package to work with Leopard but there is a newer one which does work with Leopard. Anyway....

PHPMyAdmin will connect to my root user with the password I set using the mysqladmin command. This works just fine without replacing any libraries. This also works fine on Apple's PHP.

If I make a new user on PHPMyAdmin I can only connect to it if I don't specify a password. It also does not work if I try it with Apple's PHP. So either there is a problem with PHPMyAdmin or both builds of PHP. At least with this 64bit build of MySQL. I've not tried it with a 32bit build to see if it suffers from the same problem.

I've tried moving the MySQL library / includes but that makes no change (Or symlinking them). I've also tried compiling my own PHP (Just for x86_64) but still no change.

I'm no expert in all of this. I just have a feeling that it's not so much compiling it right but that there is some flaw in PHP or PHPMyAdmin when built on Leopard. Probably the former of course.

I'm hoping this will all be resolved soon, it's a shame PHP didn't get the loving that Ruby got in Leopard.
Back to top
View user's profile Send private message
los1sol



Joined: 28 Feb 2008
Posts: 2

PostPosted: Fri Feb 29, 2008 23:59    Post subject: Reply with quote

shl wrote:
try it without the first line.... only needed when updating old marc php version!


Thanks dude. that helped.
Back to top
View user's profile Send private message
aaron.martin



Joined: 28 Feb 2008
Posts: 1
Location: Goleta CA

PostPosted: Mon Mar 03, 2008 19:20    Post subject: pdflib support in future betas? Reply with quote

I noticed that while pdflib support is still listed on the main download page,
it is not built into (at least the) 5.2.5 beta 6 release. Just curious to know whether the pdflib support is being dropped/replaced or is just delayed.

I also want to chime in about the fabulous job that Marc is doing maintaining the Mac OSX php package. I run servers on both Macs and Solaris boxes and typically build the solaris installs from scratch to make sure I have all the pieces I need. Its really nice to have such a complete package install on Mac side! Kudos....
_________________
Aaron Martin
CNT Crustal Studies, UCSB
Back to top
View user's profile Send private message Visit poster's website
sfstreet



Joined: 27 Jan 2008
Posts: 16
Location: San Francisco, CA

PostPosted: Wed Mar 05, 2008 20:13    Post subject: Re: PHP5 on OSX 10.5 - post beta Reply with quote

I want to make sure I am doing this right. I did not have the time now I am doing it - Bear with me please. I am no expert here.

I have a client OSX Leopard installed which came with PHP5 and Apache2.

According to: sudo mv /usr/local/php5 ~/Desktop/php5.old
move the PHP5 from /local, but I dont have /php5 in my built in local directory. I have mysql in there.

I further checked and in /usr/local/lib/ I do have a /php/ directory with build and extensions. Iam assuming this is the php5 that came with OSX Leopard?

Should I delete my original /php/ directory after I installed Marc's php5 ?

And if I install entropy, should it go to /php as opposed to /php5 to make sure my applications know where it is?

and, is there anything I have to do with mysql to make sure they work with each other.

Should I put back the # comment on this one first? and remove it again after install?
LoadModule php5_module libexec/apache2/libphp5.so

let me know, please. I don't really want to start without knowing since I have production applications on this machine. thanks alot.

mumunol wrote:
sfstreet wrote:
Is there a chance this can be publicly available anytime soon. I am dying to get a copy of it to get the GD Lib working. .

As Marc wrote in the very first post you can right now get and install PHP 5.2.5 Beta 6 using the following commands in the Terminal:
Code:
sudo mv /usr/local/php5 ~/Desktop/php5.old
curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
tar -xzf php5-*-beta.tar.gz
sudo mv php5 /usr/local/
sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf
sudo apachectl restart

GD is working fine for what I saw (I created some png with success, just to check).
Back to top
View user's profile Send private message Visit poster's website
mumunol



Joined: 13 Nov 2007
Posts: 15
Location: Paris, France

PostPosted: Thu Mar 06, 2008 1:16    Post subject: Re: PHP5 on OSX 10.5 - post beta Reply with quote

Quote:

According to: sudo mv /usr/local/php5 ~/Desktop/php5.old
move the PHP5 from /local, but I dont have /php5 in my built in local directory. I have mysql in there.


The command is only needed for people who already installed their own php5 - or Marc's distribution - in /usr/local/php5 so you don't need it.

Quote:
I further checked and in /usr/local/lib/ I do have a /php/ directory with build and extensions. Iam assuming this is the php5 that came with OSX Leopard?
And if I install entropy, should it go to /php as opposed to /php5 to make sure my applications know where it is?
and, is there anything I have to do with mysql to make sure they work with each other.


Don't be afraid. The installation won't break Apple standard installation but leave it intact, telling Apache to use another libphp5.so module located in /usr/local/php5. How ? Just by installing an Apache complementary configuration file (as a simlink) using that command :

Code:
sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf


Reading it, Apache will load Marc's php5 module located in /usr/local/php5/

Quote:
Should I put back the # comment on this one first? and remove it again after install?
LoadModule php5_module libexec/apache2/libphp5.so


Yes, you need to put it back or Marc's php5 module couldn't be loaded (a conflict occuring...)

To use Apple's standard php again, just remove the comment from the httpd.conf.
Also remove /etc/apache2/other/+entropy-php.conf symlink to make the error message disapear when Apache starts.
Back to top
View user's profile Send private message
sfstreet



Joined: 27 Jan 2008
Posts: 16
Location: San Francisco, CA

PostPosted: Thu Mar 06, 2008 2:09    Post subject: Re: PHP5 on OSX 10.5 - post beta Reply with quote

I just installed and GD now is working on my OSX Leopard.

Note for Mac OSX Leopard users with Apple's built in PHP5.

Using Marc's PHP5.
- first comment# back this (in http.conf) LoadModule php5_module libexec/apache2/libphp5.so
Marc's PHP5 has this in /others/ pointing to the new /php5/ directory.
- uncompress Marc's PHP5 in /local/
- make sure you copy entropy-php.conf in /etc/apache2/other/
because for some reason, the shortcut wont work for me. As soon as I made a copy of it in /other/ it just went running perfect.

thanks,



sfstreet wrote:
I want to make sure I am doing this right. I did not have the time now I am doing it - Bear with me please. I am no expert here.

I have a client OSX Leopard installed which came with PHP5 and Apache2.

According to: sudo mv /usr/local/php5 ~/Desktop/php5.old
move the PHP5 from /local, but I dont have /php5 in my built in local directory. I have mysql in there.

I further checked and in /usr/local/lib/ I do have a /php/ directory with build and extensions. Iam assuming this is the php5 that came with OSX Leopard?

Should I delete my original /php/ directory after I installed Marc's php5 ?

And if I install entropy, should it go to /php as opposed to /php5 to make sure my applications know where it is?

and, is there anything I have to do with mysql to make sure they work with each other.

Should I put back the # comment on this one first? and remove it again after install?
LoadModule php5_module libexec/apache2/libphp5.so

let me know, please. I don't really want to start without knowing since I have production applications on this machine. thanks alot.

mumunol wrote:
sfstreet wrote:
Is there a chance this can be publicly available anytime soon. I am dying to get a copy of it to get the GD Lib working. .

As Marc wrote in the very first post you can right now get and install PHP 5.2.5 Beta 6 using the following commands in the Terminal:
Code:
sudo mv /usr/local/php5 ~/Desktop/php5.old
curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
tar -xzf php5-*-beta.tar.gz
sudo mv php5 /usr/local/
sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf
sudo apachectl restart

GD is working fine for what I saw (I created some png with success, just to check).


Last edited by sfstreet on Thu Mar 06, 2008 2:12; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
sfstreet



Joined: 27 Jan 2008
Posts: 16
Location: San Francisco, CA

PostPosted: Thu Mar 06, 2008 2:11    Post subject: Re: PHP5 on OSX 10.5 - post beta Reply with quote

[quote="mumunol"]
Quote:

According to: sudo mv /usr/local/php5 ~/Desktop/php5.old
move the PHP5 from /local, but I dont have /php5 in my built in local directory. I have mysql in there.


thank you my friend. I just inatlled it earlier and now its spiffy. this is really great.. and you guys are awesome..

thanks again.
Back to top
View user's profile Send private message Visit poster's website
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 ... 5, 6, 7 ... 9, 10, 11  Next
Page 6 of 11

 
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