Getting embedded PHP to work with Apache on OSX
  Home FAQ Contact Sign in
comp.sys.mac.programmer.misc only
 
Advanced search
POPULAR GROUPS

more...

comp.sys.mac.programmer.misc Profile…
 Up
Getting embedded PHP to work with Apache on OSX         


Author: Hamad bin Turki al Salami
Date: Jul 3, 2008 18:21

I enabled apache web server and php on an OSX leopard server
by:
enabling Web Sharing in Preferences
uncommenting
LoadModule php5_module ...
in httpd.conf

I also created a php.ini file.

When I serve a file with .php extension, everything works fine. However,
if I serve an .html file with embedded php tags, the tags aren't
executed. For instance, serving a page with:



PHP Test






gives a blank page.
Show full article (0.58Kb)
1 Comment
Re: Getting embedded PHP to work with Apache on OSX         


Author: Marko Vihoma
Date: Jul 4, 2008 04:46

Hamad bin Turki al Salami wrote:
> I enabled apache web server and php on an OSX leopard server
> by:
> enabling Web Sharing in Preferences
> uncommenting
> LoadModule php5_module ...
> in httpd.conf
>
> I also created a php.ini file.
>
> When I serve a file with .php extension, everything works fine. However,
> if I serve an .html file with embedded php tags, the tags aren't
> executed. For instance, serving a page with:
>
>
>
> PHP Test
>
>
> ...
Show full article (1.23Kb)
no comments