apache2 VirtualDocumentRoot and php

Greetings.

I have a linode runnning Debian and apache 1.5 that works.

I am now building a linode running Debian and apache2,

and it doesn't work (for apache2 VirtualDocumentRoot and php).

I can go to my domain, but php scripts won't run.

I copied a script that is known to work in the old environment,

and I get the following errors in the apache2 error.log:

Premature end of script headers: test.php

Error in suphp.c on line 244: Script is not in document root

Thanks to google, I understand the problem,

but have not found a solution that really works yet.

The VirtualDocumentRoot directive is confusing apache

about where to find libraries…but various things I tried,

including terrible kludges, did not help.

Any suggestions greatly appreciated.

Thanks

Seth

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct