Unix help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kenny
    Confirmed User
    • Mar 2002
    • 7245

    #1

    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?
    7
  • RK
    Confirmed User
    • Aug 2001
    • 868

    #2
    try
    ee access.conf or pico

    and maybe look in httpd.conf instead since access.conf is rarely used.
    Does anyone look down here?

    Comment

    • zoic
      Registered User
      • Nov 2001
      • 84

      #3
      If you just want to view the file -

      cat access.conf | more

      z

      Comment

      • Dreamman010
        Confirmed User
        • Jan 2002
        • 1081

        #4
        'less httpd.conf'
        <a href="http://www2.famoushost.com/home.php" target="_blank"><b><FONT COLOR="FFFF00">www.FamousHost.com</font></b></a><br>Free Hosting With No Headers, Real FTP, <u>Get listed on the biggest TGP's with us!</u>

        Comment

        • kenny
          Confirmed User
          • Mar 2002
          • 7245

          #5
          Thanks you guys now all I got to do is figure out what the hell I am looking at
          7

          Comment

          • spanky
            Confirmed User
            • Apr 2002
            • 231

            #6
            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

            Comment

            • darksoul
              Confirmed User
              • Apr 2002
              • 4997

              #7
              To disable ssi exec use
              Options +IncludesNOEXEC
              in yout httpd.conf file
              1337 5y54|)m1n: 157717888
              BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
              Cambooth

              Comment

              • kenny
                Confirmed User
                • Mar 2002
                • 7245

                #8
                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?
                7

                Comment

                • Dreamman010
                  Confirmed User
                  • Jan 2002
                  • 1081

                  #9
                  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
                  <a href="http://www2.famoushost.com/home.php" target="_blank"><b><FONT COLOR="FFFF00">www.FamousHost.com</font></b></a><br>Free Hosting With No Headers, Real FTP, <u>Get listed on the biggest TGP's with us!</u>

                  Comment

                  • Dreamman010
                    Confirmed User
                    • Jan 2002
                    • 1081

                    #10
                    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
                    <a href="http://www2.famoushost.com/home.php" target="_blank"><b><FONT COLOR="FFFF00">www.FamousHost.com</font></b></a><br>Free Hosting With No Headers, Real FTP, <u>Get listed on the biggest TGP's with us!</u>

                    Comment

                    • kenny
                      Confirmed User
                      • Mar 2002
                      • 7245

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

                      Comment

                      Working...