|
Migrating Configuration Files
The global configuration file, For the Apache configuration file, there are slightly more changes. The MIME types recognized by the PHP module have changed. application/x-httpd-php3 --> application/x-httpd-php You can make your configuration files work with both versions of PHP (depending on which one is currently compiled into the server), using the following syntax: AddType application/x-httpd-php3 .php3 In addition, the PHP directive names for Apache have changed. Starting with PHP 4.0, there are only four Apache directives that relate to PHP: php_value [PHP directive name] [value] There are two differences between the Admin values and the non admin values:
To make the transition process easier, PHP 4 is bundled with scripts
that automatically convert your Apache configuration and
To convert your Apache configuration files, run the ~/php4/scripts/apache:# ./apconf-conv.sh /usr/local/apache/conf/httpd.conf Your original configuration file will be saved in httpd.conf.orig.
To convert your ~/php4/scripts/apache:# find / -name .htaccess -exec ./aphtaccess-conv.sh {} \;
Likewise, your old The conversion scripts require 'awk' to be installed. |