ukagg
Aug 6 2002, 05:35 AM
I see that, cgi-bin does not support image files. I mean, if I put any image in any directory within cgi-bin, then browser instaed of displaying it tries to execute the file like some script, and give error 500.
Any solution.. how can one put image files within cgi-bin?
Thanks
uka
Ronny
Aug 7 2002, 08:25 PM
You can't... just enabled cgi for httpdocs and put your cgi and images there. just make sur eyou don't make a cgi-bin inside httpdocs
ukagg
Aug 7 2002, 10:57 PM
QUOTE
Originally posted by Ronny
You can't... just enabled cgi for httpdocs and put your cgi and images there. just make sur eyou don't make a cgi-bin inside httpdocs
Thanks! can you guide me how to enable cgi for httpdocs for a user under Plesk?
Thanks
uka
DGS
Aug 14 2002, 02:47 AM
Someone give a walk thru? I know you have to comment out a line in the httpd.conf file but I can't find the httpd.conf file to edit it?
Where's it at? Thanks!
Rich2k
Aug 14 2002, 03:31 AM
Could I ask why you would possibly want to put images in CGI-BIN anyway, can't you just call them from your httpdocs directory from within the CGI script?
Squire
Aug 14 2002, 10:45 PM
SSH into your server (You are using SSH instead of Telnet, correct?)
su to root
pico into /usr/local/psa/apache/conf/httpd.conf
Look for a line which says: #AddHandler cgi-script .cgi
Remove the # so that it is uncommented
Crtl+X to save the file
type in /usr/local/psa/admin/sbin/my_apci_rst to restart apache
You're done. Now cgi script can be run from anywhere in either the httpdocs or httpsdocs directories
Squire
DGS
Aug 15 2002, 12:34 AM
Thanks so much!!! Yes I use SSH. This is exactly what I needed to know!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.