It is currently Thu Mar 28, 2024 11:48 pm


The forum is READ ONLY. Please direct any future discussions to our Facebook page


 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: template permissions problems after fresh 0.20 install
PostPosted: Thu Feb 19, 2004 8:58 am 
Forum Roamer
Forum Roamer

Joined: Thu Jan 08, 2004 1:04 am
Posts: 58
PHP 4.3.1
MySQL 3.23.53

Installed fresh 0.20, followed doc/INSTALL notes on dir permission settings,
ran install.php, discovered that default config dir permissions don't allow install.php to save config, chmod u+wx config
then install.php could save just fine.

chown -R to the user and group apache runs under

As soon as I got to the Create Universe .php file, screen now white, unable to access any Configuration page (no data).

After game created successfully, unable to even see login page.

Checked apache error.log file, found following:

[Thu Feb 19 09:42:47 2004] [error] PHP Warning: Smarty error: problem creating directory "./templates_c//%%-12/%%-1203670071" in /xxxx/aatrade/backends/smarty2/libs/Smarty.class.php on line 1042
[Thu Feb 19 09:42:47 2004] [error] PHP Warning: Smarty error: problem writing temporary file './templates_c//%%-12/%%-1203670071/4034cb67e5194' in /xxxx/aatrade/backends/smarty2/libs/Smarty.class.php on line 1042
[Thu Feb 19 09:42:47 2004] [error] PHP Warning: touch() [<a href='http://www.php.net/function.touch'>function.touch</a>]: Unable to create file ./templates_c//%%-12/%%-1203670071/footer.tpl.php because Permission denied in /xxxx/aatrade/backends/smarty2/libs/Smarty.class.php on line 1575
[Thu Feb 19 09:42:47 2004] [error] PHP Warning:
fetch(./templates_c//%%-12/%%-1203670071/footer.tpl.php) [<a href='http://www.php.net/function.fetch'>function.fetch</a>]: failed to create stream: Permission denied in /xxxx/aatrade/backends/smarty2/libs/Smarty.class.php on line 1158
Failed opening './templates_c//%%-12/%%-1203670071/footer.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /xxxx/aatrade/backends/smarty2/libs/Smarty.class.php on line 1158

./templates_c has the correct permissions according to the settings listed in INSTALL (dr----x--t)

Yet, if aatrade20 expects to write to that dir using the user/group of apache, then it looks like it either needs to have a chmod u+w or g+w done it.

Problem fixed by chmod u+rwx templates_c (had to then rerun install.php and create universe again)

Perhaps the INSTALL doc file needs to be updated?


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 10:25 am 
Site Admin
Site Admin
User avatar

Joined: Wed Feb 19, 2003 12:17 pm
Posts: 2619
Actually it should have told you this when you ran the install.php templates_c will either need to be owned by the webserver users or chmod to 777

Note: Also some servers do not like to use the multidir option that smarty uses. If this is the case there is an option to turn this off in the configuration editor.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron