Installation problem

Hi all,

My host has PHP5 v5.2.4 installed - unfortunately, when trying to install ProjectPier - the install stops immediately with the following message:

"Installation error: in order to run ProjectPier you need PHP5. Your current PHP version is: 4.4.7"

Any suggestions, please!

Cheers!

Mike

Maybe you have to enable PHP5-support in your adminpanel? Did you check the PHP5-support with the phpinfo ?

Good call on doing a phpinfo. Incase you aren't familiar with it, just create a file called phpinfo.php in your web directory and put the following in it

<?php phpinfo(); ?>

Then go to the page and check the output for the php version. Some hosts have php5 installed but don't have it on by default, so you might have to add something to a .htaccess file or change a setting somewhere. I'd check your host's documentation or get in touch with them about it.

The reason they keep php4 by default sometimes is that just as PP won't run on php4, a lot of popular applications written for php4 break in php5.

If your host is godaddy, you'll need to add these lines to your .htaccess file (found inside projectpier directory) to get it to use php5:

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

While the above may work, in general you should add both the handler and the type:

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

~ Christopher

That didn't work on GoDaddy:

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

los1sol's did work:

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

J.Steele

Hmm . . .

Well, it works with httpd. I guess godaddy has something a little funky going on, but it is good to know.

~ Christopher

I was getting this error: "Installation error: in order to run ProjectPier you need PHP5. Your current PHP version is: 4.3.9."
so I changed the htaccess code to this:

AddDefaultCharset utf-8
AddHandler application/x-httpd-php5 .php
AddType application/x-httpd-php5 .php
AddHandler application/x-httpd-php .php4
AddType application/x-httpd-php .php4

Now, I get this message:

executeStep(array_var($_GET, 'step', 1)) ?>

I'm not sure how to proceed. I'm a newbie so if you could keep it simple, much appreciated.

Are you running PP on a server with both php4 and php5?