[Home]Failed To Open Log File Fopen Permission Denied Error With Script

Contents | (Visit Preferences to set your user name.) | Related To Failed To Open Log File Fopen Permission Denied Error With Script | RecentChanges | Preferences | Index | Login | Logout

Featured: Featured Stories | Picture Gallery

Stretching FAQ 1.4 - Cooperating Muscle Groups | Effect Of Soil On Health
Google
Chat11.com Web Bible11.com MyBibleCenter.com
Search For Books About:
Computers, Garnet, Internet, Kwiki, More About This Book, MySQL, Tech Tips, Web, Wiki, WikiSoftware
Search The Net:
More About This Book
Garnet
Kwiki
Computers
Internet
Web
Wiki
Tech Tips
MySQL
WikiSoftware
Cover of ISBN 020171499XThe Wiki Way

More About This Book

Best MySQL books:
Cover of ISBN 1590591445The Definitive Guide to Mysql Second Edition
Cover of ISBN 0672326736Mysql 3rd Edition Developers Library
Cover of ISBN 0596001452Mysql Cookbook

Best Perl books:
Cover of ISBN 159059018XWriting Perl Modules for Cpan
Cover of ISBN 0596000278Programming Perl
Cover of ISBN 0596001320Learning Perl
Cover of ISBN 0596003137Perl Cookbook

From Troubleshooting Module Dependency And Installation Problems In Perl CPAN When Installing Kwiki

Questions: Can't Get a Kwiki Script To Run After Install

Subjects > Computers > Internet > Web > Wiki > WikiSoftware > Kwiki
See also Tech Tips ...

Question: The kwiki install doesn't seem to deal with rights. I finally got all the modules installed, but when I point my browser at the kwiki's index.cgi, I get

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

I looked in my apache error log and I found

 failed to open log file 
 fopen: Permission denied 
 [Wed Aug 31 03:31:44 2005] error [client 210.195.78.19] 
   Premature end of script headers: 
   /home/virtual/site98/fst/var/www/cgi-bin/kwiki/index.cgi 

Does anyone have an idea where this log is trying to be created? I looked through the kwiki modules and couldn't find any error messages regarding a log file.


Answer by Garnet

Usually "fopen: permission denied" indicates that the #! line at the start of a script is not setup properly. Be sure to check that is the actual path to perl.

From the /home/virtual/site98/fst it looks like you are running on an ensim control panel based machine.

Note that on Linux system with control panels and virtual file roots like Ensim each domain account gets it's own virtual file system. That is what the fst in the above path means. When things are happening within the account, like running scripts via perl interpreter, the script only see the file system below the fst. (Note that mod_perl run scripts get access to the entire machine.)

It's possible that the perl available to the root user is not the same as the perl available to the domain users. For example, /usr/bin/perl might be the perl in all the chroot'd domains, but the main root user might have /usr/local/bin/perl set as their default perl. If /usr/local/bin/perl is not explicitly linked into the file system of a domain account, that won't be available from scripts running from a particular domain account.

Also, on systems that have multiple perls installed, when installing Kwiki and it's modules be sure to run the perl that will be used with scripts served by the web server.

Finally, one of the lower level dependencies of Kwiki is Encode.pm, and that is not available on Perls before 5.7.2, so it will not be possible to get Kwiki to run on the default perl on older control paneled web hosts.



See more of Garnet's Tech Tips ...

Did This Solve Your Problem?

Tech Tips By Garnet ...

If so, I'd like to hear from you.

I spend a lot of time tracking down solutions to many problems and questions, and it takes a lot of time to write about the answers so you can benefit from them. But I hope this page helped you solve your problem, or answered your question, clearly and quickly. If you'd like to support my making more tech tips, please donate a couple of bucks via paypal! For any size donation, I'll send you an Internet Guide on the topic of your choice to include on your website. See [Guides To The Internet] for some examples.

Please also consider making a link to this page from your website.

You can also reach me privately with your questions at [my contact page]!

- Garnet

From Tech Tips

From Kwiki

Search for books about:

Computers, Garnet, Internet, Kwiki, More About This Book, MySQL, Tech Tips, Web, Wiki, WikiSoftware

Search The Net:
More About This Book
Garnet
Kwiki
Computers
Internet
Web
Wiki
Tech Tips
MySQL
WikiSoftware

Contents | (Visit Preferences to set your user name.) | Related To Failed To Open Log File Fopen Permission Denied Error With Script | RecentChanges | Preferences | Index | Login | Logout
Edit this www.chat11.com page | View other versions
Last edited April 8, 2007 3:16 am (diff)
Search:
Sign up for PayPal and start accepting credit card payments
instantly.
Bobsgear - Get A Free Enterrpise Wiki Space!
Review: The Bobsgear Project was started to develop a variety of Confluence plugins. This installation of the Confluence Enterprise wiki includes flexible attachments, many Confluence plugins, personal blogs, interesting articles, and more. Bobsgear already has spaces related to politics, art and photography wiki, technical issues wiki, ediscovery wiki, health, Christian theology and Sabbath School wiki, the bible, book reviews, and quotations. Bobsgear allows free signup, and invites anyone to create a free hosted Confluence wiki space.


NEW USERS CLICK HERE! for a quick introduction to Wiki.

 

 Interested in Illegals Arrested While Harvesting Cicadas For Export?
2011 total hits since 9/2007
Recently accessed pages: Advertising Billion Dollar Spam Award In December 2004 Business Quotation Calendar/BottomAd5 Chicken Dumplings Google Adwords Aliens Government Quotes How To Get To Paypal Telephone Number And Get A Real Human

Elapsed:0