SPIP - Contrib

[ar] [en] [es] [fr] [it]



Home page > FAQ

What should I do if .php3 isn’t recognised ?

Wednesday 7 April 2004, by Filifab, Paul Knight. Latest addition Wednesday 31 January 2007

All the versions of this article:



If you have access to the httpd.conf file you should modify the following directives:

First remove the # from the following lines if it hasn’t already been done:

#LoadModule php4_module libexec/httpd/libphp4.so
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

Then add the following line:

AddType application/x-httpd-php .php3

Alternatively, this last line can be added to an .htaccess file in the root of your site.

Finally, it is necessary to add index.php3 to the list of default files.

<IfModule mod_dir.c>
 DirectoryIndex index.php index.html index.php3 index.htm
</IfModule>

If you amend httpd.conf, it will be necessary for you to restart Apache.

If you don’t want to, or can’t make these changes, versions of SPIP with .php extensions are available on this site.


Reply to this article



Follow-up of the site's activity RSS 2.0 | Site Map | Private area | Charte et vie SPIP-Contrib | SPIP | L'autre.net