Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Install fails silently and consumes too many resources

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

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

Page: 1
Go to End
Author Topic: 2318 Views
  • Maxim
    Avatar
    Community Member
    6 Posts

    Install fails silently and consumes too many resources Link to this post

    When I visit the install.php page it says I can proceed with the installation, but if I click on either the 'Install SilverStripe' button or the 'Re-check requirements' button then the server takes a *long* time to respond. It eventually fails and displays a completely blank page.

    Afterwards I am unable to SSH or SFTP into the server for 20 minutes. Apparently, to cope with DDOS attacks, my web host prevents a user from forking too many processes at once.

    This is hard to diagnose, because I am locked out for 20 minutes every time I press the button. I think I've checked all the obvious things though:

    Apache can create and write to the necessary files.
    Maximum memory available is 128M.
    I am using SilverStripe 2.0.1 (this is what it says in the silverstripe_version file).
    The software versions listed in phpinfo are:
    Apache/1.3.37
    PHP 5.2.1
    mcrypt 2.5.7
    mbstring
    GD 2.0.28 compatible
    mysql 5.0.27
    Also asp_tags is set to Off in php.ini.

    The only strange thing is that both phpinfo and the SilverStripe installer are unable to find mod_rewrite. I have tested that I can create rewrite rules using .htaccess files though.

    So, how can I debug this problem? Should I add log messages to the installer to see where it gets stuck?

    Are there any suitable debugging tools for PHP that I could use on a shared hosting account?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Install fails silently and consumes too many resources Link to this post

    Is there some sort of error logs you can check, like the cpanel has on some hosts? Usually they report the problem right there and then...

    Cheers,
    Sean

  • Maxim
    Avatar
    Community Member
    6 Posts

    Re: Install fails silently and consumes too many resources Link to this post

    My host is using cPanel, but the only message appearing on the error log page is:

    [Sun May 20 06:22:52 2007] [error] [client 62.56.123.70] File does not exist: /home/maxim/public_html/500.shtml

    That might explain why I get the completely blank page. I'll try creating one and see if it gives some error information.

  • Maxim
    Avatar
    Community Member
    6 Posts

    Re: Install fails silently and consumes too many resources Link to this post

    That didn't help. I still receive a blank page, but now there are no errors appearing in the log.

    btw - It takes about 2 minutes before the blank page appears. While it was loading I looked at the 'Server Status' page in cPanel, and I saw the Server Load increase by 10 times. When it finished, the load dropped right down again, so I think it is putting a lot of strain on the server.

  • Maxim
    Avatar
    Community Member
    6 Posts

    Re: Install fails silently and consumes too many resources Link to this post

    I don't think this is a problem with SilverStripe after all!

    There seems to be something wrong with handling POST requests in any PHP5 script on my web host.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Install fails silently and consumes too many resources Link to this post

    I've had that happen when PHP is set up as CGI instead of an apache module.

  • Maxim
    Avatar
    Community Member
    6 Posts

    Re: Install fails silently and consumes too many resources Link to this post

    Hi Sam,

    Yes, it is running as CGI. Does this mean I can't install SilverStripe?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Install fails silently and consumes too many resources Link to this post

    I'm sorry, but your host has simply set up a faulty PHP5 installation. If POST forms don't work, there's not much we can do!

    I've never successfully set up PHP5/CGI to handle POST forms, but I imagine it can't be done.

    Tell your host to fix their server, or check out http://doc.silverstripe.com/doku.php?id=suggested-web-hosts to find a new host!

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