Forum Moderators: coopster & phranque

Message Too Old, No Replies

Choosey server side includes

an error occurred while processing this directive

         

PhraSEOlogy

4:48 am on May 16, 2006 (gmt 0)

10+ Year Member



Okay,

I am using a perl script that is installed in many sub directories off the www root. Each copy is identical (copied using linux cp command and all ownership permissions are identical plus they are all chmod 755) and is called via a SSI. Directory A, B, C all work fine but D,E and F give me "an error occurred while processing this directive". The script runs fine from the command line but messes up when called with a browser.

Now I could understand if it was consistent, but it aint. How can the SSI work in one directory and not in another?

I am ready to pull my hair out right now - what little I have left!

lexipixel

4:25 pm on May 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One guess...

Include "file" v. include "virtual" problem?

The following works when the file you want to include is in the same path as the calling document:

<!--#include file="filename.ext" -->

But if the include file needs to be called from another path, you need to use:

<!--#include virtual="/other_path/filename.ext" -->

PhraSEOlogy

8:01 pm on May 16, 2006 (gmt 0)

10+ Year Member



Lexi,

Thanks for the response. I think its a server problem - something to do with using suexec. I pulled it from the config and all the scripts started working okay. Apparently, suexec has a strict set of rules and if you violate them then you get the dreaded "Premature end of script headers" message and the whole thing bombs.