• Earthlink just started offering MySQL and PHP on its webhosting packages, but the php files must have the extension .php5. Clearly, I don’t wish to go through the entire WP distribution replacing .php with .php5. Is there a way to redirect each request for a .php file so that the server thinks the request is for a .php5 file?

Viewing 2 replies - 1 through 2 (of 2 total)
  • elnkhostingpm

    (@elnkhostingpm)

    Greg,

    You can add a file with one line of code to take care of your problem. Here’s the link to EarthLink’s help with instructions:

    https://www.earthlink.net/support/hosting/cc/unix/site_management/cgi_with_perl_and_php/php.htm

    I am having this problem in an initial setup of wp. Is this still true?

    I ran the following php script provided in another section of this forum by a member.

    <?

    if ($cn = mysql_connect(myhost.com, User_user, password)) {
    echo “connected”;
    } else {
    echo “not connected – ” . mysql_error();
    }

    ?>

    I got back the following answer:

    not connected – Lost connection to MySQL server during query

    I also found this but being less than talented I don’t know how to try it. I think my isp has to run it on the server.

    Migration from PHP4 to PHP5
    There is a PHP5 php.ini directive that puts PHP5 into PHP4
    compatibility mode. In otherwords, your PHP4 scripts will for
    sure [most likely] work. This directive is called: zend.ze1_compatibility_mode

    any ideas? My isp is Directnic.

    PS I also changed the extension of the file to .php5 as mentioned in another thread. All that did was feed the file back to me as a web page in a browser.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Earthlink needs php5 file extensions’ is closed to new replies.