Anyone using PHP?

nathan r. hruby yellowdog-general@lists.terrasoftsolutions.com
Thu Nov 21 12:38:00 2002


On Thu, 21 Nov 2002, Troy Vitullo wrote:

> On Thursday 21 November 2002 01:42, Mark Jaffe wrote:
> > I'm trying to work with some code I've installed for a client on my Linux
> > server. I've installed an open-source e-commerce engine and would like to
> > make some changes and test things before I upload to the site. So since
> > I've got 10.2.2 with Apache and PHP on my Pismo, I figured I'd be all set.
> > But what I get when I try to load the pages is nothing! While I can run the
> > pages on the server, they do not render in my browser when I run them on
> > Darwin/OSX. Anyone have a clue as to how to debug this?
> >
> 
> Mark,
> 
> I had a customer who had PHP/Apache running on the Xserve. He tried to port it 
> to OS X and it just plain didn't work. He had to switch to YDL as the PHP 
> server just to get the code to render. He worked on it for a long while 
> before giving up. 
> 

Apple's php build is passable if not spartan. Though building php on OSX 
is supported as of 4.2.x, so you can always grab the current source 
tarball and make your own.. it's easy :)

> You might check the Apache logs to see what happens when you access the page. 
> 

You might also want to turn on php in OSX's httpd.conf file, as it's off 
be default which is probably where mark's problem lies :)

# From a 10.2 client...
[nathan@puma Users]$ grep php /etc/httpd/httpd.conf
#LoadModule php4_module        libexec/httpd/libphp4.so
#AddModule mod_php4.c

Be sure to add AddHandler handlers as well
        AddType application/x-httpd-php .php .php3 .phtml .php4
        AddType application/x-httpd-php-source .phps

-n
-- 
----------------------------------------
nathan hruby <nathan@drama.uga.edu>
computer services specialist
uga drama
http://www.drama.uga.edu/support/
----------------------------------------