Jump to:

4945 Posts in 17814 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » silverstripe MS- SQL installation problem

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

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

Page: 1 2 3 4
Go to End
Author Topic: 5009 Views
  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    Another idea is to remove that version of PHP and go with a manual install.

    You can follow the "Install PHP" section of this document: http://doc.silverstripe.org/installation-on-windows-server-2003-iis-6#install_php

    Cheers,
    Sean

  • dips_045
    Avatar
    Community Member
    20 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    Hi Again

    Many thanks for your help and patience but I'm still getting an error!

    I followed the Install PHP section of the link you provided in the previous post and everything was going smoothly! I successfully added Module Mapping in Handler Mapping and configured the fastCGI in IIS.

    The only thing I can say was different was step 5: Open php.ini, located in c:\php5
    There were two files php.ini-development and php.ini-production and I carried out the changes in both files.

    I got the same error messge - just the location of php.exe is different (but its there!)
    HTTP Error 500.0 - Internal Server Error
    c:\php5\php.exe - The FastCGI process exited unexpectedly

    I don't know where I've gone wrong again?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    php.ini-development and php.ini-production are not used, they're just templates.

    In order to activate one, you need to rename one of them to php.ini.

    For example, rename php.ini-development to php.ini to start with the development template.

    Cheers,
    Sean

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    I've also updated the PHP installation instructions with another step to copy the php.ini-development file. These steps are here: http://doc.silverstripe.org/installation-on-windows-server-2003-iis-6#install_php

    Thanks for the feedback!

    Sean

  • dips_045
    Avatar
    Community Member
    20 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    Thanks for that, I started again - deleted the files and went through it step by step but still no luck

    Also just to make sure -
    Search for extension_dir and make sure it looks like this: extension_dir = “ext” (use proper double quotation characters here)
    I did this step but changed nothing (ie. removing the semicolon and extension_dir = "ext" was exactly the same) - is this OK?

    I typed in c:\php5\php.exe -v in command prompt and the version came up.

    Sorry about this - anything else I can try?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    Yes, the extension dir should be extension_dir = "ext" - I think the way you've got it should be fine.

    Could you try making a phpinfo.php file with the following in C:\inetpub\wwwroot and browse to it at http://localhost/phpinfo.php

    <?php
    phpinfo();

    Take a screenshot of the resulting info page if you can.

    This is a good debugging tool, as it would list all the environment variables and loaded extensions. If there's anything that doesn't look right in there, it's probably because it wasn't set in php.ini correctly.

    Also, make sure php-cgi.exe is configured with FastCGI/IIS, not php.exe! This error almost certainly indicates it's not configured correctly: "HTTP Error 500.0 - Internal Server Error c:\php5\php.exe - The FastCGI process exited unexpectedly"

    Cheers,
    Sean

  • dips_045
    Avatar
    Community Member
    20 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    The message no longer comes up! I can't believe I made that mistake - I even made a note to use php-cgi.exe! - Thankyou!

    But I have another question.. how can I make a file and folder writeable?
    Is the web.config file writeable?   The webserver user needs to be able to write to this file:
    C:\inetpub\wwwroot\2.4\web.config
    Is the mysite/_config.php file writeable?   The webserver user needs to be able to write to this file:
    C:\inetpub\wwwroot\2.4\mysite\_config.php
    Is the assets/ folder writeable?   The webserver user needs to be able to write to this file:
    C:\inetpub\wwwroot\2.4\assets

    Thanks

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: silverstripe MS- SQL installation problem Link to this post

    No problem!

    Changing the security of files is relatively easy. You'll need to right click the assets folder, go to Properties then hit the Security tab.

    From here, make sure the Users group has write permissions.

    Do the same for the web.config and mysite/_config.php files, same process.

    You may also need to restart IIS after changing the filesystem permissions for them to take effect.

    Cheers,
    Sean

    5009 Views
Page: 1 2 3 4
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.