Installing IdeaSpaceVR on local linux workspace, blank index.php

  • Hi, tried yesterday to install your IdeaSpace on my local machine (ubuntu), sadly blank page on FF, HTTP ERROR 500 on Chronium. In logs apache has:

    PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file "/var/www/html/vr/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/vr/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107\nStack trace:\n#0 /var/www/html/vr/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\\Handler\\StreamHandler->write(Array)\n#1 /var/www/html/vr/vendor/monolog/monolog/src/Monolog/Logger.php(336): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n#2 /var/www/html/vr/vendor/monolog/monolog/src/Monolog/Logger.php(615): Monolog\\Logger->addRecord(400, Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array)\n#3 /var/www/html/vr/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\\Logger->error(Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array)\n#4 /var/www/html/vr/vendor/laravel/framework/src/Illuminate/Log/Writer.php(113): Illuminate\\Log\\Writer->writeLog('error', Object(Symfony\\Component\\De in /var/www/html/vr/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 107

    Any idea what went wrong?
    I think I have all requirements installed (

  • @hermetic Hi, you have to give user permissions to the web server to allow write access to the file laravel.log. Eg. sudo chown -R <insert your user>:www-data /var/www/html/vr/storage (depending if www-data is the group where your web server belongs to).

  • Thank you. .. one step ahead... it says now 'Whoops, looks like something went wrong.'
    Did restart apache, but same prob.
    Also changed storage, bootstrap/cache, public/assets/user directories, config/database.php and config/app.php to www-data
    Hope I did not miss some manual somewhere?
    error.log is

    [core:notice] [pid 1714] AH00094: Command line: '/usr/sbin/apache2'

    '/usr/sbin/apache2' path is ok. '[core:notice] [pid 1714] AH00094:' don't tells too much.
    Any idea on that error, do I need to have laravel installed for IdeaSpaceVR to work?

  • This message in your error.log shows that Apache starts up normally. But, which messages will be generated if you try to access your IdeaSpaceVR URL? Which messages show up in access.log? How did you configure your VHost for IdeaSpaceVR? You could dump the vhost settings with the following command:
    apache2 -D DUMP_VHOSTS

    Another consideration: if your Ubuntu is using SELinux, then you also have to adjust the SELinux policies for the directory where IdeaSpaceVR is installed. I'm not familiar with Ubuntu as I'm using CentOS - in CentOS, commands are as follows:
    chcon -Rv --type=httpd_sys_content_t PATH/TO/IdeaSpaceVR
    to enable read access for the httpd service, and additionally
    chcon -Rv --type=httpd_sys_rw_content_t PATH/TO/IdeaSpaceVR/database.php
    chcon -Rv --type=httpd_sys_rw_content_t PATH/TO/IdeaSpaceVR/app.php

    to enable write access for directories that have to be writeable for IdeaSpaceVR.

Log in to reply