Need help to compile my own PHP 5.2 on Mac

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mario50
-


Joined: 26 Oct 2007
Posts: 9

PostPosted: Fri Oct 26, 2007 7:46 pm    Post subject: Need help to compile my own PHP 5.2 on Mac Reply with quote

Hello guys:

I really need help on compiling PHP5.2 myself (as I want to build a super-fast and light php library).

But as I compiled it (configure, make, make install) successfully, declared as interpreter in Abyss console. However, I just can't get it run with Abyss server (500 error, broken pipe).

So, is there any "trick" or notes (I guess so) for compiling PHP for Abyss server?

Thanks!

P.S. I'm on mac.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Oct 26, 2007 8:09 pm    Post subject: Reply with quote

If you compile PHP 5.2.4, you will see such an error because I tried to get that build to work on my own server and it failed. Is that the version you're compiling? If so, I suggest that you compile an older build or a snapshot.

Last edited by TRUSTAbyss on Fri Oct 26, 2007 8:13 pm; edited 2 times in total
Back to top View user's profile Send private message Visit poster's website
mario50
-


Joined: 26 Oct 2007
Posts: 9

PostPosted: Fri Oct 26, 2007 8:12 pm    Post subject: Reply with quote

Yes, it is.

5.2.4, just downloaded from php.net.

So your suggestion would be download a previous version like 5.2.2?

I'll try that right away. thanks!!
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Oct 26, 2007 8:12 pm    Post subject: Reply with quote

You should try the new PHP 5.2.5 RC build and see if that works, but I haven't been able to test it yet.
Back to top View user's profile Send private message Visit poster's website
mario50
-


Joined: 26 Oct 2007
Posts: 9

PostPosted: Fri Oct 26, 2007 8:16 pm    Post subject: Reply with quote

TRUSTAbyss wrote:
You should try the new PHP 5.2.5 RC build and see if that works, but I haven't been able to test it yet.


Thanks for the info, but I don't see it on php.net now.

So what should I do?

Anyway, I'll try 5.2.2 first, and will let you know as soon as I have something.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Oct 26, 2007 8:16 pm    Post subject: Reply with quote

http://qa.php.net has the Release Candidate builds. Enjoy! Note: Set the Interpreter type to "Standard" if you use the RC build.
Back to top View user's profile Send private message Visit poster's website
mario50
-


Joined: 26 Oct 2007
Posts: 9

PostPosted: Fri Oct 26, 2007 8:19 pm    Post subject: Reply with quote

TRUSTAbyss wrote:
http://qa.php.net has the Release Candidate builds. Enjoy! Note: Set the Interpreter type to "Standard" if you use the RC build.


That's awesome!

Thanks for your lightning fast respond!
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Oct 26, 2007 8:20 pm    Post subject: Reply with quote

No problem. ;-)
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Oct 26, 2007 9:35 pm    Post subject: Reply with quote

mario50,

I just tried compiling PHP 5.2.5RC1 and it seems as though someone released some crappy C code. It will output an error when it reaches dns.c, which is located in "ext/standard" of the PHP source directory. I submitted a bug report to the Developers about the issue.

Here's the report:
http://bugs.php.net/bug.php?id=43111
Back to top View user's profile Send private message Visit poster's website
mario50
-


Joined: 26 Oct 2007
Posts: 9

PostPosted: Fri Oct 26, 2007 9:40 pm    Post subject: Reply with quote

Thanks, and that's why I don't trust those RCs because they are RCs, right?

But thank you so much for helping me out. I've already compiled a PHP 5.2.2 which works perfectly.

Thank you!!!
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Oct 26, 2007 9:41 pm    Post subject: Reply with quote

Your welcome! ;-)

Release Candidates are supposed to be almost stable, which in our case they aren't. lol
Back to top View user's profile Send private message Visit poster's website
mario50
-


Joined: 26 Oct 2007
Posts: 9

PostPosted: Sat Oct 27, 2007 9:24 pm    Post subject: Reply with quote

Hi there:
I'm sorry to bother you again (what?!)...

Here's the problem: I've compiled PHP 5.2.2 with --enable-fastcgi so it will work in the FastCGI way. And it's working with Abyss server on my intel mac! (Oh yeah!)

But I can't get it working on my ppc mac (same OS:10.4 as the previous one). I've re-compiled the PHP 5.2.2 with fastcgi on the ppc mac, but it either doesn't read configuration file (in phpinfo() it shows no configuration files is loaded), or reports 503 error.

I've searched the forum, and found out that if I turn the "fastcgi" interpreter back to "CGI", it will work! But I really DID use the "--enable-fastcgi" when compiling.

Where you think could be the problem? (or, how did you guys compile the universal binary pack of PHP5?)

This problem is really weird because it only shows on my ppc mac. My intel mac runs perfectly.

Thanks!!
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Oct 27, 2007 10:27 pm    Post subject: Reply with quote

Hello mario50,

I also use an Intel Mac for my server (Mac Mini). The error 503 usually means that Abyss cannot find the PHP Interpreter. Make sure the path to the PPC Mac version of PHP exists. Other than that, I'm not sure what could be wrong since I only have an Intel Mac.

Kind regards, Josh
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Nov 13, 2007 2:58 pm    Post subject: Reply with quote

mario50 wrote:
This problem is really weird because it only shows on my ppc mac. My intel mac runs perfectly.


How did you do the compilation? Have you cross-compiled the PPC version on the Intel Mac?

mario50 wrote:
how did you guys compile the universal binary pack of PHP5?)


We compiled the x86 version on an Intel Mac running 10.4. The PPC version is compiled on a PPC Mac running 10.2. Next we merge both using the lipo command line tool. Of course, this is the idea but there are many problems we had to solve to make that build run fine and be as much automated as possible.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
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 phpBB Group