PDA

View Full Version : Template Selection does not work


lsvf
12-01-2004, 04:45 PM
Hello,

I am creating a page with the Iframe tag that calls another page on the server. I needed a different template, so I go to "Edit Pages" and selected a different template for the new page I have created. However, when I view the page it is showing the default template. (I am using custom templates)
How do I fix this?

Many thanks,
Linda

I found it doesn't matter if I am using a custom template. the templates that come with the program also do not work when choosing an additional template for specific pages. All revert back to the site base template.

ALSO -- I have installed about three sites with the latest version (4.7) and ALL of them have this same problem. I didn't realize this because the feature hasn't been needed -- but now that it is, I think I need a fix asap.

lsvf
12-02-2004, 06:53 PM
Hello?? Can anyone help with this problem? :confused:

Cameron Allen
12-03-2004, 05:45 PM
Linda, this is a permissions issue. Open up the permissions on the template folder in the docroot. Also open up the permissions on the template.conf file in that folder as well.

lsvf
12-03-2004, 06:39 PM
Linda, this is a permissions issue. Open up the permissions on the template folder in the docroot. Also open up the permissions on the template.conf file in that folder as well.

Cameron, I have set the permissions to 0644, 0755 and 0777; I have changed the ownership from nobody.nobody to sitename.sitename and back again. (I have done this through SSH) But -- it still does the same thing -- I make the template change, preview the page to discover the template has not change. Then when I return to sohoadmin, the page I tried to change has the sitebase template showing in the template window.

Are there any other possible solutions?

Linda

Cameron Allen
12-07-2004, 08:28 PM
Just an update for anyone that has this problem: This issue was permissions. This was particularly hard to figure out because the permissions on the template.conf where fine in the public_html folder, but where too tight in the www folder. If anyone else has an issue like this, check the permissions on both folders.

lsvf
12-12-2004, 11:56 PM
Just an update for anyone that has this problem: This issue was permissions. This was particularly hard to figure out because the permissions on the template.conf where fine in the public_html folder, but where too tight in the www folder. If anyone else has an issue like this, check the permissions on both folders.

Cameron, what exactly did you do? I have this same problem on every ip on my server. I changed the owner to apache.apache on soho files in both www and public_html folder; I chmod template.conf to 0777. Yet when I choose an alternate template for a page it always reverts back to the site based template.

I went back to the other site (the one you worked on) to compare permissions and ownership so I could make the changes you made and found that it is no longer saving the new template selection either. On that site I moved all of the files to the doc root from the temporary directory but made no other changes.

Please tell me what files I need to change permissions/ownership on so I can get these site templates to functioning properly. This is very frustrating.

Thanks

Linda

Cameron Allen
12-13-2004, 11:03 AM
I changed the permissions on the /template folder in the docroot and template/template.conf . I didn't change owernership. It sounds like your server has a setting where permissions are reverting. Are you running /suexec or a similar security program?

lsvf
12-13-2004, 11:33 AM
I changed the permissions on the /template folder in the docroot and template/template.conf . I didn't change owernership. It sounds like your server has a setting where permissions are reverting. Are you running /suexec or a similar security program?


Yes, suexec is enabled. I believe it is needed on someone's site. Is this a problem that will not go away with suexec enabled?

Cameron Allen
12-13-2004, 12:11 PM
suexec is what is causing these permissions problems. Try setting the permissions to 755, or tweaking the suexec settings. I know suexec has a big problem with files that are 777 so maybe 755 will do the trick.

lsvf
12-13-2004, 12:35 PM
suexec is what is causing these permissions problems. Try setting the permissions to 755, or tweaking the suexec settings. I know suexec has a big problem with files that are 777 so maybe 755 will do the trick.


You are correct, Cameron. I knew this but just forgot -- in Cpanel with Suexec enabled you have to run programs on 0755 permissions. I chmod all folders/files to 0755 but I still had problems when trying to save a file in Sohoadmin. So, I chown the /template folder to nobody.sitename and chmod -R 0777 the sohoadmin/tmp_content (for some reason that folder works with the loose permissions but none of the other directories will -- [at least from what I have observed on this problem so far.] There may be other folders that need to be changed but I haven't noticed yet.)

Hope this helps someone else who is experiencing difficulties with this.

Thanks Cameron for all your help. You are a very nice person. And, this is a great program. Kudos to all you guys who are working on it.

Merry Christmas to all. I am going to relax for awhile (I hope). :cool:

Linda