claroline / Claroline

Learning management system
https://www.claroline.com
Other
315 stars 188 forks source link

PHP Fatal error at installation - failed opening a cache file #692

Closed clrh closed 8 years ago

clrh commented 9 years ago

Hi,

(I am following the README file of this repository)

Everything was ok before this step:

root@elearning:/var/www/html/claroline# php app/console claroline:install
PHP Warning:  require_once(/var/www/html/claroline/app/bootstrap.php.cache): failed to open stream: No such file or directory in /var/www/html/claroline/app/console on line 10
PHP Fatal error:  require_once(): Failed opening required '/var/www/html/claroline/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/claroline/app/console on line 10

If someone has to tip to help me, it's welcome ;)

Claire;

stmolivier commented 9 years ago

Have you checked (and set) the rights for app/cache ? it should be writable

clrh commented 9 years ago

For me, it is. I am digging this point.

arnaudbey commented 9 years ago

Could you check www-data has these permissions ?
(how did you handle your rights ? chmod ? ACL ?)

I've just made a claroline install here without any problem :

git clone https://github.com/claroline/Claroline.git cd Claroline cp app/config/parameters.yml.dist app/config/parameters.yml vi app/config/parameters.yml sudo setfacl -R -m u:www-data:rwx -m u:whoami:rwx web/uploads/ app/cache app/logs app/sessions files app/config sudo setfacl -dR -m u:www-data:rwx -m u:whoami:rwx web/uploads/ app/cache app/logs app/sessions files app/config composer require composer/composer dev-master composer require claroline/bundle-recorder "~5.0" cp composer.json.min composer.json composer update --prefer-source php app/console claroline:install

clrh commented 9 years ago

I followed the same process I think (I re-did the installation just now):

git clone https://github.com/claroline/Claroline.git claroline2
cd ../claroline2
cp app/config/parameters.yml.dist app/config/parameters.yml
vim app/config/parameters.yml
setfacl -R -m u:www-data:rwx -m u:root:rwx web/uploads/ app/cache app/logs app/sessions files app/config
setfacl -dR -m u:www-data:rwx -m u:root:rwx web/uploads/ app/cache app/logs app/sessions files app/config
php ../composer.phar require composer/composer dev-master
php ../composer.phar require claroline/bundle-recorder "~5.0" 
cp composer.json.min composer.json
php ../composer.phar update --prefer-source
php app/console claroline:install

Same error:

root@elearning:/var/www/html/claroline2# php app/console claroline:install
PHP Warning:  require_once(/var/www/html/claroline2/app/bootstrap.php.cache): failed to open stream: No such file or directory in /var/www/html/claroline2/app/console on line 10
PHP Fatal error:  require_once(): Failed opening required '/var/www/html/claroline2/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/claroline2/app/console on line 10

Not completly fluent with php tools, maybe my composer installation or the way to install dirtily with root...

arnaudbey commented 9 years ago

does the /app/bootstrap.php.cache file exist ?

eternaltyro commented 8 years ago

Identical error for me. And no, the bootstrap.php.cache file does not exist under app directory. I'm assuming the following step creates it?

composer update --prefer-source

Does having improper permissions to the app directory prevent its creation?