CGI Problem ! - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html) +--- Forum: LAMP (https://www.linux-noob.com/forums/forum-83.html) +--- Thread: CGI Problem ! (/thread-2149.html) |
CGI Problem ! - Roach - 2006-02-17 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 :) CGI Problem ! - znx - 2006-02-17 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. CGI Problem ! - Roach - 2006-02-17 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. 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 :) CGI Problem ! - znx - 2006-02-18 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.. ? CGI Problem ! - Roach - 2006-02-18 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> 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 :) CGI Problem ! - znx - 2006-02-18 OK.. try adding in an entry for the cgi to make it handle the extension .cgi Code: # You already have this <Directory> entry.. all we are changing is the Options line... [edited] CGI Problem ! - znx - 2006-02-18 OMG ! ... we got it working! .. Was missing: Code: LoadModule cgi_module modules/mod_cgi.so haha woot :) CGI Problem ! - Roach - 2006-02-18 Quote:OMG ! ... we got it working! .. 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 ! :) |