Page 1 of 1

error in apache logs when trying to access zm webgui

Posted: Tue Nov 08, 2011 3:31 pm
by atomsk
Hello i followed the instructions on the centos zoneminder wiki setup

After trying to access the zoneminder UI via the URL i get these errors in apache error_log

Code: Select all

Tue Nov 08 17:07:34 2011] [error] [client 192.168.1.2] File does not exist: /var/www/html/zm/<, referer: myurl/zm/
[Tue Nov 08 17:07:34 2011] [error] [client 192.168.1.2] File does not exist: /var/www/html/zm/<, referer: myurl/zm/
[Tue Nov 08 17:07:34 2011] [error] [client 192.168.1.2] File does not exist: /var/www/html/zm/<, referer: myurl/zm/
[Tue Nov 08 17:07:35 2011] [error] [client 192.168.1.2] File does not exist: /var/www/html/zm/<, referer: myurl/zm/
[Tue Nov 08 17:07:37 2011] [error] [client 192.168.1.2] File does not exist: /var/www/html/zm/<, referer: myurl/zm/
[Tue Nov 08 17:07:37 2011] [error] [client 192.168.1.2] File does not exist: /var/www/html/zm/<, referer: myurl/zm/
i'm trying to undestand why "/var/www/html/zm/<" and not "/var/www/html/zm/"

i have modified functions.php by replacing all short tags (<?) with full tags (<?php) and also enabled short tags in httpd.conf since the original functions.php file was having problems.

Re: error in apache logs when trying to access zm webgui

Posted: Tue Nov 08, 2011 8:12 pm
by PacoLM
Have you put your correct path in /etc/apache2/sites-enabled/000-default ?

From the wiki:

Code: Select all

vi /etc/apache2/sites-enabled/000-default
Find the line:

Code: Select all

DocumentRoot /var/www
, and change it to read

Code: Select all

DocumentRoot /usr/share/zoneminder
Similarly change the line:

Code: Select all

<Directory /var/www/>
to

Code: Select all

<Directory /usr/share/zoneminder/>

Code: Select all

service apache2 restart
Hope it helps,

PacoLM

Re: error in apache logs when trying to access zm webgui

Posted: Tue Nov 08, 2011 10:34 pm
by atomsk
thanks for the reply

unfortunately there no such directories in Centos

this is the wiki i'm talking about.
http://www.zoneminder.com/wiki/index.php/CentOS

Re: error in apache logs when trying to access zm webgui

Posted: Wed Nov 09, 2011 6:34 am
by PacoLM
Fast reader...I skipped the centos reference! Sorry about that.

Re: error in apache logs when trying to access zm webgui

Posted: Wed Nov 09, 2011 9:45 am
by atomsk
one more error upon apache restart

avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name


and this is what gets displayed when i visit the web gui:

: / : %
ZoneMinder - - v'.ZM_VERSION.'', canEdit( 'System' ) ) ?>
/ '.$SLANG['Log'].'' ) ?>

<?=$SLANG['Refresh']?><?=$SLANG['Edit']?><?=$SLANG['Delete']?>

i'm so puzzled, i did everything correctly , how come there's no package that gets installed automatically via yum :(

Re: error in apache logs when trying to access zm webgui

Posted: Wed Nov 09, 2011 2:01 pm
by atomsk
fixed it there are two short_open_tag entries in php.ini, you need to change both :x