Jump to:

4945 Posts in 17688 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » 2.4 fresh install, /admin/ -> Error 500

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: 1870 Views
  • delcon
    Avatar
    Community Member
    9 Posts

    2.4 fresh install, /admin/ -> Error 500 Link to this post

    I did a fresh install on Windows 2008R2, IIS7.

    It seams to be running, except I can not log in to the CMS.
    sswebsite/admin/ gives me a Error 500

    All Logs are activated

    mysite/_config.php:
    ini_set("log_errors", "On");
    ini_set("error_log", "/log");
    // log errors and warnings
    SS_Log::add_writer(new SS_LogFileWriter('/log/'), SS_Log::WARN, '<=');

    But it is not logging anything.

    However, in IIS I get a Error 500 0 0 328

    Maybe something with the URL-Rewrite-Modul? Or how could I trace this?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: 2.4 fresh install, /admin/ -> Error 500 Link to this post

    Hi there,

    In IIS manager, go to Errors and enable detailed errors. This might give you a few more clues as to why the error occurs.
    IIS generally gobbles up the errors unless you tell it not to, or unless you browse the site locally on the server.

    FYI, I've installed SilverStripe on many IIS 7.x with SQL Server 2008 installations using the installer and it's been a smooth process.

    Check that you've got the IIS URL Rewrite module installed too. Find it here: http://www.iis.net/download/URLRewrite

    Hope this helps!

    Cheers,
    Sean

  • ghdpick
    Avatar
    Community Member
    1 Post

    Re: 2.4 fresh install, /admin/ -> Error 500 Link to this post

    It(error 500)often appears when i open the window.

  • delcon
    Avatar
    Community Member
    9 Posts

    Re: 2.4 fresh install, /admin/ -> Error 500 Link to this post

    Thank you for your answer, Sean

    Since 2.4 is a new release I report my conditions. It might help to get it as clean as possible.

    2.3 ran (almost) perfect. But before I wanted to go about a strange behavior I wanted to upgrade. And that is the point when I got stuck and had to turn to this forum. It might be that the installation (Webinstaller) works fine. But if you upgrade you encounter problems. So I did a clean install on a machine that 2.3 was running fine.

    after extensive trying I got Silverstripe to log. The logflie paths should look something like this: "/inetpub/log/ss.log" starting from the drive where PHP is located, so in most cases c:. "/log/" will not work. There's got to be a logfilename! Maybe a note in the config file would save time for others.

    the Logfile states: " Error at \sapphire\thirdparty\Zend\Cache.php line 208: Uncaught Zend_Cache_Exception: cache_dir is not writable"

    finding out with procmon I can see that PHP tries to access c:/windows/temp/

    concluding ss tries to cache files in c:/windows/temp/

    so how can I set the cache_dir ?

    greetings!

    Leo

  • delcon
    Avatar
    Community Member
    9 Posts

    Re: 2.4 fresh install, /admin/ -> Error 500 Link to this post

    setting the cache_dir explicitly in /sapphire/thirdparty/Zend/Cache/Backend/File.php:90 to my silverstripe-cache directory helped.

    I think it is a SS 2.4 issue, looking at this thread:
    http://www.silverstripe.org/installing-silverstripe/show/281227

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: 2.4 fresh install, /admin/ -> Error 500 Link to this post

    In Windows Explorer, browse to C:\Windows\, right click the Temp directory and select Properties.

    Click the Security tab, proceed through any message of warning and give the Users group read and write access using the checkboxes.

    PHP / SilverStripe should now be able to write into C:\Windows\Temp\

    Sean

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