CodeIgniter and OpenLiteSpeed folder permissions

aben

New Member
#1
Hi,
I have CodeIgniter installed and accessible.
The CodeIgniter framework requires a writeable cache directory

When I open the index page
I get the following error:
"Cache unable to write to /usr/local/lsws/ldavid/writable/cache/ "

I guess that is because the project's usr and grp are set to root
drwxr-xr-x 7 root root 4096 Aug 4 14:33 writable/
drwxr-xr-x 2 root root 4096 Aug 4 14:33 cache/

What would be the best option to solve this issue without compromising security?
Second, what usr and grp are used for the webserver daemon/ lsphp ?
I wonder if setting the cache directory usr and grp to "lsadm" can fix the problem.

Any ideas?

Thanks
 

Pong

Administrator
#2
What user the php run as for your CodeIgniter domain? If you have not set to run as PHP SuEXEC, it most likely run as Nobody:nobody.

You can change the directory to be owned by that user:user.
 
Top