LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2006, 11:48 AM   #1
gladius7
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
CGI script cannot access NFS drive?


I'm moving a website from an old server running Fedora Core 2 and Apache 2.0 to a new server running Fedora Core 5 and Apache 2.2. The website uses a CGI script that accesses a file, /generic/logfile. /generic is an NFS drive, mounted from another computer.

The script has no trouble accessing the logfile on the old server, whether I run it independently or as CGI through a browser . Also, on the new server, the script works fine if I run it as an independent perl script. However, when I call it through a browser as a CGI script, it CANNOT access the file. It seems like a permissions problem, but the permissions are the same on both servers. Perhaps I need to edit my httpd.conf?

Any ideas? Thanks!
 
Old 07-14-2006, 11:52 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
it could be the new SE Linux, not sure though
 
Old 07-14-2006, 11:58 AM   #3
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Do you have SELinux enabled? If so, it is protecting you from yourself. Check your /var/log/messages for 'avc: denied' messages. If that's the cause, and you want to enable the functionality, then follow the directions in this thread.
 
  


Reply



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
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-11-2005 11:08 PM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
Access forbidden when trying to run cgi script allan_y Linux - Software 4 10-07-2004 07:02 AM
Apache - default *.pl or *.cgi scripts on NFS share pdhami Linux - Enterprise 0 05-17-2004 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 AM.

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