Upgrading from 2.4.8 to 3.1 vía 3.0.2 (file permissions)

Hi,
I’m trying to upgrade 2.4.8 to 3.1.x
I’m going through 3.0.2 as an interim step, just in case major changes are made in db or so.
When accessing my installation url to proceed with web-based upgrading I get the following error messages (which I presume are hosting-related)


Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-f32497eef8ec1768f0319169c7ea6da4.php): failed to open stream: Permiso denegado in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-dcd1042d3e0b772a143f1e598c6e238a.php): failed to open stream: Permission denied in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-47d110ff502787b3cc2b483bcb43d5ce.php): failed to open stream: Permission denied in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-list.php): failed to open stream: Permiso denegado in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-f33e48774d430da7e23b28dc7eee0abe.php): failed to open stream: Permission denied in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-0d5f718e3935c90331778a32293093ae.php): failed to open stream: Permission denied in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-f7925567b09770e5adb5003ec06c7da6.php): failed to open stream: Permission denied in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-4cf49735721368f665eeaf8439f5d98a.php): failed to open stream: Permission denied in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Warning: file_put_contents(/var/www/html/pasos/cache/fc-locale-7b2e9951159deed39e9dfb57e18d4634.php): failed to open stream: Permission denied in /var/www/html/pasos/lib/pkp/classes/cache/FileCache.inc.php on line 90

Fatal error: Smarty error: unable to write to $compile_dir ‘/var/www/html/pasos/cache/t_compile’. Be sure $compile_dir is writable by the web server user. in /var/www/html/pasos/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1094

I guess these are hosting side issues. Do you as well?

Thanks in advance for your help.
Regards,
Juan

Hi @jascanio

It seems like your file permissions are not set correctly. See “Installation” part of the OJS README ojs/README at ojs-3_1_1-2 · pkp/ojs · GitHub and what folders has to be writable for the web user or group. It seems like your cache/ folder is not writable.

Also, do not upgrade via 3.0.2, if not necessary – since then a lot of bugs were fixed – the most recent OJS 3.1.1-2 version should be used.

Best,
Bozana

hI @bozana,
thanks for your reply.
Yes. Sys admin people had them set incorrectly.
It is ok now.

Regards,
Juan