On Dec 8, 2008, at 6:47 AM, dele454 wrote:
Hi,
I am modifying the apache config file on my domain to include the
path to
the Zend Framework on a specified location outside the public folder.
So in my http.conf file i simply include the path to where the
includes file
is to customise the virtual host:
[CODE]
# To customize this VirtualHost use an include file at the following
location
Include
"/usr/local/apache/conf/userdata/std/2/domains/mydomain.co.za/me.conf"
[/CODE]
And then me.conf looks like this:
[CODE]
Include "/home/domain/apps"
Include "/home/domain/apps/models"
Include "/home/domain/apps/lib"
[/CODE]
But then i get this error:
[CODE]
Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at
/usr/local/apache/conf/httpd.conf.1228614930
Error:
Configuration problem detected on line 277 of file
/usr/local/apache/conf/httpd.conf.1228614930: : Syntax error
on line
1 of /usr/local/apache/conf/userdata/std/2/domain/mydomain.co.za/
me.conf:
Syntax error on line 1 of /home/domain/apps/Bootstrap.php:
/home/maineven/apps/Bootstrap.php:1: <?php> was not closed.[/CODE]
But i do have the <?php tag closed in my Bootstrap file. I dont
know why it
is saying otherwise.
Would it be possible to see the entire line 277 and a few above that?
most likely, it's complaining that you missed a " or ; or something
simple like that...
Also, you could if it's a php file, try putting it into the doc root,
and hitting the file with error logging set to the highest it can go:
IE:
<?PHP
ini_set('error_reporting', E_ALL | E_STRICT);
$a = "b";
$x = $a / $b;
?>
And with the error reporting on it would show you that $b doesn't
exist... Helpful for catching errors :)
--
Jason Pruim
japruim@xxxxxxxxxx
616.399.2355