dele454 schreef: > 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
READ THE PRECEDING LINE. here is a hint: Apache Include directives have NOTHING to do with PHP includes. your trying to define a PHP include_path using Apache's Include directive, guess what ... that won't work. additionally you seem to be trying to use Apache's Include directive to 'include' your Bootstrap.php ... which again, won't work. > /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. 'IT' is Apache, which doesn't undetstand your PHP code to be anything that resembles valid Apache config syntax. Apache sees '<?php' in the [conf] file you give it and it tries to parse this as a Directive 'tag' which it obviously fails to do. > Please help is needed. I concur. > Thanks > > ----- > dee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php