Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Install detecting wrong PHP version


Reply


6 Posts   1599 Views

Avatar
Devon

Community Member, 4 Posts

6 September 2009 at 5:00pm

My server is running 5.2.5, but the install program keeps detecting 4.4.8. I've tried various browsers and deleting the cache, but nothing helps. Any ideas?

Avatar
Willr

Forum Moderator, 5513 Posts

6 September 2009 at 5:29pm

Does your hosting provider provide both options? Some shared hosts will do this and configuration will be set in your sites .htaccess file. SilverStripe overrides this file and hosts tend to default back to PHP4.

If this is happening make sure the php 5 handle is set in the silverstripe .htaccess file at the top to ensure you are running php5

Avatar
Devon

Community Member, 4 Posts

6 September 2009 at 5:35pm

Thanks for the quick reply. I don't know much about the .htaccess file. How should the line read?

Avatar
Willr

Forum Moderator, 5513 Posts

6 September 2009 at 5:39pm

Depends on your host. Some use the following at the top of the file

AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 .php
AddHandler cgi-php5 .php

Avatar
Devon

Community Member, 4 Posts

6 September 2009 at 6:05pm

Added those lines, but now I'm seeing a page that says this:

If you can read this text in your browser then you don't have PHP installed. **
** Please install PHP 5.0 or higher, preferably PHP 5.2.

Any other suggestions?

Avatar
Devon

Community Member, 4 Posts

7 September 2009 at 4:51am

Found it. Here's the switch my hosting service needs:

AddType application/x-httpd-php5 .php