makesites / kisscms

A lightweight CMS written in PHP. Lightning fast to setup. Obviously easy to maintain. #php

Home Page:http://kisscms.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't look into dirs in the tmp folder

ryndel opened this issue · comments

I'm getting this error:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(//) is not within the allowed path(s): (/nfs:/tmp:/usr/local:/etc/apache2/gs-bin) in /nfs/c06/h05/mnt/XXXXXX/etc/base/1.7.0/app/helpers/common.php on line 391



Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File() is not within the allowed path(s): (/nfs:/tmp:/usr/local:/etc/apache2/gs-bin) in /nfs/c06/h05/mnt/XXXXXX/etc/base/1.7.0/app/helpers/common.php on line 391

I'm also getting:

Warning: filemtime() [function.filemtime]: stat failed for /tmp/assets/css/subpage.133a375ef03cb4f3c1d9777967f3ff92.min.css in /nfs/c06/h05/mnt/XXXXXX/etc/base/dev/app/lib/php-closure.php on line 232

This issue is more related with the server configuration. Especially in a shared server, using the system tmp folder may not have all the required privileges.

Instead of requiring advanced priviledges on the server we can fallback to setting a different tmp dir, using the upload_dir path form php.ini (which should be accessible)

To make it easier to setup/remember the env.json will just require a boolean flag that will make this update automatically whilst set to true

{ 
    ...
    shared: true 
} 

Closing as addressed