LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-10-2007, 09:55 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
cgi-bin: "enable to create directory"


Hi!
Iīm trying to install wikiCalc This programm is written in perl and doesnīt need any DB. I installed the archive in cgi-bin as it said in the howto, and called the setup file via my browser. The whole configuration is supposed to be done on line. when I run the setup file, I get messages like
Quote:
Unable to create file ./wkcdata/hostinfo.txt
or
Quote:
Unable to create Directory ./wkcdata/sites
I checked the permissions and everything seems all right:
in httpd.conf user and group are apache;
in cgi-bin (inclusive cgi-bin) all files and directories have apache as owner and group;
everything is set up with chmod 755;
and even when I do chmod -R 777 I still get the same error messages.
in htppd.conf I have the default configuration:
Quote:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
I donīt understand what is wrong. This wikiCalc doesnī t need anything: you just have to extract the files and run the set-up through you browser.

I tried it on another server that seems to have the exact same configuration, and it worked! I compared permissions, httpd.conf, everything seems to be the same! I canī t find the difference, but it must have one!
Any advice?
P.S. and of course I have perl installed
Quote:
perl -v

This is perl, v5.8.8 built for i386-linux-thread-multi

Last edited by xpucto; 04-10-2007 at 10:12 AM.
 
Old 04-12-2007, 07:55 AM   #2
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
I looked in access_log but what I found doesnīt help me much (111.111.11.11 is my IP):
Quote:
111.111.11.11 - - [12/Apr/2007:14:52:30 +0200] "POST /cgi-bin/wikicalc/wikicalccgi.pl HTTP/1.1" 200 12180 "http://myserver.com/cgi-bin/wikicalc/wikicalccgi.pl" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7"
111.111.11.11 - - [12/Apr/2007:14:52:31 +0200] "GET /favicon.ico HTTP/1.1" 404 303 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7"
111.111.11.11 - - [12/Apr/2007:14:52:33 +0200] "POST /cgi-bin/wikicalc/wikicalccgi.pl HTTP/1.1" 200 12522 "http://myserver.com/cgi-bin/wikicalc/wikicalccgi.pl" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7"
111.111.11.11 - - [12/Apr/2007:14:52:33 +0200] "GET /favicon.ico HTTP/1.1" 404 303 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7"
does anyone understand where the problem is? Iīm stuck with this problem since 3 days and itīs driving me nuts!
 
Old 05-07-2007, 06:32 AM   #3
stormfire
LQ Newbie
 
Registered: May 2007
Posts: 9

Rep: Reputation: 0
I had a very problem like that as well, look in the apache logs to see what the error is, mine was with a blog, when I looked in the log I found permission denied, I looked on the online site and compared the directorys there, after all that my problem was the dir that it was writing to had to be set to chmod 777, then it worked,
The other server you tried may have been a windows machine,
 
Old 05-16-2007, 09:09 AM   #4
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by stormfire
I had a very problem like that as well, look in the apache logs to see what the error is, mine was with a blog, when I looked in the log I found permission denied, I looked on the online site and compared the directorys there, after all that my problem was the dir that it was writing to had to be set to chmod 777, then it worked,
The other server you tried may have been a windows machine,
I have made a
Quote:
sudo chmod -R ga+rwx
but it didn't change anything. both servers are linux machines, both are fedora.
 
  


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
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
totem/xine/rythmbox etc. "can't create mcop directory" a_vri Linux - Newbie 3 03-07-2007 02:17 PM
SimpleScalar: sslittle-na-sstrix/bin/ld: crt0.o: "no such file or directory" lydia.plath Linux - Software 0 03-18-2006 12:55 PM
cgi-bin: "attempt to invoke directory as script" hamish Linux - Software 0 12-09-2004 12:45 PM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration