Hi<br /><br />I'm trying to fix an annoying little problem.<br /><br />I've installed a simple little script into a folder called mcount that resides within my cgi-bin. The script is a page counter. It can tally multiple pages in a site. It does this by creating a file for each page that is keeping a talley for. So it needs to be able to create and write files in the mcount folder.<br /><br />The instructions state that I need to chmod that the mcount folder to 777. Which I have done. I also chmod the script itself to 755. I used the control panel to do this. And it all looks good.<br /><br />I've checked and double-checked and triple-checked (you get the idea) <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid="" border="0" alt="wink.gif" /> the paths.<br /><br />I'm not getting any server error message on the page, so it seems like it is going to the script and trying to execute it. The problem seems to arise when the script itself tries to create and modify files in the mcount folder. Quite frankly, it won't!<br /><br />I went to my errors log in my control panel and got the following error message:<br /><br />[2003-04-05 20:08:45]: error: directory is writable by others:<br /><br />Hmmm. Why is this an error? I chmoded it so that it could be written by others!<br /><br />I've tried other scripts and the ones that work do not need to create files. <br />I have another counter that modifies a preexisting file and that works.<br /><br />I have another script that is a form that creates and modifies a few simples text files. That does not work.<br /><br />I hope that I'm just doing something wrong. (It's <b>highly</b> possible!). I hope it's not becase of some restriction.<br /><br />Thanks for any help!<!--content-->
Hi,<br /><br />Try making the folder so its not writable by others<br /><br />Jim<!--content-->
Thanks for responding Jim.<br /><br />I appreciate it.<br /><br />I did a chmod on the folder to 775. No difference. Then I did a chmod to 707. Still no difference. I then did a chmod on the folder to 755 and now the script is returning the following error:<br /><br />[MC Error: Error locking file]<br /><br />Finally, just so I could say that I tried I then did a chmod to 770 which gave me the following error:<br /><br />[an error occurred while processing this directive] <br /><br />It's not looking too good. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /> <br /><br />I hope customer service here will be able to help me with this problem. I have already sent in a job ticket on this issue, albeit a different script. If it turns out that I can not get scripts like these to run, I'm afraid I'll have to take my business elsewhere.<!--content-->
Well,<br /><br />I talked to tech support. Seems I can't chmod a folder in the cgi bin to 777. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/ohmy.gif" style="vertical-align:middle" emoid="" border="0" alt="ohmy.gif" /> Luckily they did help me out with my form script and it is now working. I still can't get the counter to work. But as long as I can get my form to work I'm happy! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid="" border="0" alt="biggrin.gif" /> <br /><br /><br />Thanks TCH.<!--content-->
Hi,<br /><br />Try making the folder so its not writable by others<br /><br />Jim<!--content-->
Thanks for responding Jim.<br /><br />I appreciate it.<br /><br />I did a chmod on the folder to 775. No difference. Then I did a chmod to 707. Still no difference. I then did a chmod on the folder to 755 and now the script is returning the following error:<br /><br />[MC Error: Error locking file]<br /><br />Finally, just so I could say that I tried I then did a chmod to 770 which gave me the following error:<br /><br />[an error occurred while processing this directive] <br /><br />It's not looking too good. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /> <br /><br />I hope customer service here will be able to help me with this problem. I have already sent in a job ticket on this issue, albeit a different script. If it turns out that I can not get scripts like these to run, I'm afraid I'll have to take my business elsewhere.<!--content-->
Well,<br /><br />I talked to tech support. Seems I can't chmod a folder in the cgi bin to 777. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/ohmy.gif" style="vertical-align:middle" emoid="" border="0" alt="ohmy.gif" /> Luckily they did help me out with my form script and it is now working. I still can't get the counter to work. But as long as I can get my form to work I'm happy! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid="" border="0" alt="biggrin.gif" /> <br /><br /><br />Thanks TCH.<!--content-->