Help Me Install PHP for LightTPD on OSX
March 7, 2006 10:13 PM Subscribe
Help me setup PHP5 on my new iMac. I know PHP comes installed on the iMac and is able to run with the default Apache installation, but I installed Rails with LightTPD according to the HiveLogic instructions from here: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger.
He stops short of telling how to setup PHP to work with this installation. Can anyone point me in the right direction? I already enabled the default install of PHP to see if it will work bit its not working. For the record, the LightTPD install is working, and Rails is working.
Apache and LightTPD probably can't share the same port. Which ports are each of them using?
posted by holloway at 10:26 PM on March 7, 2006
posted by holloway at 10:26 PM on March 7, 2006
he wants PHP to work with LigHTTPD, rather than Apache... I'm guessing Apache is removed from the startup scripts...
My links above are for PHP4 on Apache, on Jaguar... not at all what you wanted...
try this
posted by hatsix at 10:31 PM on March 7, 2006
My links above are for PHP4 on Apache, on Jaguar... not at all what you wanted...
try this
posted by hatsix at 10:31 PM on March 7, 2006
or, follow this guy's trail here... seems he has a pretty complete setup....
posted by hatsix at 10:33 PM on March 7, 2006
posted by hatsix at 10:33 PM on March 7, 2006
Email's in the profile. I can send you my lighttpd config, it's serving php, rails, and movable type all via fastcgi as we speak.
posted by slhack3r at 10:51 PM on March 7, 2006
posted by slhack3r at 10:51 PM on March 7, 2006
Response by poster: Holloway: I did not enable Apache (via the Web Sharing control panel) so them sharing the same port is not a problem. LightTPD will be using port 3000.
Hatsix: that is the link I referenced in my original post. It does not discuss PHP. The other link you list I saw as well, and am waiting to hear back from that dude.
Slhack3r: Email on the way, thanks.
posted by Chuck Cheeze at 11:10 PM on March 7, 2006
Hatsix: that is the link I referenced in my original post. It does not discuss PHP. The other link you list I saw as well, and am waiting to hear back from that dude.
Slhack3r: Email on the way, thanks.
posted by Chuck Cheeze at 11:10 PM on March 7, 2006
Apache and LightTPD probably can't share the same port. Which ports are each of them using?
You can add mod_proxy to apache, so that some requests will be routed to LightTPD.
posted by Paris Hilton at 11:18 PM on March 7, 2006
You can add mod_proxy to apache, so that some requests will be routed to LightTPD.
posted by Paris Hilton at 11:18 PM on March 7, 2006
Just out of curiosity, why do you want to run anything other then Apache? It's not like isn't open source, speedy, complient and flexable.
posted by Paris Hilton at 11:21 PM on March 7, 2006
posted by Paris Hilton at 11:21 PM on March 7, 2006
Oh, duh... since you have CGI installed you can run PHP as a CGI application. You can run php from the command line, just try typing in "php /path/to/file.php" right now
posted by Paris Hilton at 11:26 PM on March 7, 2006
posted by Paris Hilton at 11:26 PM on March 7, 2006
There's also this wiki page about how to setup php and lighttpd.
posted by Paris Hilton at 11:29 PM on March 7, 2006
posted by Paris Hilton at 11:29 PM on March 7, 2006
I immediately thought of Locomotive (yet another one-click installer for Ruby/Rails/lighttpd), but it doesn't have PHP.
posted by mrbill at 7:24 AM on March 8, 2006
posted by mrbill at 7:24 AM on March 8, 2006
This is basically a follow-up question so I hope I haven't broken any rules here...
Is there anyway to get RoR working with Apache/Apache2? I just don't see the point of having lighttpd and Apache running concurrently. I'm far more familiar with configuring Apache for vhosts and all that. What is the point of lighttpd on Mac OS X?
posted by bouncebounce at 7:46 AM on March 8, 2006
Is there anyway to get RoR working with Apache/Apache2? I just don't see the point of having lighttpd and Apache running concurrently. I'm far more familiar with configuring Apache for vhosts and all that. What is the point of lighttpd on Mac OS X?
posted by bouncebounce at 7:46 AM on March 8, 2006
If you're doing RoR, it's a lightweight preview tool. It runs by default (AFAIR) on 0.0.0.0:3000.
posted by lrivers at 9:25 AM on March 8, 2006
posted by lrivers at 9:25 AM on March 8, 2006
This thread is closed to new comments.
Apache & Web Serving on OS X
specifically, I remember the Apache on Jaguar series helpful
posted by hatsix at 10:26 PM on March 7, 2006