31special
Not too much to say...
Offline
Posts: 6
|
 |
« on: October 17, 2008, 03:54:09 PM » |
|
According to the installation instructions I need to chmod the following folder to 777
# CHMOD /config. php to 777 # CHMOD /icons/ to 777 # CHMOD /compile/ to 777 # CHMOD /cache/ to 777
On the cache directory, do I have to chmod -R so the subdirectories also have 777 permissions? Is this a security risk?
Thanks in advanced.
|
|
|
|
|
Logged
|
|
|
|
|
Monty
|
 |
« Reply #1 on: October 17, 2008, 06:20:07 PM » |
|
These folders and file need to have permissions set to 777 for installation and running purposes. Once installation is complete, you will be prompted to return certain permissions to 644. You do not alter the permissions of subdirectories. Installation does not ask you to do this.
|
|
|
|
|
Logged
|
back up.. Back Up.. BACK UP!
|
|
|
31special
Not too much to say...
Offline
Posts: 6
|
 |
« Reply #2 on: October 17, 2008, 07:15:34 PM » |
|
I had to change the permissions inside the directories of the cache folder because I was getting an fopen warning. The program was not able to write to the folders inside the cache folder.
These are the permissions I have in order to not get that fopen warning message:
drwxrwxrwx 21 myusername latpro 4. 0K Oct 17 10:49 cache
drwxrwxrwx 2 myusername latpro 20K Oct 17 11:41 hcl_activity drwxrwxrwx 2 myusername latpro 4. 0K Oct 15 12:33 hcl_assigns drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:30 hcl_canned drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:30 hcl_chat drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 12:37 hcl_cobrowse drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:30 hcl_coforms drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:30 hcl_comarker drwxrwxrwx 2 myusername latpro 4. 0K Oct 15 16:35 hcl_departments drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:29 hcl_files drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 12:38 hcl_footprints drwxrwxrwx 2 myusername latpro 4. 0K Oct 14 10:50 hcl_hotpages drwxrwxrwx 2 myusername latpro 4. 0K Oct 14 13:17 hcl_notes drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:48 hcl_operators drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:35 hcl_polling drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 12:37 hcl_sessions drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 12:37 hcl_stats_visitors drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 12:39 hcl_system drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 13:56 hcl_traffic drwxrwxrwx 2 myusername latpro 4. 0K Oct 17 11:30 hcl_transcripts -rw-r--r-- 1 myusername latpro 41 Aug 27 2007 . htaccess -rwxrwxrwx 1 myusername latpro 1. 4K Jun 29 23:00 index. php
|
|
|
|
|
Logged
|
|
|
|
|
Monty
|
 |
« Reply #3 on: October 17, 2008, 08:59:05 PM » |
|
The only files that should be in the cache folder are .htaccess and index.php with a fresh install. Can I ask which version of HCL you are using?
|
|
|
|
|
Logged
|
back up.. Back Up.. BACK UP!
|
|
|
31special
Not too much to say...
Offline
Posts: 6
|
 |
« Reply #4 on: October 17, 2008, 09:19:43 PM » |
|
I'm using Help Center Live v 2. 1. 7
What is generating those other subfolders? The sub folder named hcl_chat has file named 18acb4e5d43492eb3ecb77e7f1d9d110. dbc
Belos is the content of this file.
[root@myserver hcl_chat]# more 18acb4e5d43492eb3ecb77e7f1d9d110. dbc b:0;
|
|
|
|
« Last Edit: October 17, 2008, 09:22:51 PM by 31special »
|
Logged
|
|
|
|
|
Monty
|
 |
« Reply #5 on: October 17, 2008, 09:45:39 PM » |
|
The database is creating the session files and placing them in the cache folder until it dumps the information after a specified time. I've never needed to alter any other permissions within the cache folder, only the cache folder itself. I can't understand why you're required to do so. Can I ask who is hosting this and can you give me server information? This just doesn't seem right.
|
|
|
|
|
Logged
|
back up.. Back Up.. BACK UP!
|
|
|
31special
Not too much to say...
Offline
Posts: 6
|
 |
« Reply #6 on: October 17, 2008, 11:15:49 PM » |
|
I'm hosting the site on my decidated server but I cannot provide my server info.
Can you provide me with a structure on the file permissions should look like on the cache folder?
These messages disapeared as soon as I changed the perms to 777 on the cache subfolders.
These are the warning messages I'm getting:
Warning: fopen(/sites/myserver/www/hcl/class/. . /cache/hcl_canned/1949c1ed865cb7fdd76e509fa9a3cdd4. dbc) [function. fopen]: failed to open stream: Permission denied in /sites/myserver/www/hcl/class/database. php on line 319
Warning: fopen(/sites/myserver/www/hcl/class/. . /cache/hcl_canned/9bebe6f7fb13e65566e592512241e96d. dbc) [function. fopen]: failed to open stream: Permission denied in /sites/myserver/www/hcl/class/database. php on line 319
|
|
|
|
|
Logged
|
|
|
|
|
Monty
|
 |
« Reply #7 on: October 18, 2008, 01:43:54 AM » |
|
For sessions to be stored in the cache folder, permissions need to be set to 777. The cache folder should only have 2 files in it after a fresh install. These are .htaccess and index.php which should both have permissions of 644.
|
|
|
|
|
Logged
|
back up.. Back Up.. BACK UP!
|
|
|
31special
Not too much to say...
Offline
Posts: 6
|
 |
« Reply #8 on: October 20, 2008, 04:12:06 PM » |
|
So the subfolders under cache should also have 777 permissions?
|
|
|
|
|
Logged
|
|
|
|
|
Monty
|
 |
« Reply #9 on: October 20, 2008, 04:22:20 PM » |
|
The cache folder should NOT have any subfolders!
|
|
|
|
|
Logged
|
back up.. Back Up.. BACK UP!
|
|
|
|