Jump to:

4873 Posts in 7260 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Install detecting wrong PHP version

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

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

Page: 1
Go to End
Author Topic: 1453 Views
  • Devon
    Avatar
    Community Member
    4 Posts

    Install detecting wrong PHP version Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Install detecting wrong PHP version Link to this post

    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

  • Devon
    Avatar
    Community Member
    4 Posts

    Re: Install detecting wrong PHP version Link to this post

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

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Install detecting wrong PHP version Link to this post

    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

  • Devon
    Avatar
    Community Member
    4 Posts

    Re: Install detecting wrong PHP version Link to this post

    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?

  • Devon
    Avatar
    Community Member
    4 Posts

    Re: Install detecting wrong PHP version Link to this post

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

    AddType application/x-httpd-php5 .php

    1453 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.