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

All contributions published for previous SPIP versions

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

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.

updated on 31 January 2007


Aucune discussion

Ajouter un commentaire

Who are you?
[Log in]

To show your avatar with your message, register it first on gravatar.com (free et painless) and don’t forget to indicate your Email addresse here.

Enter your comment here

This form accepts SPIP shortcuts {{bold}} {italic} -*list [text->url] <quote> <code> and HTML code <q> <del> <ins>. To create paragraphs, just leave empty lines.

Add a document

Follow the comments: RSS 2.0 | Atom