Apache Server configuration support - php includes problem OS X

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > php includes problem OS X





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author php includes problem OS X
Richard Hulbert

2004-01-28, 11:33 pm

hello all

I have managed to configure apache to server php and to Serve out Virtual
hosts all seems to be fine BUT pages that start with <% require once etc %>
stall. the server seems to simply stop serving the file.

I have looked at httpd.conf and have

# begin entropy.ch php module activation
Include /usr/local/php/httpd.conf.php
# end entropy.ch php module activation

# begin entropy.ch php module activation
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.html index.php
# end entropy.ch php module activation

which as i understand it should direct apache to do server side includes
any ideas?

thanks Richard

patpro

2004-01-29, 12:34 am

In article < 2004012913060776839%richard@richardhulbe
rtcom>,
Richard Hulbert <richard@richardhulbert.com> wrote:

quote:

> # begin entropy.ch php module activation
> Include /usr/local/php/httpd.conf.php



take a look at this file, and look for your php.ini too.
As you installed Entropy's php you may want to look Entropy's web site
for details about it's php module for MacOSX.
Different compilation and configuration options can change the behaviour
of PHP.


patpro

--
je cherche un poste d'admin UNIX/Mac
http://patpro.net/cv.php
Richard Antony Burton

2004-01-29, 12:34 am


"Richard Hulbert" <richard@richardhulbert.com> wrote in message
news:2004012913060776839%richard@richard
hulbertcom...
quote:

> which as i understand it should direct apache to do server side includes
> any ideas?



Nothing you posted here will enable server side includes. If however you
mean it should enable php to process php scripts then you'd need to show the
contents of php.conf too. You don't load the php module in the config you
have listed here, but I assume you do in php.conf.

You should also try looking at yout apache logs to see what they tell you.

Check out the information here
http://uk.php.net/manual/en/configu....directives.php about
short_open_tag & asp_tags which might be related to your problem.

Richard.


Richard Hulbert

2004-01-29, 1:38 am

On 2004-01-29 13:36:12 +0000, patpro <patpro@boleskine.patpro.net> said:
quote:

> In article < 2004012913060776839%richard@richardhulbe
rtcom>,
> Richard Hulbert <richard@richardhulbert.com> wrote:
>
>
>
> take a look at this file, and look for your php.ini too.
> As you installed Entropy's php you may want to look Entropy's web site
> for details about it's php module for MacOSX.
> Different compilation and configuration options can change the behaviour
> of PHP.
>
>
> patpro
>
> --
> je cherche un poste d'admin UNIX/Mac
> http://patpro.net/cv.php



Thanks I will try to sort this out i think it may well be a php config

Richard
Justin Koivisto

2004-01-29, 1:38 am

Richard Hulbert wrote:
quote:

> I have managed to configure apache to server php and to Serve out
> Virtual hosts all seems to be fine BUT pages that start with <% require
> once etc %> stall. the server seems to simply stop serving the file.



Check your php.ini file for "asp_tags = Off" and change it to "asp_tags
= On", then restart apache. Either that, or change your asp tags "<% %>"
to php tags "<?php ?>"
quote:

> I have looked at httpd.conf and have
>
> Include /usr/local/php/httpd.conf.php
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
> DirectoryIndex index.html index.php
>
> which as i understand it should direct apache to do server side includes
> any ideas?



require and include only append a file's contents at that point in the
code. If you use php code in them, then the code is executed. Anything
else will simply be displayed as code "as-is"

--
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for php related questions,
alt.php* groups are not recommended.
Official Google SERPs SEO Competition: http://www.koivi.com/serps.php
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com