Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Problem installing silverstripe 2.2.2

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: 5173 Views
  • HanSolo
    Avatar
    Community Member
    83 Posts

    Problem installing silverstripe 2.2.2 Link to this post

    I am trying to install silverstripe on a webserver. The first time i get to the website i got the form where I fill in all information. I got green lights for all the checks When i click the install button i get the following error. I am a total nwebie on php so i am really confused how to solve this.

    Installing SilverStripe...

    I am now running through the installation steps (this should take about 30 seconds)

    If you receive a fatal error, refresh this page to continue the installation
    # Creating 'tutorial/_config.php'...
    # Creating /home/userA/a0933500/public_html/horsintranet.se/tutorial/_config.php
    # Creating '.htaccess' file...
    # Creating /home/userA/a0933500/public_html/horsintranet.se/.htaccess
    # Building database schema...

    Warning: scandir(/home/userA/a0933500/public_html/horsintranet.se) [function.scandir]: failed to open dir: Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 95

    Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 95

    Warning: Invalid argument supplied for foreach() in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 96

    Warning: scandir(/home/userA/a0933500/public_html/horsintranet.se) [function.scandir]: failed to open dir: Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 117

    Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 117

    Warning: Invalid argument supplied for foreach() in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 118

    Warning: scandir(/home/userA/a0933500/public_html/horsintranet.se) [function.scandir]: failed to open dir: Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 140

    Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 140

    Warning: Invalid argument supplied for foreach() in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 141

    Warning: $project isn't set in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 154

    Warning: scandir(/home/userA/a0933500/public_html/horsintranet.se) [function.scandir]: failed to open dir: Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 161

    Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 161

    Warning: Invalid argument supplied for foreach() in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 162

    Warning: scandir(/home/userA/a0933500/public_html/horsintranet.se/) [function.scandir]: failed to open dir: Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 272

    Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 272

    Fatal error: Class 'DB' not found in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/ManifestBuilder.php on line 185

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Problem installing silverstripe 2.2.2 Link to this post

    Hey there - make sure all the sapphire directores/files are readable.

    eg, from /home/userA/a0933500/public_html/horsintranet.se/:

    chmod a+r sapphire -R

    then try again.

    Cheers

  • nomen
    Avatar
    Community Member
    52 Posts

    Re: Problem installing silverstripe 2.2.2 Link to this post

    Hi HanSolo:

    I´m having similar problems, but moving a SS site (2.2.1) fron development server to production server.
    There are my errors:

    Warning: scandir() [function.scandir]: open_basedir restriction in effect. File(/var/www/hosting/mysite.com/www.mysite.com) is not within the allowed path(s): (/var/www/hosting/mysite.com/www.mysite.com/:/tmp:/usr/share/pear:/var/www/html/w3virtual/phpMyAdmin) in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 95

    Warning: scandir(/var/www/hosting/mysite.com/www.mysite.com) [function.scandir]: failed to open dir: Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 95

    Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 95

    Warning: Invalid argument supplied for foreach() in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 96

    Warning: scandir() [function.scandir]: open_basedir restriction in effect. File(/var/www/hosting/mysite.com/www.mysite.com) is not within the allowed path(s): (/var/www/hosting/mysite.com/www.mysite.com/:/tmp:/usr/share/pear:/var/www/html/w3virtual/phpMyAdmin) in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 115

    Warning: scandir(/var/www/hosting/mysite.com/www.mysite.com) [function.scandir]: failed to open dir: Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 115

    Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 115

    Warning: Invalid argument supplied for foreach() in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 116

    Warning: scandir() [function.scandir]: open_basedir restriction in effect. File(/var/www/hosting/mysite.com/www.mysite.com) is not within the allowed path(s): (/var/www/hosting/mysite.com/www.mysite.com/:/tmp:/usr/share/pear:/var/www/html/w3virtual/phpMyAdmin) in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 137

    Warning: scandir(/var/www/hosting/mysite.com/www.mysite.com) [function.scandir]: failed to open dir: Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 137

    Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 137

    Warning: Invalid argument supplied for foreach() in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 138

    Warning: $project isn't set in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 150

    Warning: scandir() [function.scandir]: open_basedir restriction in effect. File(/var/www/hosting/mysite.com/www.mysite.com) is not within the allowed path(s): (/var/www/hosting/mysite.com/www.mysite.com/:/tmp:/usr/share/pear:/var/www/html/w3virtual/phpMyAdmin) in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 157

    Warning: scandir(/var/www/hosting/mysite.com/www.mysite.com) [function.scandir]: failed to open dir: Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 157

    Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 157

    Warning: Invalid argument supplied for foreach() in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 158

    Fatal error: Class 'DB' not found in /var/www/hosting/mysite.com/www.mysite.com/sapphire/core/ManifestBuilder.php on line 181

    I uploaded all the files by FTP and i check that all the files in sapphire are readable by all.
    Someone has an idea to solve this?

    By the way, i don´t understand why install.php is ejecuted if i change correctly database info in _config.php....

  • HanSolo
    Avatar
    Community Member
    83 Posts

    Re: Problem installing silverstripe 2.2.2 Link to this post

    I chnaged the attributes on the sapphire folder and now I get the following error, less errors but it is errors still

    # Creating 'mysite/_config.php'...
    # Creating /home/userA/a0933500/public_html/horsintranet.se/mysite/_config.php
    # Creating '.htaccess' file...
    # Creating /home/userA/a0933500/public_html/horsintranet.se/.htaccess
    Warning: chdir() [function.chdir]: Permission denied (errno 13) in /home/userA/a0933500/public_html/horsintranet.se/install.php on line 667

    Warning: Installer::require_once(core/Core.php) [function.Installer-require-once]: failed to open stream: No such file or directory in /home/userA/a0933500/public_html/horsintranet.se/install.php on line 669

    Fatal error: Installer::require_once() [function.require]: Failed opening required 'core/Core.php' (include_path='.:/usr/local/lib/php') in /home/userA/a0933500/public_html/horsintranet.se/install.php on line 669

  • HanSolo
    Avatar
    Community Member
    83 Posts

    Re: Problem installing silverstripe 2.2.2 Link to this post

    Do anyone have a solution for this, would be very greatful.
    Joakim

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Problem installing silverstripe 2.2.2 Link to this post

    You might have to change the attributes on all the folders and files not just sapphire. Eg for the .htaccess looks like you might have write access for it?

  • HanSolo
    Avatar
    Community Member
    83 Posts

    Re: Problem installing silverstripe 2.2.2 Link to this post

    Hi

    now i set all the folders and files to write, execute and read.
    and i got this error

    Installing SilverStripe...

    I am now running through the installation steps (this should take about 30 seconds)

    If you receive a fatal error, refresh this page to continue the installation
    # Creating 'mysite/_config.php'...
    # Creating /home/userA/a0933500/public_html/horsintranet.se/mysite/_config.php
    # Creating '.htaccess' file...
    # Creating /home/userA/a0933500/public_html/horsintranet.se/.htaccess
    # Building database schema...

    Parse error: syntax error, unexpected '<', expecting T_STRING in /home/userA/a0933500/public_html/horsintranet.se/sapphire/core/model/ComponentSet.php on line 291

    Any one got a clue whats wrong?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Problem installing silverstripe 2.2.2 Link to this post

    Well as the error says - syntax error on line 291 would be my guess!! lol. Any thing strange on that line in that file

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