GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Mar-2005, 18:49
DReaMer66 DReaMer66 is offline
New Member
 
Join Date: Mar 2005
Posts: 3
DReaMer66 is on a distinguished road
Question

CGI write to file problem


Hello all,

Great looking board ya have here!

I have a problem with a cgi script not being allowed to create/write to a txt file.

The Scenario:
  • A Linux/Apache server with SeLinux disabled (temporarily)
  • A cgi script that creates a new txt file containing info submitted by a visitor (ipaddy_data.txt)

When I load the cgi in my browser, I get an "Internal Server Error" (otherwise I wouldn't be here. ). Looking at my error log tells me "Permission denied at line 13". This is where the script is supposed to create the file. (my $logpath = "data/$remote-addr_data.txt"; ). If I "rem" out everything to do with creating that file, it works great. No errors.

What have I done to try to fix this?

I have chowned all folders to root:root (cgi wouldn't work at all any other way I tried). I have chmoded all existing files to 777. And I have disabled SeLinux.

Now, what in the world am I not seeing here?

Any help with this is greatly appreciated. Also, if any more info is required, please ask.
  #2  
Old 16-Mar-2005, 20:23
DReaMer66 DReaMer66 is offline
New Member
 
Join Date: Mar 2005
Posts: 3
DReaMer66 is on a distinguished road
Nevermind. Had a dumba$$ attack. Delete this thread if ya want
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD Burner Help - Power Calibration Error.... JonBoy420 Computer Hardware Forum 111 19-Feb-2009 04:54
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 08:44
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 11:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 12:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:14.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.