![]() |
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!
|
Your apache config files have to be setup properly for this to work ...
:winkwink: |
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.
|
I FUCKING HATE PERL!
|
Quote:
:Graucho |
[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. < > |
Quote:
|
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? :) |
Quote:
pico /etc/httpd/logs/error_log |
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. |
Should look something like this.
Code:
<VirtualHost X.X.X.X:80> |
Quote:
FUUUUUCK... its' 400MB and just crashes my shit when I try to view it... |
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 |
Quote:
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! |
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
|
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