Jump to:

4945 Posts in 17751 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Windows Install Error

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
Go to End
Author Topic: 1873 Views
  • rcricken
    Avatar
    Community Member
    3 Posts

    Windows Install Error Link to this post

    Hi, I am having some issues getting SS functioning correctly. I followed directions from http://doc.silverstripe.org/installation-on-windows-server-manual-iis to manually install to an IIS server on Windows 7. When I attempt to run the site http://localhost/ss24 I receive the error [Warning] mysql_connect(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306). I am not sure what would be causing this issue and any help is greatly apprecaited.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Windows Install Error Link to this post

    And you get this error when going to install.php?

    It looks like you haven't set the database details correctly...

    Please make sure your working copy is clean, and you're using the original mysite/_config.php from the downloaded SilverStripe package.

    Sean

  • rcricken
    Avatar
    Community Member
    3 Posts

    Re: Windows Install Error Link to this post

    No, the error is when I attempt to go to index.php. The copy of _config.php under mysite directory is the original downloaded file. I believe in the instructions it asks for you to input a database name into the file but other than that no changes where made. If I browse to install.php I get several errors regarding permissions...

    Is the web.config file writeable? The webserver user needs to be able to write to this file:
    C:\inetpub\wwwroot\ss24\web.config
    Is the mysite/_config.php file writeable? The webserver user needs to be able to write to this file:
    C:\inetpub\wwwroot\ss24\mysite\_config.php
    Is the assets/ folder writeable? The webserver user needs to be able to write to this file:
    C:\inetpub\wwwroot\ss24\assets

    And a database error:

    Database server I couldn't find a database server on 'localhost': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

    If I add "Everyone" to allow full control at inetpub folder the access errors go away but still doesnt resolve initial problem browsing to index.php.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Windows Install Error Link to this post

    I think that's where the instructions are wrong. I've removed the section that indicated changing the database name from "" to "ss24".

    The installer should take care of this for you.

    Could you try setting it back to "" then going to http://localhost/ss24?

    Cheers,
    Sean

  • rcricken
    Avatar
    Community Member
    3 Posts

    Re: Windows Install Error Link to this post

    Hi Sean: After removing the database name from that file it worked perfectly. Thanks so much for your help and quick response.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Windows Install Error Link to this post

    Great to hear!

    I need to add a section to that documentation which shows you how to add a default document of index.php. IIS doesn't do this by default when you're adding a new "Handler Mapping" entry for PHP.

    Cheers,
    Sean

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Windows Install Error Link to this post

    You can use IIS Web Gallery to install PHP.
    So, Web Gallery config IIS to run PHP.
    I suggest to install WinCache, too.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Windows Install Error Link to this post

    biapar: Yes, but this is a manual install, and the advantage is you install a VC9 version of PHP 5.3 instead of VC6 of PHP 5.2 which WebPI installs. VC9 compiles are faster than VC6 and 5.3 is also faster than 5.2. There's also full control over the process, so you learn how to setup PHP via FastCGI with IIS.

    Wincache is also covered by the guide, and yes it's a recommended installation.

    1873 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.