Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Cant Install Silverstripe

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 25260 Views
  • jvicinanza
    Avatar
    1 Post

    Cant Install Silverstripe Link to this post

    Hello! I am trying to install Silverstripe on my Godaddy.com hosted site. When I point my browser to the default Siverstripe folder on the server I get..

    Call to undefined function: posix_getpwuid() in /home/content/j/v/i/jvvvv/html/silverstripe-v2.0.2b/install.php on line 307

    I can install Joomla no problems so I guess my environment should be OK?

    Any Tips?

    Thanks

    Jason

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Cant Install Silverstripe Link to this post

    It seems you don't have posix installed, which is odd... it is a normal php module enabled by default.

    http://us.php.net/manual/en/ref.posix.php

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Cant Install Silverstripe Link to this post

    You can get around this by editing install.php and making the function that calls posix_getpwuid() just return true.

    It will mean that the installer won't be able to check if your file permissions are okay.

  • Jethro
    Avatar
    5 Posts

    Re: Cant Install Silverstripe Link to this post

    I had a hangup with Godaddy, then i checked the PHP settings and found it by default was set for PHP 4. The work around was to open open the ".htaccess" file at the root of the install and add the following:

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

    Save it back in the root in the Silverstrip folder. I added a copy of this file to this post.

    Then I closed the browser and waited for the cache to recycle (roughly every hour they reset at godaddy.com) and installed perfectly. One more thing you might check is that it is MySQL 5.0 vs. 4.1. They give you options for both, but by default is 4.1.

    I hope that can help you along.

  • bilbo
    Avatar
    Community Member
    10 Posts

    Re: Cant Install Silverstripe Link to this post

    I seem to be having the same problem at GoDaddy.com with my hosted account. I have made the change to .htaccess in the root directory, but I am still getting the same error.

    Should I have copies of .htaccess elsewhere in the file tree?

    I will try to make the change to the install.php to return true, but I am not a php expert, so any advice on how to do this would be helpful.

    Thanks,

    Marc

  • bilbo
    Avatar
    Community Member
    10 Posts

    Re: Cant Install Silverstripe Link to this post

    Sorry, posted twice. See new post in Bugs..

  • Re: Cant Install Silverstripe Link to this post

    Here is a full write up for installing SS on Godaddy:

    http://www.coupleofcents.com/installing-silverstripe-cms-on-godaddy

  • msalman
    Avatar
    Community Member
    1 Post

    Re: Cant Install Silverstripe Link to this post

    I followed the steps in the above given link but i am still getting the HTTP 404 not found error. This is what my .htaccess file looks like:

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

    ### SILVERSTRIPE START ###
    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* /sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    ### SILVERSTRIPE END ###

    I've silverstripe folder in my root directory. I would appreciate if someone could help me with this, thank you!

    25260 Views
Page: 1 2
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.