Cannot create directory under templates_c

General discussion on Zend Server for IBM System i
Post Reply
jane1234
Posts: 7
Joined: Wed Nov 24, 2010 7:25 pm

Cannot create directory under templates_c

Post by jane1234 » Wed Jun 29, 2011 2:59 pm

I installed the Zend Server recently and moved our website from zend core to zend server. I got following message in php.log:

mkdir() [<a href='function.mkdir'>function.mkdir</a>]: The file access permissions do not allow the specified action
Smarty error: problem creating directory "templates_c/N12/N1211976317"

I tried chmod 777 and chown QTMHHTTP on templates_c and it didn't work.

Please help

darkluke980
Posts: 61
Joined: Sat Mar 28, 2009 8:31 pm
Location: Italy
Contact:

Re: Cannot create directory under templates_c

Post by darkluke980 » Wed Jun 29, 2011 8:28 pm

Hi, if you use WRKLNK command for browsing directory, with option 9 you can see and modify permission, check SUBTREE parameter.

Bue

jane1234
Posts: 7
Joined: Wed Nov 24, 2010 7:25 pm

Re: Cannot create directory under templates_c

Post by jane1234 » Wed Jun 29, 2011 8:51 pm

The folder templates_c/N12/N1211976317 has been created after I changed the owner ship to QTMHHTTP. QTMHHTTP has all read, write access to this folder. But I still get same error message.

erich_hieden
Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: Cannot create directory under templates_c

Post by erich_hieden » Thu Jun 30, 2011 7:29 am

QTMHHTTP needs permission for all folders down to templates_c. So it needs the access to /www and /www/zendsvr and /www/zendsvr/htdocs (those three it has by default) and so on, down to templates_c.
The best way to achieve that, is to switch into /www/zendsvr/htdocs using qshell and to run 'chmod –R 770 *' and 'chown -R qtmhhttp *'.

Post Reply