"failed to open stream: Permission denied" during ojs-3.1.2-1 installation

Hello,

I’m trying to install a brand-new fresh install of ojs-3.1.2-1 on the following URL: http://humanidades.uni.edu.py/revista/

. I’ve moved the files, and extracted everything according to the readme. I’ve also set file permissions recursed to 755 in the following directories:

config.inc.php
* public
* cache
* cache/t_cache
* cache/t_config
* cache/t_compile
* cache/_db

However, I get an stream of errors:

Error Log

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-8c15ce7dfec31e437114d80f1f936272.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-1cfde42be2b25bdac1c9a16538de37a8.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-5137a1280b1086f54885b488948ffabd.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-465dd785313a94efc09bcc5e0d2e20cf.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-005a065b9c7e47fe8ec5e93cc24d9658.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-01e94dde238387b6d491636e431c752c.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-6e65123f6e5caca2e7dca0b85b124ec8.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-32de70b612cc9ebdfae5a7ddba703f7f.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-30ade3af71c390241cfe899534e36d36.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-1637b50d04b69cf5e16bd0bbf9b277ff.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-95d24e09ab8af6f9bb8a02f637efbefb.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

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

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-1e181fa9791b0dc1c5d9939b82f50e34.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-64b0f9e2ab826b49e3e93a096aba8259.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

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

Warning : file_put_contents(/var/www/html/humanidades/revista/cache/fc-locale-358c56f5ace75e00d521d5b534a8c845.php): failed to open stream: Permission denied in /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php on line 91

Warning : Cannot modify header information - headers already sent by (output started at /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php:91) in /var/www/html/humanidades/revista/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 836

Warning : Cannot modify header information - headers already sent by (output started at /var/www/html/humanidades/revista/lib/pkp/classes/cache/FileCache.inc.php:91) in /var/www/html/humanidades/revista/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 837

Fatal error : Uncaught → Smarty: unable to write file /var/www/html/humanidades/revista/cache/t_compile/wrt5d8cdcbac40a28_20343898 ← thrown in /var/www/html/humanidades/revista/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php on line 60

Can anybody help me troubleshoot?

Server has been set up by third parties at the university, I only have my SSH creds and access to this one folder to deploy OJS.

Thank you.

Hi @Marcos_Codas,

You need to work on the file permissions in your cache/ directory (and its subdirectories). See How should file permissions be set? for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Can this be done via SSH on Filezilla? That’s how I did it.

Hi @Marcos_Codas,

It should be possible to do via SSH, but I don’t know Filezilla specifically.

Regards,
Alec Smecher
Public Knowledge Project Team

If that’s the case, I’ve already done it, as mentioned in the OP. It’s the first thing I checked.

Any clues as to what might be happening?

Hi @Marcos_Codas,

Just setting 755 permissions may not be enough – it’ll depend on your server API (SAPI), which is how your web server and PHP are integrated. For example, are you using mod_php in your Apache configuration (if you’re using Apache)?

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you for that. I’ll get in touch with the IT department and ask them to check permissions and inquire about their server environment and API.