PHP in htaccess help

I am new to the htaccess file and configuring PHP stuff. Let me give you the low down on my set up first.

My Website Host is Go Daddy
Server is Linux with their hosting 2.0 that supposedly allows me to run PHP 4 and PHP 5 at the same time. I am running a wordpress site and it works great. What im trying to do is test a new blog set up called Habari. Habari needs PHP 5.1.x or higher to run. It tells me im currently running PHP 4.3.11.

Godaddy tells me i can edit my htaccess file to allow this to run on PHP 5 just by adding to lines of code.
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

It didn’t work… I just want to know if anyone out there with more knowledge on this issue then i have could help me? Here is my entire htaccess file as is. Please tell me whats wrong or if im just out of luck trying to do this. Thanks

BEGIN WordPress

RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

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

code looks OK, to me.

may i ask a question? is the file realy called “.htaccess” (some windows apps have problems with the starting .)
and what user/group and rwx rights does it have?

Yes, its .htaccess

As far at the permissions. I am not sure right now. Im at work and all FTP out side is blocked. So the code looks right? Okay.

If i uploaded the new site to a folder called habari ( and i want to go to the new site to set it up, what is the url i enter.

both and should work.

P.S.: i would as well try the followin: use a .htaccess file with just AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 in a subfolder.
create a php-file with [php]<?php phpinfo(); ?>[/php] in it. and upload it to that folder as info.php, info.php4 and info.php5.

and than see what it’s returning.

I was finally able to get this thing to work… ARG!

It was my fault the hole time. Once you mentioned the . infront of the htaccess i went back to make sure i didn’t save the new file without the dot and i did. :roll:

Oh well. its all working now. thanks for the assist Q1712

Sponsor our Newsletter | Privacy Policy | Terms of Service