Hi
My workplace uses a 1&1 hosting account but I use HostLogical and I am having problems with file permissions. I have taken a simple perl script which runs at work on 1&1 and have recreated the same structure and filenames on my HostLogical site. I have no problem running a script until it tries to open a text file for writing.
open(OUTPUT,">> ../storeage/mydocument.txt") or die $1;
Although I have set the permissions 755 for the perl script (in the cgi-bin directory and set 666 or 777 for the text file I still get either
fopen: Permission denied
or more recently
(13)Permission denied: .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
errors created in my log file. I don't really know what they mean. I have read some similar posts for permissions and can't find the .conf files which some of the responses refer to.
What do I need to do to ensure the correct permissions are set in the directories I need them?
If I need to edit .conf files, where do I find them...do I need to create them first...and can I do all this through the DirectAdmin File Manager (which is where I've been playing with the permissions so far)?
Thanks is advance for helping me with this.
Tony
My workplace uses a 1&1 hosting account but I use HostLogical and I am having problems with file permissions. I have taken a simple perl script which runs at work on 1&1 and have recreated the same structure and filenames on my HostLogical site. I have no problem running a script until it tries to open a text file for writing.
open(OUTPUT,">> ../storeage/mydocument.txt") or die $1;
Although I have set the permissions 755 for the perl script (in the cgi-bin directory and set 666 or 777 for the text file I still get either
fopen: Permission denied
or more recently
(13)Permission denied: .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
errors created in my log file. I don't really know what they mean. I have read some similar posts for permissions and can't find the .conf files which some of the responses refer to.
What do I need to do to ensure the correct permissions are set in the directories I need them?
If I need to edit .conf files, where do I find them...do I need to create them first...and can I do all this through the DirectAdmin File Manager (which is where I've been playing with the permissions so far)?
Thanks is advance for helping me with this.
Tony