Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CGI Problem !
#1

Hi guys,

 

Ive already asked around on mirc but no1 could answer my question.

 

Now for my problem :)

 

Im running on a fedora core 3. with apache/php etc installed.

 

Now i installed CGIIRC a week ago and could launch it without any problems.

 

But 2/3 days ago i rebooted my pc and now it stopped working.. all i get is some txt from the cgi, the permissions are all on 755.

 

[/url][url=http://keffie.mine.nu/cgi-bin/cgiirc/irc.cgi]http://keffie.mine.nu/cgi-bin/cgiirc/irc.cgi

 

Any idea's ? i hope so cause im all out of mine.

 

Thanks in advance :)

Reply
#2

The "text" that you are seeing is the perl source that runs CGI:IRC. This means that your web server isn't running the code, instead it is just serving the pages.

 

All the files in the "cgi-bin" folder should be recongized as scripts. Look for "ScriptAlias" in your apache config and see if its set for your cgi-bin directory.

 

Also you might want to ensure that CGI is enabled on the server.

Reply
#3

Quote:The "text" that you are seeing is the perl source that runs CGI:IRC. This means that your web server isn't running the code, instead it is just serving the pages. 

All the files in the "cgi-bin" folder should be recongized as scripts. Look for "ScriptAlias" in your apache config and see if its set for your cgi-bin directory.

 

Also you might want to ensure that CGI is enabled on the server.
 

 

Scriptalias is pointed to my cgi-bin folder and its enabled, i can post my httpd.conf here if you got some time to take a look at it.. i seriously think theres nothing wrong with it but im a noob so i cant be really sure.

 

Thanks for your reaction :)i really apriciate it :)

Reply
#4

Quote:Scriptalias is pointed to my cgi-bin folder and its enabled, i can post my httpd.conf here if you got some time to take a look at it.. i seriously think theres nothing wrong with it but im a noob so i cant be really sure.
 

Ok, that is strange as when ScriptAlias is set correctly it should think everything in the directory is a script to be executed.

 

You can attach it as a file (click on the "Add Reply" then goto "File Attachments" and then click to add the post and you will get something like [ attachment = number ]).

 

Also check that you don't have any /cgi-bin/.htaccess screwing around with the settings.. ?

Reply
#5

Quote:<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentcommentid="7532" data-ipsquote-username="Roach" data-cite="Roach" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="2097" data-ipsquote-contentclass="forums_Topic"><div>Scriptalias is pointed to my cgi-bin folder and its enabled, i can post my httpd.conf here if you got some time to take a look at it.. i seriously think theres nothing wrong with it but im a noob so i cant be really sure.
 

Ok, that is strange as when ScriptAlias is set correctly it should think everything in the directory is a script to be executed.

 

You can attach it as a file (click on the "Add Reply" then goto "File Attachments" and then click to add the post and you will get something like [ attachment = number ]).

 

Also check that you don't have any /cgi-bin/.htaccess screwing around with the settings.. ?



</div></blockquote>
 

there aint no .htaccess in cgi-bin ..

 

there is 1 in cgi-bin/cgiirc/.htaccess



Code:
<files cgiirc.config>
<limit GET POST>
  allow from all
  </limit>
</files>

Directoryindex irc.cgi




 

and theres 1 in cgi-bin/cgiirc/modules/.htaccess

 



Code:
allow from all




 

my httpd.conf : [/url][url=http://keffie.mine.nu/httpd.conf]http://keffie.mine.nu/httpd.conf

 

theres also a httpd.conf~ in that dir.. should i delete that or ?

 

i installed everything (apache, php, mysql) into /usr/local/eflicta/

 

 

Its strange that it all worked, but when i rebooted it didnt anymore.

 

Btw, Really cool that your trying to help me out :)

Reply
#6

OK.. try adding in an entry for the cgi to make it handle the extension .cgi

 



Code:
#
# cgi-bin
#
<Directory "/usr/local/eflicta/apache/cgi-bin">
Options +ExecCGI
    SetHandler cgi-script
AllowOverride None
Order allow,deny
Allow from all
</Directory>




 

You already have this <Directory> entry.. all we are changing is the Options line...

 

[edited]

Reply
#7

OMG ! ... we got it working! ..

 

Was missing:



Code:
LoadModule cgi_module modules/mod_cgi.so




 

haha woot :)

Reply
#8

Quote:OMG ! ... we got it working! ..  

Was missing:



Code:
LoadModule cgi_module modules/mod_cgi.so

<div>


 

haha woot :)

</div>
 

 

Kinda strange tough that a reboot takes a command like that out :S

 

Thanks a million !

 

znx helped me out with 3 Problems so far ! :) he tah man ! :)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)