The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

an error occurred whil processing this directive

Discussion in 'General Discussion' started by mharris1969, Aug 12, 2006.

  1. mharris1969

    mharris1969 Registered

    Joined:
    Jul 30, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    St. Louis, MO.
    Hello all,

    I am new to using cpanel, so thank you in advance for being patient with me. I just uploaded my new website, and am getting the 'an error occurred whil processing this directive' on my index.shtml page. My navbar is an includes file, and it's the only piece not showing up on my site.

    Any help is most appreciated.

    Thanks,
    mharris1969
     
  2. inalto

    inalto Member

    Joined:
    Mar 27, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Look in your index.shtml there is a line like this:

    <!--#include virtual="/navbar.shtml" -->

    check the path file with your browser, lynx or wget http://yourhost.ws/navbar.shml to see if you can access it.
    Maybe you cant reach that file (if you can avoid spaces in filenames, use "_" instead. for example use nav_bar.shtml instead nav bar.shtml

    Check if the navbar.shtml permissions are ok. You must be the owner of navbar.shml and permissions should be like 644, avoid 777.

    If you navbar uses cgi within (like perl scripts) check that scripts are in a sub-directory with Options +ExecCGI enabled in the .htaccess (or in cgi-bin of course) and with execution permissions for the owner of the file.

    If you include a cgi, pay attention to the header of the generated file, the first line should be "Content-type: text/html" + "\n"

    Hope it helps :)
     
Loading...

Share This Page