Rob Day wrote:
First of all, I apologize if I'm asking a question with an obvious answer.

I do my php development on a Windows 2000 machine. Whenever I move php apps
to the production server I have to add the path to php (#!/usr/bin/php) to
the top of every php file. Is there some way I can configure the Apache or
PHP so that I don't need to do this anymore? The server is Red Hat Linux 9.0
with Apache 2.0.40 and PHP 4.2.2. Thanks.
-Rob


I take it you haven't configured Apache on your *nix box to parse php?


In your httpd.conf.....
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

Then restart your server (of course, I'm assuming that you compiled php for Apache2)


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to