Latest Register Log In

+ Advanced Search

Enabling PHP 5

Enabling PHP 5
By
03/11/09 (Edited 02/03/14)

If WSN informs you that your host is running PHP 4, that means your host is defaulting to PHP 4. At this point, it's very unlikely that a host would actually not offer PHP 5 -- they just don't necessarily make it the default (though they should since PHP 4 is abandoned and insecure).

Ideally, you should ask your web host. If they tell you to rename files to a .php5 extension, tell them that you want the .htaccess alternative. On a host that has PHP 5, one of the following .htaccess files should enable PHP 5:
AddType x-mapp-php5 .php

or
AddHandler application/x-httpd-php5 .php

or
AddHandler cgi-php5 .php


Place the .htaccess in the directory above where you want to install WSN -- the parent directory. If installing WSN at /public_html/, place the .htaccess at /.

There's no way to know which type of host you have except to try all three options until one of them works -- or just ask your host which to use.

If you're looking to upgrade an existing WSN installation in which you're using URL rewriting, and thus already have an .htaccess file, you can either make that the .htaccess file for its parent directory or combine it into WSN's .htaccess by entering it at Admin Panel -> Settings -> SEO -> Other .htaccess content. Don't simply edit the file manually, as it will be overwritten regularly.

If this method doesn't enable PHP 5 on your web host, you'll need to communicate with your web host.




Description How to enable PHP5 on your normally-PHP4 server.
Rating
Views 675 views. Averaging 0 views per day.