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?
|