Loading...
 
Features / Usability

Features / Usability


Add Feature on hosted Tiki

posts: 7

I'm hoping someone can give me some advice on how to administer the following:

I've installed tiki on a hosted server. I was able to follow the directions provided in the installation guide for hosted applications on this site, and things are working fine so far (thanks for the documentation!).

Yesterday, I added the "blog" feature. I'm getting tons of errors when I try to use the Blog functionality. Apparantly, the blog feature creates a whole bunch of directories within the templates_c directory. Up to now, I've been using my ftp application to change the permissions on directories (chmod to 777) manually, as I can't run the setup.sh (no command line access).

I could go through all the directories that have been created and manually update the settings, but I feel that this highlights a bigger issue with my site — is there a way to make new directories default to a different permission list? Is there something I can do through Cpanel or my ftp client to make this feature, and future features that are added, work on my site?

Any thoughts or suggestions would be greatly appreciated.

Thanks

posts: 10

> I'm hoping someone can give me some advice on how to administer the following:
>
> I've installed tiki on a hosted server. I was able to follow the directions provided in the installation guide for hosted applications on this site, and things are working fine so far (thanks for the documentation!).
>
> Yesterday, I added the "blog" feature. I'm getting tons of errors when I try to use the Blog functionality. Apparantly, the blog feature creates a whole bunch of directories within the templates_c directory. Up to now, I've been using my ftp application to change the permissions on directories (chmod to 777) manually, as I can't run the setup.sh (no command line access).
>
> I could go through all the directories that have been created and manually update the settings, but I feel that this highlights a bigger issue with my site — is there a way to make new directories default to a different permission list? Is there something I can do through Cpanel or my ftp client to make this feature, and future features that are added, work on my site?
>
> Any thoughts or suggestions would be greatly appreciated.
>
> Thanks
>


posts: 10

> I'm hoping someone can give me some advice on how to administer the following:
>
> I've installed tiki on a hosted server. I was able to follow the directions provided in the installation guide for hosted applications on this site, and things are working fine so far (thanks for the documentation!).
>
> Yesterday, I added the "blog" feature. I'm getting tons of errors when I try to use the Blog functionality. Apparantly, the blog feature creates a whole bunch of directories within the templates_c directory. Up to now, I've been using my ftp application to change the permissions on directories (chmod to 777) manually, as I can't run the setup.sh (no command line access).
>
> I could go through all the directories that have been created and manually update the settings, but I feel that this highlights a bigger issue with my site — is there a way to make new directories default to a different permission list? Is there something I can do through Cpanel or my ftp client to make this feature, and future features that are added, work on my site?
>
> Any thoughts or suggestions would be greatly appreciated.
>
> Thanks
>

This has nothing to do with your problem — but you don't want to get into the habit of using 777 it essentially makes your users administrators. Use 766. Are you using Siteground? So far my experience has been that when you add features the permissions get set properly; you just can't get the functions to work through the admin interface you get.

posts: 7

..." This has nothing to do with your problem — but you don't want to get into the habit of using 777 it essentially makes your users administrators. Use 766.
"

Thank you for the suggestion. I will make sure to use this permission setting going forward.
The problem that I have with the blog feature is that it creates folders automatically in the templates_c directory. Is there a way that I can set the system so that new sub-directories in this directory are automatically created with the 766 permission?

Thanks


posts: 4656 Japan

It's normal for directories and subdirectories to be created in the templates_c directory; these are cached page files. Looking at the ones on one of my sites, they are created and given a 751 chmod by Tiki. Needless to say, if it seems necessary to change permissions on them manually, there's something wrong with your Tiki installation. Normally, there is no need to do anything special with these directories; normally they just work. What exactly is the error message that you are getting?

-- Gary - zukakakina.com


posts: 7

In response to chibaguy:

First, some more background:
1) I am able to create a blog. I am also able to create a blog entry (post).
2) when i log in as a user, and click on a blog to view, i get a blank (no error) page.
3) when i log in as admin and try to view the blog, I get the error message included below.
View Blog = clicking on the title of the blog to see the entries.
4) I guessed that it might have to do with directory permissions because there was a problem creating a directory.
Thanks for your help.

error message:
Warning: Smarty error: problem creating directory '/usr/local/pem/vhosts/12563/webspace/httpdocs/tiki/templates_c/en/%%D9/D99' in /usr/local/pem/vhosts/12563/webspace/httpdocs/tiki/lib/smarty/libs/Smarty.class.php on line 1088 Warning: Smarty error: problem writing temporary file 'templates_c//en/%%D9/D99/wrt44c5326c16428' in /usr/local/pem/vhosts/12563/webspace/httpdocs/tiki/lib/smarty/libs/Smarty.class.php on line 1088 Warning: _smarty_include(templates_c//en/%%D9/D99/D991A798%%tiki-view_blog.tpl.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/12563/webspace/httpdocs/tiki/lib/smarty/libs/Smarty.class.php on line 1861 Warning: _smarty_include(): Failed opening 'templates_c//en/%%D9/D99/D991A798%%tiki-view_blog.tpl.php' for inclusion (include_path='lib/pear:lib/adodb:lib/pear:lib:.:/php/includes') in /usr/local/pem/vhosts/12563/webspace/httpdocs/tiki/lib/smarty/libs/Smarty.class.php on line 1861



posts: 7

Additional information:
I don't think I mentioned this before, but I can't run the setup.sh. At least, I don't know how to run setup.sh in a hosted environment.

I believe this is one of the steps when turning on the blog feature?


posts: 7

Thank you for the suggestion. I did look at the install with ftp access only. In those directions, one is supposed to manually change the permissions for a list of folders, using file manager, which I did.
I don't have a problem with any of the previously existing directories - the problem is with the "new" directories that seem to be dynamically generated by the blog application.

I also looked at the troubleshooting site linked to the installation directions. It suggests looking at the smarty.class.php and finding:
var $use_sub_dirs = true;

and changing it to:

var $use_sub_dirs = false;

I looked at my smarty.class.php, and this variable is already set to false. Any other ideas?
thanks for all your help already.

posts: 7

Just a follow up on my issue:

I went into the /webspace/httpdocs/tiki/templates_c/en/%%D9/
directory through my ftp application (filezilla) and changed the permissions to 766, just to see what would happen.

-I still got the same error message.

I then changed the permissions to 777 for the same directory, and my blog now appears on the screen on my web-site (works fine).

It would seem to me that I need some way of defaulting, or setting new directories to a specific permission to get the site to work - I just don't know how to make that happen.

Basically, I think my problem is that the blog feature creates directories automatically, and the current site configuration sets the permissions such that the blog feature can't write to them.

any thoughts? Ever heard of this problem before?


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting