Forums / Install & configuration / Could not create template, permission denied. "why?"

Could not create template, permission denied. "why?"

Author Message

mikael lindqvist

Monday 01 September 2003 11:57:41 am

I followed the instructions from the (excellent) article:

http://www.sitepoint.com/article/1208/3

And from the admin site "/Set up/Templates/Pagelayout.tpl" I try to create a new template but I receive an "permission denied" error.

Output from debug:
-------------------------------
Warning: PHP Sep 01 2003 20:51:43
session_module_name() has been disabled for security reasons in /home/m/myportal/www/ez/lib/ezutils/classes/ezsession.php on line 137
Timing: Sep 01 2003 20:51:43
Module start 'setup'
Warning: PHP Sep 01 2003 20:51:43
Undefined variable: this in /home/m/myportal/www/ez/kernel/common/eztemplatedesignresource.php on line 468
Warning: PHP Sep 01 2003 20:51:43
fopen(design/mydesign/override/templates/pagelayout.tpl) [<a href='http://www.php.net/function.fopen'>function.fopen</a>]: failed to create stream: Permission denied in /home/m/myportal/www/ez/kernel/setup/templatecreate.php on line 117
Error: Template override Sep 01 2003 20:51:43
Could not create override template, check permissions on design/mydesign/override/templates/pagelayout.tpl

-----------------------------------------

Any ideas what's happening here?

Kindly,
Mikael
/Sweden

Bjørn Kaarstein

Tuesday 02 September 2003 6:54:02 am

I think you have to give write rights to the anonymous user, since you are trying to create this from the web interface.

Another solution is to manually create design/mydesign/override/templates/pagelayout.tpl

Actually, the pagelayout doesn't have to be placed in the override folder. Just create it in design/mydesign/templates/pagelayout.tpl

Regards Bjørn

Marco Zinn

Tuesday 02 September 2003 12:42:14 pm

Bjorns comment is true.

Some comments:
1. You don't have to give "anonymous" rights for writing in the dirs. Your Apache task must be able to write.... if you can find, which user and user group it runs, you can give them the write rights.

2. You can copy the template "manually". Note, that since 3.2, the "Copy"-Button in the web interface copies the file AND creates/edit the override.ini file, which will tell the system, when to use the template. I don't know, if just copying the file will be enough for 3.2.

Marco
http://www.hyperroad-design.com

Jan Borsodi

Wednesday 03 September 2003 12:42:07 am

>session_module_name() has been disabled for security reasons in /home/m/myportal/www/ez/lib/ezutils/classes/ezsession.php on line 137

It can seem that you have some sort of secure mode on, possibly it is safe_mode which is controlled by the php.ini file.

Do you have control over the webserver yourself or is this in a hosting enviroment?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

mikael lindqvist

Wednesday 03 September 2003 1:46:52 am

I'm running eZ on a hosting environment. I do have shell access though (but not root).

I'm afraid I don't know how to "give rights" so if you could develop that briefly I'd very grateful! :)

/Regards,
Mikael