GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Running CGI files outside of CGI-BIN? (https://gfy.com/showthread.php?t=151644)

GFED 07-10-2003 10:19 PM

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!

JFPdude 07-10-2003 10:20 PM

Your apache config files have to be setup properly for this to work ...

:winkwink:

liquidmoe 07-10-2003 10:22 PM

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.

GFED 07-10-2003 10:22 PM

I FUCKING HATE PERL!

JFPdude 07-10-2003 10:22 PM

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.

:Graucho

p00p 07-10-2003 10:26 PM

[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. < >

p00p 07-10-2003 10:27 PM

Quote:

Originally posted by JFPdude


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

:Graucho

They are.

GFED 07-10-2003 10:40 PM

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? :)

p00p 07-10-2003 10:41 PM

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

Smegma 07-10-2003 10:42 PM

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.

Smegma 07-10-2003 10:45 PM

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>


GFED 07-10-2003 10:46 PM

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...

Smegma 07-10-2003 10:47 PM

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

p00p 07-10-2003 10:50 PM

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!

GFED 07-10-2003 10:54 PM

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... :glugglug

marsgur 07-10-2003 11:33 PM

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.


All times are GMT -7. The time now is 08:27 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123