Page 1 of 1

Web GUI

Posted: Thu May 13, 2010 5:46 am
by T3G Terry
I just built yet another ZM server but this time I am using UBUNTU 10.04 and ZoneMinder 1.24.2 build 3. Ok it's not another one. This one crashed after a 10.04 UBUNTU upgrade.

Anywho I completely wiped and installed 10.04 Ubuntu and 1.24.2 ZM and had a slight problem of ZoneMinder not starting. I uninstalled and reinstalled only Zoneminder and not the dependent packages and now it starts fine.

I need to point out that I am not that wise in the ways of Linux so please go easy on me.

Now the real problem. When I try to go to the web interface by typing http://localhost/zm or http://127.0.0.1/zm or http://<xxx>/zm I get the following message:

Not Found

The requested URL /zm was not found on this server.
Apache/2.2.14 (Ubuntu) Server at xxx.xxx.xxx.xxx Port 80.

If I just do the localhost without the ZM I do indeed get the IT WORKS page so I am guessing that Apache is working?

I looked in other forums for this and do not see where anyone has ever had this problem.

I also checked to make sure all the other dependencies were in fact installed and they are.

I did find where someone had a similar problem with an older version of ZM on an older version of Ubuntu but the solution was not what I would consider an actual fix but was instead a work around.

Any ideas?

Posted: Thu May 13, 2010 6:07 am
by PacoLM

Posted: Thu May 13, 2010 6:17 am
by T3G Terry
Already did that as you see in the original problem ......... if I type http://localhost OR http://localhost either one gets the IT WORKS page.

and just so you know here is a copy of my zm.conf file and my apache.conf files

QUESTION: Do I need to edit the zm.conf file so that my username and password match the username and password that I entered when I setup mysql?

zm.conf

# ==========================================================================
#
# ZoneMinder Base Configuration, $Date: 2008-07-25 10:48:16 +0100 (Fri, 25 Jul 2008) $, $Revision: 2612 $
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=1.24.2

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/build/buildd/zoneminder-1.24.2

# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1271082108

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/lib

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/etc/zm

# Path to ZoneMinder web files
ZM_PATH_WEB=/usr/share/zoneminder

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/usr/lib/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=www-data
ZM_WEB_GROUP=www-data

# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost

# ZoneMinder database name
ZM_DB_NAME=zm

# ZoneMinder database user
ZM_DB_USER=zmuser

# ZoneMinder database password
ZM_DB_PASS=zmpass




apache.conf

Alias /zm /usr/share/zoneminder

<Directory>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule>
DirectoryIndex index.php
</IfModule>
</Directory>

Posted: Thu May 13, 2010 6:24 am
by PacoLM
Hi,

Have you changed this? (extracted from http://www.zoneminder.com/wiki/index.ph ... _interface)

- Start gedit as root, open the file "/etc/apache2/sites-enabled/000-default".
- Find the line:
"DocumentRoot /var/www"

and change it to read "DocumentRoot /usr/share/zoneminder"

- Similarly change the line:
"<Directory>

to read "<Directory>


Hope it helps,

PacoLM

Posted: Thu May 13, 2010 6:37 am
by T3G Terry
Tried that 2 hours ago. That didn't work either.

I just tried to login again to the main page and once I did I went to the Apache error log and immediately got 2 new entries. Here they are;

[Thu May 13 01:30:10 2010] [error] [client 127.0.0.1] File does not exist: /var/www/zm
[Thu May 13 01:30:13 2010] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico

That may be normal and it may not. I am not an expert and do not know.

I also want to post my APACHE Sites-enabled file and see if there is anything out of place there.

Here are the contents of the file;

______________________________________________________________________

<VirtualHost>
ServerAdmin webmaster@localhost

DocumentRoot /usr/share/zoneminder
<Directory>
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

_______________________________________________________________________

Posted: Thu May 13, 2010 7:12 am
by PacoLM
Hi,

This seems to be an installation problem, I have it once and resolved by diong a complete uninstall and then installing it again.

It's like the CGI directory mistmatched somewhere.

Try it!

Posted: Thu May 13, 2010 7:26 am
by T3G Terry
After having no luck with changing the files we mentioned above I then decided to uninstall and reinstall the mysql program. Now it is working but only by typing just the http://<IP_ADDRESS> without the /zm on the end of it. At least I am getting it to work now. Not exactly the way I want but it is working. The only thing I have left to do is to install cambozola.jar if I can only remember how. Thanks for all your help.

Posted: Thu May 13, 2010 12:10 pm
by PacoLM
Congratulations! Take care.

PacoLM

Posted: Thu May 13, 2010 12:13 pm
by oneadvent
This is a problem with 1 of 2 things:

either your apache is looking for its root in /var/www/zm not /var/www/

or you have all your zoneminder files in /var/www

apache uses whatever you say its root is as the <ipaddy>, then all the sub folders are <ipaddy>/sub1 or <ipaddy>/sub2, or you may just have the files in the wrong place, which you should be able to move.

I would suggest having webmin to manage your apache, will make things much easier on you.

Have fun!

Posted: Fri May 14, 2010 12:42 am
by bb99
I haven't used Ubuntu in years but your problem is very similar to the broken php in fedora 12 where you need to change the second instance of short_tags in php.ini to on and the hostname issue in the ZMLarch live CD. Either of these problems will produce your symptoms.

Posted: Fri May 14, 2010 5:50 am
by kingofkya
mine just did the same thing i will report back when I figure it out.

Posted: Fri May 14, 2010 6:38 am
by T3G Terry
king ....... I would appreciate that.

I agree with the idea that something is not installed in the correct directory. As best I remember it seems like there were some files that were not where they should have been. I do realize that some things have changed from one version to another such as installation directories. I think that either this has changed or Apache is indeed looking for this in a place where it is not.

I am also having other problems which are repeat problems that I found in previous versions BUT I will put them in another topic at another time. I want to resolve first things first.

Someone online claims to have installed Ubuntu 10.04 then went to software and made an install of zoneminder and everything worked just fine. I decided to try that same thing and I now believe that this person wasn't telling the truth as almost nothing worked as they stated it would. I actually trued three times and every time I had the same exact issues from the start.

I did notice that on a fresh install I reviewed the dependent packaged required by Zoneminder and compared them to the actual packaged that were installed in my Ubuntu. SOME of the packages that were installed were newer that the ones required by Zoneminder and I am wondering if this could also be causing some of the minor issues I have seen so far.

Anyway if anyone figures out what is going on here I would appreciate your explaining it in the simplest terms and instructions possible as I have said I am mentally linux challenged. I am enjoying this though and now wish I had started learning this many years ago.

Thanks for all the help and advice from everyone thus far.

Posted: Fri May 14, 2010 12:24 pm
by PacoLM
Hi,

I have ZM 1.24.2 working in a laptop upgraded from Ubuntu 9.04 to 9.10 and finally to 10.04. The installation worked fine, I do not remember having any kind of problem!.

Hope it helps,

PacoLM