|
|
|
|
Installing the Before & After script FAQ
The following questions have been answered:Getting a permission denied error |
Question: I have installed the script and went to it with my browser. When I do, I get the message "Warning: open(afaq/afdb/setup.txt) [function.fopen]: failed to open stream: Permission denied in /home/lifeboat/public_html/afaq/faqgen.php on line 27"
I would be grateful for any assistance. | Answer: This error means that the script does not have permissions to read from, or write to the data directory. Typically this is because the permissions of the data directory, or the files in it, have been changed. To fix it, just set the permissions for the HTML directory that the script created to 777 (check off everything), and set the permissions for the data directory (which is inside the HTML directory) and all files in it to 770 -- this is read/write/execute for owner and group, and nothing for public.
|
Where are the instructions? |
| Question: Where can I find the instructions or installing this script? | Answer: You can find the installation instructions in the readme.txt file included in the .zip file. Note that installation should be extremely simple, it's really just a matter of deciding where you want the script and uploading it there.
|
Problem with the script creating directories |
Question: Hi,
I called for the gbook.php and got the following error messages on my browser.
Warning: mkdir() [function.mkdir]: Permission denied in /home/[username removed]/public_html/dir/index.php on line 28
Warning: mkdir() [function.mkdir]: No such file or directory in /home/[username removed]/public_html/dir/index.php on line 28
Warning: fopen(anibook/data/settings.txt) [function.fopen]: failed to open stream: No such file or directory in /home/[username removed]/public_html/dir/index.php on line 28
Warning: file(anibook/data/head.txt) [function.file]: failed to open stream: No such file or directory in /home/[username removed]/public_html/dir/index.php on line 28
Warning: Invalid argument supplied for foreach() in /home/[username removed]/public_html/dir/index.php on line 28 I was unable to open the data file for writing.
| Answer: My scripts are designed to create the directories that they need to operate. In most situations, this will go off without a problem -- however, some servers may restrict the abilities of scripts to create directories which can cause a problem.
The first thing to do is to make sure that the directory that the script is in, as well as the script itself, have their permissions set to 755. This is read/write/execute for the owner, read and execute (but not write) for group and public.
If that fails to fix the problem, you may need to create the directories manually.
|
Ask a question |
|
|
|