I’m working on a server problem with my host, 1and!, and they’ve advised I try upgrading to PHP5 to fix the problem. Apparently I can do this as follows:
By default Apache uses PHP 4 for .php extension. If you don’t want to rename all your
scripts to .php5 you can do the following:
Create a .htaccess file and place the following line AddType x-mapp-php5 .php in it.
This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the
directory the .htaccess is placed and all sub-directories under it.
My concern is I already have WordPress’s htaccess file in the same folder as my PHP files. Can I just add this line to the existing htaccess file without breaking it? Will WordPress delete the line when it updates the htaccess file?
I’m totally lost on this one and badly need help.
- The topic ‘Need to edit htaccess to enable PHP 5’ is closed to new replies.