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)
-   -   Unix help (https://gfy.com/showthread.php?t=60737)

kenny 05-15-2002 08:14 PM

Unix help
 
I am trying to look at access.conf to see if my SSI exec cmd is disabled, I tried "ed access.conf" but all it shows is the number 348. I am new to unix, can someone please tell me the command for this?
:helpme

RK 05-15-2002 08:18 PM

try
ee access.conf or pico

and maybe look in httpd.conf instead since access.conf is rarely used.

zoic 05-15-2002 08:33 PM

If you just want to view the file -

cat access.conf | more

z

Dreamman010 05-15-2002 08:43 PM

'less httpd.conf'

kenny 05-15-2002 08:45 PM

Thanks you guys now all I got to do is figure out what the hell I am looking at:)

spanky 05-15-2002 09:24 PM

You want to be sure that you've got

Options +Includes

for your web directory and either set a handler to server-parsed for .shtml files or use the XBitHack.

http://httpd.apache.org/docs/howto/ssi.html

cheers

darksoul 05-15-2002 09:40 PM

To disable ssi exec use
Options +IncludesNOEXEC
in yout httpd.conf file

kenny 05-15-2002 09:49 PM

Quote:

Originally posted by darksoul
To disable ssi exec use
Options +IncludesNOEXEC
in yout httpd.conf file

Is is disabled and that is what is in the httpd.conf "IncludesNoExec", but I need to enable the exec cmd, being unix stupid I don't know how to.
What do I do delete "IncludesNoExec" from the file?

Dreamman010 05-15-2002 10:22 PM

Quote:

Originally posted by kenny


Is is disabled and that is what is in the httpd.conf "IncludesNoExec", but I need to enable the exec cmd, being unix stupid I don't know how to.
What do I do delete "IncludesNoExec" from the file?

Well, first off, you gotta make sure that the module is loaded at startup. You would see something like this - "LoadModule includes_module libexec/apache/mod_include.so" at the begning of the file. Make sure it doesn't have a # sign in front of it.
Secondly, make sure you don't have IncludeNoExec anywhere. Then, if lets say your web directory is in /usr/www/ then you would find where you have the web directory configured, usually looks like this: (not that the directory on your server might be different)
<Directory /usr/www>

Then you should add
Options ExecCGI in between the <Directory > and </Directory> tags. Lastly, you could add "AddHandler cgi-script .cgi" (or uncomment it by removing the # sign) to make cgi's executables from eveywhere.

If you still dont understand, copy/paste your httpd.conf file and we'll help you out.

Hope that helped.

-Dreamman

Dreamman010 05-15-2002 10:23 PM

Quote:

Originally posted by Dreamman010


Well, first off, you gotta make sure that the module is loaded at startup. You would see something like this - "LoadModule includes_module libexec/apache/mod_include.so" at the begning of the file. Make sure it doesn't have a # sign in front of it.
Secondly, make sure you don't have IncludeNoExec anywhere. Then, if lets say your web directory is in /usr/www/ then you would find where you have the web directory configured, usually looks like this: (note that the directory on your server might be different)
<Directory /usr/www>

Then you should add
Options ExecCGI in between the <Directory > and </Directory> tags. Lastly, you could add "AddHandler cgi-script .cgi" (or uncomment it by removing the # sign) to make cgi's executables from eveywhere.

If you still dont understand, copy/paste your httpd.conf file and we'll help you out.

Hope that helped.

-Dreamman


kenny 05-15-2002 11:14 PM

Yea it worked thankx a whole lot, I don't know why they can't make unix less confusing:thumbsup


All times are GMT -7. The time now is 03:06 AM.

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