WordPress.org

Forums

2.5 Admin side PHP5 only? (3 posts)

  1. FatherStorm
    Member
    Posted 7 years ago #

    I noticed that although the main site works fine with PHP4 (I have some cross-site code that needs PHP4), the admin site will break with a 500 error code unless I change the .htaccess file accordingly.
    so.. the .htaccess for the root directory is

    AddType x-mapp-php4 .php
    AddHandler x-mapp-php4 .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    and for w the wp-admin folder is:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  2. jom
    Member
    Posted 7 years ago #

    You should consider to make all your code PHP5 compatible and perhaps ask your host to upgrade, too, because PHP4 support has been dropped since January 2008, I think.

    I am not quite sure, if WordPress still supports PHP4. All my servers are already running PHP5, so I do not experience any problems.

  3. FatherStorm
    Member
    Posted 7 years ago #

    host supports it. But do some page-scraping against ucomics site that requires me doing a remote file read that I haven't sat down to find a more graceful way to make work in PHP5.. at the bottom of my Blog, americasblood.com I pull in all the daily available editorial cartoons against a list of all possible ones. it's pretty heavy in checking back up to 3 days worth of any artists stuff, and I have to read the existence (or not) of a jpeg file... I may start doing all the checking in GD, but that's a good-sized rewrite.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.