Parse error: syntax error, unexpected $end
Posted: Fri Feb 27, 2009 11:27 am
Hi there hope you can help me out.
I am running opensuse 11.0 and am installing zoneminder from source.
I have followed the instructions as per the webpage at:
http://www.zoneminder.com/wiki/index.ph ... ZoneMinder
and installed all the rpm packages listed, with the exception of openssl-devel, php5-doc, perl-Data-Manip (although I think this is a spelling mistake and should be perl-DateManip; although I could be wrong!), perl-PIRPC and ligqt4-sql-mysql (although, again I think this is a mispelling and should be libqt4-sql-mysql, which I have installed also)
When I last ran the install (with the command of: ./configure --with-webdir=/srv/www/htdocs --with-cgidir=/srv/www/cgi-bin ZM_SSL_LIB=openssl --with-webuser=wwwrun --with-webgroup=www ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass), the webpages were put in the base directory of apache which is /srv/www/htdocs and /srv/www/cgi-bin, but this last time, I first removed the default index.html, so that may have some bearing. The other times it put it in a subdirectory of 'zm'.
Basically when I point to http://localhost/zm.php it says object not found, as you might expect, as there is no zm.php file (am I doing something fundamentally wrong with the setup?), but there is an index.php which when I try to run comes up with the following error:
Parse error: syntax error, unexpected $end in /srv/www/htdocs/includes/functions.php on line 2296
I have searched the forum and found a similar problem that was (apparently) sorted by switching on the short_open_tag in php.ini, but this does not seem to work and have restarted apache2, just to make sure...
Thanks for all your help beforehand...
I am running opensuse 11.0 and am installing zoneminder from source.
I have followed the instructions as per the webpage at:
http://www.zoneminder.com/wiki/index.ph ... ZoneMinder
and installed all the rpm packages listed, with the exception of openssl-devel, php5-doc, perl-Data-Manip (although I think this is a spelling mistake and should be perl-DateManip; although I could be wrong!), perl-PIRPC and ligqt4-sql-mysql (although, again I think this is a mispelling and should be libqt4-sql-mysql, which I have installed also)
When I last ran the install (with the command of: ./configure --with-webdir=/srv/www/htdocs --with-cgidir=/srv/www/cgi-bin ZM_SSL_LIB=openssl --with-webuser=wwwrun --with-webgroup=www ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass), the webpages were put in the base directory of apache which is /srv/www/htdocs and /srv/www/cgi-bin, but this last time, I first removed the default index.html, so that may have some bearing. The other times it put it in a subdirectory of 'zm'.
Basically when I point to http://localhost/zm.php it says object not found, as you might expect, as there is no zm.php file (am I doing something fundamentally wrong with the setup?), but there is an index.php which when I try to run comes up with the following error:
Parse error: syntax error, unexpected $end in /srv/www/htdocs/includes/functions.php on line 2296
I have searched the forum and found a similar problem that was (apparently) sorted by switching on the short_open_tag in php.ini, but this does not seem to work and have restarted apache2, just to make sure...
Thanks for all your help beforehand...