Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-10-2003, 10:19 PM   #1
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
Running CGI files outside of CGI-BIN?

Any special settings needed for this? Never had a problem before... now everything is a fucking Internal Server Error!
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:20 PM   #2
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Your apache config files have to be setup properly for this to work ...

JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:22 PM   #3
liquidmoe
Confirmed User
 
Join Date: Mar 2002
Location: NY
Posts: 4,994
Unless you have a directory diretive set for an upper level directory to do Options [+]ExecCGI you will need to set it for the specific directory in which you have the cgi files. You can also set it in your .htaccess file if you have it enabled for that directory.
liquidmoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:22 PM   #4
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
I FUCKING HATE PERL!
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:22 PM   #5
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Quote:
Originally posted by p00p
Add this to your VirtualHost in httpd.conf

<Directory /path/to/yourhomepage>
Options +ExecCGI
</Directory>


Should work.
Your assuming his apache config files are setup to allow override directives.

JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:26 PM   #6
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
[VirtualHost xxx.xxx.xxx.xxx]
ServerName www.yourdomain.com
ServerAdmin [email protected]
ServerAlias yourdomain.com
DocumentRoot /path/to/yourdomain/web
AddType text/x-server-parsed-html .html
[Directory /path/to/yourdomain]
Options +ExecCGI
[/Directory]
[/VirtualHost]


Change "[" and "]" to the proper brackets, which can't be posted on this board. < >
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:27 PM   #7
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by JFPdude


Your assuming his apache config files are setup to allow override directives.

They are.
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:40 PM   #8
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
FUCK... I put the fucker in the fucking CGI fucking bin like it fucking wants to be... run the fucking init fine... but then the fucking setup and every fuckingthing else is fucking 500... I've never fucking had so many fucking problems in the 10 fucking years I've been fucking doing this!

Does anyone know where the errorlog is stored?
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:41 PM   #9
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by GFED
FUCK... I put the fucker in the fucking CGI fucking bin like it fucking wants to be... run the fucking init fine... but then the fucking setup and every fuckingthing else is fucking 500... I've never fucking had so many fucking problems in the 10 fucking years I've been fucking doing this!

Does anyone know where the errorlog is stored?
On a linux box,
pico /etc/httpd/logs/error_log
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:42 PM   #10
Smegma
Confirmed User
 
Join Date: Feb 2002
Posts: 1,751
add this line to your vhost directive.

ScriptAlias /cgi-bin /usr/home/blah.com/cgi-bin

you can make the dir what ever you want.
__________________
<a href="http://www.jupiterhosting.com"><img src="http://www.jupiterhosting.com/banners/55x55.jupiter.gif" alt="" border="0" align=""></a>
Smegma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:45 PM   #11
Smegma
Confirmed User
 
Join Date: Feb 2002
Posts: 1,751
Should look something like this.

Code:
<VirtualHost X.X.X.X:80>
ServerAdmin [email protected]
DocumentRoot /usr/home/blah.com
ServerAlias blah.com *.blah.com
ServerName www.blah.com
ScriptAlias /cgi-bin/ /usr/home/blah.com/cgi-bin/
ErrorDocument 401 /401.html
ErrorDocument 402  /401.html
ErrorDocument 403  /401.html
ErrorDocument 404  /401.html
</VirtualHost>
__________________
<a href="http://www.jupiterhosting.com"><img src="http://www.jupiterhosting.com/banners/55x55.jupiter.gif" alt="" border="0" align=""></a>
Smegma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:46 PM   #12
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
Quote:
Originally posted by p00p

On a linux box,
pico /etc/httpd/logs/error_log

FUUUUUCK... its' 400MB and just crashes my shit when I try to view it...
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:47 PM   #13
Smegma
Confirmed User
 
Join Date: Feb 2002
Posts: 1,751
type

tail -f /etc/httpd/logs/error_log

to see it in realtime

type

tail -1000 /etc/httpd/logs/error_log | more

to see the last most recent 1000 lines of the error log
__________________
<a href="http://www.jupiterhosting.com"><img src="http://www.jupiterhosting.com/banners/55x55.jupiter.gif" alt="" border="0" align=""></a>
Smegma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:50 PM   #14
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by GFED



FUUUUUCK... its' 400MB and just crashes my shit when I try to view it...
Oh my...hahah...try vi, then. I don't use it so you will have to search for commands.


Or, delete error_log and restart apache and you will get an error log that is fresh

rm -Rf /etc/httpd/logs/error_log

then

apachectl graceful

Your error_log should be cleared, and apache restarted gracefully

Just did it on one of my servers and it worked fine.

Then pico /etc/httpd/logs/error_log

Nice clear log!
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 10:54 PM   #15
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
oki, THANKS FOR YOUR HELP EVERYONE! I'm going to go bang my fucking head against the wall... and try to figure this fucking thing out... and I'll be back...
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2003, 11:33 PM   #16
marsgur
Registered User
 
Join Date: Nov 2002
Posts: 26
If you have ServerSideInstructions or SSI

just type it in your html file

< !--#include virtual="/cgi-bin/index.cgi" -->

just delete the first space before "!"

and call it whatever.shtml

it will execute you cgi within any directory.
marsgur is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.