Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Missing chmod and chown in Basic Installation

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
jazevedo
Smarty n00b


Joined: 27 Apr 2003
Posts: 4
Location: Luxembourg

PostPosted: Sun Apr 27, 2003 11:36 am    Post subject: Missing chmod and chown in Basic Installation Reply with quote

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] Cool
Back to top
View user's profile Send private message
Wom.bat
Smarty Pro


Joined: 24 Apr 2003
Posts: 107
Location: Munich, Germany

PostPosted: Sun Apr 27, 2003 11:45 am    Post subject: Reply with quote

yep, but this is not a smarty issue, but a "problem" of your php/webserver setup
Back to top
View user's profile Send private message
jazevedo
Smarty n00b


Joined: 27 Apr 2003
Posts: 4
Location: Luxembourg

PostPosted: Sun Apr 27, 2003 1:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wom.bat
Smarty Pro


Joined: 24 Apr 2003
Posts: 107
Location: Munich, Germany

PostPosted: Sun Apr 27, 2003 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
jazevedo
Smarty n00b


Joined: 27 Apr 2003
Posts: 4
Location: Luxembourg

PostPosted: Sun Apr 27, 2003 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wom.bat
Smarty Pro


Joined: 24 Apr 2003
Posts: 107
Location: Munich, Germany

PostPosted: Sun Apr 27, 2003 2:07 pm    Post subject: Reply with quote

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 Wink
Back to top
View user's profile Send private message
jazevedo
Smarty n00b


Joined: 27 Apr 2003
Posts: 4
Location: Luxembourg

PostPosted: Sun Apr 27, 2003 3:11 pm    Post subject: Reply with quote

Do you mean that the files inside the templates directory should belong to the webserver user.
Back to top
View user's profile Send private message
Wom.bat
Smarty Pro


Joined: 24 Apr 2003
Posts: 107
Location: Munich, Germany

PostPosted: Sun Apr 27, 2003 3:39 pm    Post subject: Reply with quote

no, the webserver user just needs access rights to these files
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP