error in apache logs when trying to access zm webgui

Forum for questions and support relating to the 1.25.x releases only.
Locked
atomsk
Posts: 7
Joined: Tue Nov 08, 2011 3:24 pm

error in apache logs when trying to access zm webgui

Post 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.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

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

Post 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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
atomsk
Posts: 7
Joined: Tue Nov 08, 2011 3:24 pm

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

Post 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
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

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

Post by PacoLM »

Fast reader...I skipped the centos reference! Sorry about that.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
atomsk
Posts: 7
Joined: Tue Nov 08, 2011 3:24 pm

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

Post 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 :(
atomsk
Posts: 7
Joined: Tue Nov 08, 2011 3:24 pm

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

Post by atomsk »

fixed it there are two short_open_tag entries in php.ini, you need to change both :x
Locked