Help - Search - Members - Calendar
Full Version: how to place images within cgi-bin
The Planet Forums > Control Panels > Plesk
ukagg
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
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
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
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
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
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
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.
Invision Power Board © 2001-2009 Invision Power Services, Inc.