Forums

Php 5 upgrade (2 posts)

  1. aianta03
    Member
    Posted 2 years ago #

    hi,
    I have a plugin that requires php 5 but, I only have php 4. I heard that by adding theses two line of code you can upgrade it:

    <IfModule mod_fastcgi.c>
    AddHandler application/x-httpd-php5 .php
    </IfModule>

    or this code:

    AddHandler application/x-httpd-php5 .php
    AddHandler application/x-httpd-php .php4

    which one do I use and what part of my htaccess do I put it in.
    thanks for any replies

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    You should talk to your host!

    Adding something to your .htaccess file isn't going to upgrade your PHP from 4 to 5. But if your host has PHP 5 installed then adding a statement to .htaccess could force PHP5 to be used rather than PHP 4.

    Note some hosts may want something like this added to .htaccess:
    AddType x-mapp-php5 .php

    Again, please discuss this with your host.

Topic Closed

This topic has been closed to new replies.

About this Topic