View previous topic :: View next topic |
Author |
Message |
jazevedo Smarty n00b
Joined: 27 Apr 2003 Posts: 4 Location: Luxembourg
|
Posted: Sun Apr 27, 2003 11:36 am Post subject: Missing chmod and chown in Basic Installation |
|
|
I am new using Smarty, so I follwed the instructions of the Basic Installation. I did everything as explained when I executed the program I got the error
Warning: Smarty error: unable to read template resource: "index.tpl" in /usr/local/php-4.2.3/lib/php/smarty/Smarty.class.php on line 1042
I the template path serval times and searched the smarty site as well as the net for any help, but found nothing. Belive I tried everything.
I was get bored and tried one last thing I chmod 777 everything templates, templates_c, config, cache and like magic it worked. I set the directories to their inital state and as explained in the Basic Installion the same error.
To get it working I had to do
chown nobody:nobody /web/www.mydomain.com/smarty/templates/
chmod 770 /web/www.mydomain.com/smarty/templates/
This solved my problem, maybe you do not have to do this, but for me it did the trick.
Could anyone reply on this just to let me know if I am wrong or right.
Thankx
Jero[/u] |
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Sun Apr 27, 2003 11:45 am Post subject: |
|
|
yep, but this is not a smarty issue, but a "problem" of your php/webserver setup |
|
Back to top |
|
jazevedo Smarty n00b
Joined: 27 Apr 2003 Posts: 4 Location: Luxembourg
|
Posted: Sun Apr 27, 2003 1:58 pm Post subject: |
|
|
Can be becaue I am using php-4.2.3 with apache2.0.43 just to try it. And the PHP guys say to not use this on production, maybe due to those kinds of problems.
Or do you think this can't be, I looked at my config could not find anyhing wrong I did a basic php installation and apache2 installation. |
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Sun Apr 27, 2003 1:59 pm Post subject: |
|
|
it's most likely because php/webserver and ftp are running on different users, and so, the wwwuser is not allowed to write into the directory created by ftpuser. I have to correct chmod-settings nearly every time I upload a site to a server |
|
Back to top |
|
jazevedo Smarty n00b
Joined: 27 Apr 2003 Posts: 4 Location: Luxembourg
|
Posted: Sun Apr 27, 2003 2:06 pm Post subject: |
|
|
Sorry the message was posted double
Last edited by jazevedo on Sun Apr 27, 2003 2:53 pm; edited 2 times in total |
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Sun Apr 27, 2003 2:07 pm Post subject: |
|
|
no, it's just about access permissions... you don't have any on windows machines, and maybe your redhat box was a good configured one |
|
Back to top |
|
jazevedo Smarty n00b
Joined: 27 Apr 2003 Posts: 4 Location: Luxembourg
|
Posted: Sun Apr 27, 2003 3:11 pm Post subject: |
|
|
Do you mean that the files inside the templates directory should belong to the webserver user. |
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Sun Apr 27, 2003 3:39 pm Post subject: |
|
|
no, the webserver user just needs access rights to these files |
|
Back to top |
|
|