Greetings; Im trying to migrate a rh 6.2 release httpd.conf file to 8.0 apache 1.3 setup.Ive got most of it covered but there are a few issues that I am not getting......as follows: ie: <IfModule mod_php4.c> php_value include_path '/usr/local/apache/php:.' php_value auto_prepend_file /usr/local/apache/php/prepend.php3 php_flag magic_quotes_gpc Off php_flag track_vars On </IfModule> There are two issues here. One php3 is not installed as this should be convered by php4 adequately but this raises the issues as so what variables should be entered into the module. /usr/local/apache obviousely does not exist. If someone could point me to a url or provide comment it would be appreciated. /ch
On Monday 30 September 2002 1:23 am, Chris Herrnberger wrote:
<IfModule mod_php4.c> php_value include_path '/usr/local/apache/php:.' php_value auto_prepend_file /usr/local/apache/php/prepend.php3 php_flag magic_quotes_gpc Off php_flag track_vars On </IfModule>
There are two issues here. One php3 is not installed as this should be convered by php4 adequately but this raises the issues as so what variables should be entered into the module. /usr/local/apache obviousely does not exist. If someone could point me to a url or provide comment it would be appreciated.
The first thing is to know what is in those directories. The include_path is usually for files that you don't want to make available on the actual website (for security or other reasons), but which you need in order to allow your PHP app to function - a good example is the connection details for the database. If these are similar, then move them into a relevant directory (eg /usr/local/httpd/includes - and change teh reference in the app's config file), or (simpler) create that same directory (/usr/local/apache). The same applies to auto_prepend_file - this is usually for pieces that you want to appear on every page, or logic that should be done before each page is called (more likely to be the former). See what is in there, and whether there is a reference to prepend.php3 anywhere in the app (eg in a configuration file) - you could then change the filename if you wanted to. For more info after that, you should probably look at posting to a PHP list or forum (eg DevShed). A little bit of experimentation and rooting around in the PHP app's files may be called for. Best wishes Kevin
participants (2)
-
Chris Herrnberger
-
Kevin Donnelly