LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2002, 03:47 PM   #1
morbo
Member
 
Registered: Dec 2001
Posts: 53

Rep: Reputation: 15
Permissions problems in APACHE/httpd HELP PLEASE!!!!!!!!


Hello all, here's a question from an EXTREME novice in apache/webserving, this is my 1st attempt at apache-so I'm sure I'm messing up somewhere.....
I'm trying to use Matt's textcounter perl script (a widely used perl program at http://www.worldwidemart.com/scripts) working on my Redhat 7.1 box using apache .1.3.22. Anyway, it basically has 2 configurations, the data dir (which needs to be chmod'd to 777 or 666). However, eventhough I chmod the data dir to 777 OR 666-I have to chmod the cgi-bin (my root script dir) to 777 in order to get the counter to work properly. Once the data file for the page is made in the 'data' dir-I can chmod the cgi-bin dir back to 755-and the counter still works...

Basically-I don't think I have my httpd.conf file right-because chmod'ding to 777 is EXTREMELY dangerous from what I understand. Any ideas? I can provide my <Directory> directives from httpd.conf if needed...

Thanks,
Jeff
 
Old 01-09-2002, 03:09 PM   #2
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
Anyone????????
 
Old 01-09-2002, 04:24 PM   #3
kodiakmook
Member
 
Registered: Nov 2001
Location: Ohio
Distribution: Redhat 7.3, Mandrake 8.1
Posts: 43

Rep: Reputation: 15
is your data dir inside your cgi-bin folder? if so, try putting it outside the cgi-bin folder and document root folder so it's not web accessible and you can easily make it writeable
 
Old 01-09-2002, 06:46 PM   #4
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
thank you, your solution did work, however......


I would like to know WHY this is happening, I'm new to Linux and I'm trying to teach myself everything I can, and I am just curious as to why this is happening. I have set this script up HUNDREDS (literally) of times, and have never had to put the 'data' dir outside of the 'cgi-bin'. The data dir is chmod'd to 777, or 666 but the actual 'cgi-bin' dir has to set to 777 for the script to make the data file in 'cgi-bin/data/data.file', and I am curious as to why. Thanks again for your response.

Jeff

Last edited by morbo; 01-09-2002 at 06:47 PM.
 
Old 01-09-2002, 08:58 PM   #5
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
After realizing it may be the SCRIPT-I found my solution, in the "$data_dir" variable, I had forgotten to put a trialing slash after '/path/to/data'. Once the slash was added-no problems!

Thanks for the help, but I'm the one who solved my own problem =p
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is httpd the same apache?!!!!! arsham Linux - Software 4 05-11-2005 04:34 AM
Help with Apache (httpd)! apoc013 Linux - Newbie 6 01-22-2004 06:30 PM
Apache httpd/RP114 router problems DummyBot Linux - Networking 2 01-20-2004 04:48 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM
Apache httpd c0c0deuz Linux - General 6 11-18-2002 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration