Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cgi Scripts Not Working But Pl Scripts are ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Morning , The advice Kiehlster & RhythmAce gave was correct and worked great , But For some reason Only the Pl Scripts work , when I try a Cgi Script in the same folder it does not work , Only Pl Scripts work in it ???
Any Thought's on this problem are Appreciated ?
Heres what i'm using to get any to work in these subfolder's . Is something Missing , In my Reg Cgi-bin both work fine ...

<Directory &quot;/path/to/folder&quot;>
Options Indexes MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>

And Add Handler too .

P.S. Thanks guys , I would not have gotten this far without your help !
 
I think this is a Windows thing. It likes to see the .pl extension. There is no problem renaming *.cgi to *.pl and a lot of scripts suggest this if running on a Windows server.
 
Sorry - my bad. I didn't see that it was working in your regular cgi-bin. When you use the ScriptAlias directive it told apache that everything in that dir should be treated as a script. The AddHandler directive should do the same thing but is based on the extention rather than the dir. I left out an important part in an earlier post. It should read:

AddHandler cgi-script .cgi .pl

Sorry - this will NEVER happen again. :eek:)
 
Hello , You didnt leave it out , AddHandler cgi-script .cgi .pl
It was there really , i did uncomment it though , was i supposed to add it some where else too ?
Still cant get cgi to work but Pl does , or is there anything missing from :
Options Indexes MultiViews ExecCGI ?
Thanks for responding so soon !


 
Did you restart apache after you made the changes? Try a plus sign in front of ExecCGI like this: +ExecCGI. The AddHandler should be fine where it is, as long as it is uncommented. :eek:) The only difference in the 2 directories is that cgi-bin is a ScriptAliased directory. If all else fails. You can rename the files with the .pl extention or see if apache will let you ScriptAlias a second dir. I bet I get smacked around for suggesting that. :eek:)
 
:( Didnt Work , Starting to get a little worried now lol ,
Is there anything else you could suggest ?
You Mentioned ScriptAlias a second dir , How do I go about that ?
Thanks as Always !!!
 
:>) Yeah , I got it all to work , probally around the time you were checking it out , then i messed everything up install php lol ...
 
I guess I'll be pestering you guys about apache php next :)
Hope you dont mind to much /.
Thanks all who helped me getting cgi and pl to work !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top