Missing web files and no access to ZM in browser

Forum for questions and support relating to the 1.24.x releases only.
Post Reply
lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Missing web files and no access to ZM in browser

Post by lpallard » Mon Mar 22, 2010 9:17 pm

I guess after several days trying to make the thing run, I exhausted my resources and I now suspect that I am facing a bug of some kind...

Basically since the beginning, I could not access the web interface. first of all I assumed ( troubleshooted) that the apache server on my machine was broken or not properly configured. I proved that wrong. It is working 100%.

Then I suspected that zoneminder service was not running properly or not configured properly. It seems to be running properly and upon startup does not send any eror or problem messages.

Now, through a thread on "linuxquestions" (http://www.linuxquestions.org/questions ... rid=441215) I ended up searching deeper and discovered that ZM (the service) was installed correctly and running, but the web files were not installed in my system. I couldnt find any zm.php, no zoneminder folders (system wide) and consequently, I cannot point the apache server to the web files... I am using slackware 13, and compiled from the sources on this website. I used :

./configure --with-webdir=/var/www/htdocs --with-cgidir=/srv/httpd/cgi-bin --prefix=/usr --sysconfdir=/etc > configured_this 2>&1

to configure the application. I have all the binaries in /usr/bin, and zm.conf in /etc...

Any idea?? Is this a bug with slack??

thanks for the support!

User avatar
kingofkya
Posts: 1112
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya » Mon Mar 22, 2010 10:15 pm

ussely its under /var/lib/zm /websomething

try doing

find / -name /zm

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Post by lpallard » Tue Mar 23, 2010 12:27 am

hey kingofkya!

I tried find / -name /zm but it returned nothing.... Also the content of /var/lib is:

[code]drwxr-xr-x 2 root root 48 2009-06-17 14:49 arpd
drwxr-xr-x 2 root root 48 2009-08-24 05:14 bluetooth
drwxr-xr-x 2 messagebus root 80 2010-03-19 01:09 dbus
drwxr-xr-x 2 root root 400 2009-08-13 15:13 elm
drwxr-xr-x 2 root root 80 2009-06-09 19:27 hp
drwxr-xr-x 2 root root 48 2007-05-02 14:09 htdig
drwxr-xr-x 3 root root 104 2010-03-20 14:51 installjammer
drwxr-xr-x 2 root root 48 2002-04-07 01:25 logrotate
drwxr-x--- 5 mysql mysql 656 2010-03-22 16:27 mysql
drwxr-xr-x 2 root root 48 2008-11-13 19:32 net-snmp
drwxr-xr-x 4 root root 192 2010-03-17 20:53 nfs
drwxr-xr-x 4 nx root 96 2010-03-20 22:00 nxserver
drwxrwx--- 2 root apache 96 2010-03-22 17:03 php
drwxr-xr-x 2 root root 72 2010-03-17 20:48 rpm
drwxr-xr-x 2 root root 440 2010-03-20 01:27 slackpkg
drwxr-x--- 2 root slocate 48 2000-08-23 21:03 slocate
drwxrwx--T 2 root nogroup 48 2006-09-12 03:33 stunnel
drwxr-xr-x 2 root root 80 2010-03-22 16:34 xkb[/code]


So no /zm there.....!

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Post by lpallard » Tue Mar 23, 2010 2:09 am

bump! .. anybody?

I even reinstalled..... same position as before....?? Anywhere I can fill a bug report?

User avatar
kingofkya
Posts: 1112
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya » Tue Mar 23, 2010 3:01 am

/configure --with-webdir=/var/www/htdocs --with-cgidir=/srv/httpd/cgi-bin --prefix=/usr --sysconfdir=/etc >

are you sure its not under /var/www/htdocs as your configure says.

Also I am sry if this insulates you intelligence but you did run "make install" after configure right?

Also you were running as root when you ran make install right?

did you do everything here http://www.zoneminder.com/wiki/index.ph ... rom_Source

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Post by lpallard » Tue Mar 23, 2010 3:19 am

kingofkya,

There is no zoneminder or zm folders in /var/www/htdocs... thats why i've been banging my head on the computer for several days ;)

the content of /var/www/htdocs is:

ajax
css
events
graphics
htdigs
images
includes
index.html
index.php
js
lang
manual
skins
sound
temp
tools
views


also it does not offend me at all! I myself wondered if I actually ran the install procedure.... but yes I did ;) I was running everything as root

I also looked at the link you provided... I did everything there, actually, I even tried to upgrade the application, I reinstalled from sources, I checked all the configure and make as well as make install logs, no errors or even a simple complain from the procedures.... I begin to think this machine is doomed hahaha

I really appreciate the help you give me!

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy » Tue Mar 23, 2010 3:38 am

the content of /var/www/htdocs is:
That is your ZM root, same as apache root... LOL!!!


You don't need to post http://ip/zm, just http://ip

sahelfootball82
Posts: 1
Joined: Tue Mar 23, 2010 12:34 pm

Post by sahelfootball82 » Tue Mar 23, 2010 12:46 pm

I had trouble for a while getting the interface to open after using a package installer. Now because I did the install differently I have no idea if this will help at all but they way I finally managed to get the web interface up and running was by following the first steps up to and including "Define the web address of the ZoneMinder interface" at this link:

http://www.zoneminder.com/wiki/index.ph ... _interface
(I apologize for the link not going all they way across, I tried selecting the whole thing and manually listing is as a URL but it wouldn't post then so you'll just have to copy and paste it yourself unless someone else can get it to work)

Again, this is a long shot, and I have no idea why just changing this worked, but it did so I figured I'd see if it helped you out as well. By the way I am running on Ubunutu 9.10 so I know this information is still good for that version too, not just 9.04.

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Post by lpallard » Tue Mar 23, 2010 10:31 pm

"That is your ZM root, same as apache root... LOL!!!"

That I understand, but it still does not help me to find that zm.php file or whatever I need to point apache to... I have a virtualhost set up and running and whenever I type http://localhost/zm I end up getting a listing of the directory where I pointed the VH to... If I type http://localhost or http://192.168.0.100 (the ip of that machine on my lan), I get the "It works!" message from apache (the index.html filein the DocumentRoot)...

Still I dont have that ZM control page...!?!?

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy » Tue Mar 23, 2010 10:44 pm

Move or delete index.html... the one ZM uses is index.php...

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Post by lpallard » Tue Mar 23, 2010 10:57 pm

all right so basically i did not install zm correctly... i should have installed zm in a sub folder so it does not mixes up with apache??

also now my vh points to the folder /varwww/htdocs but instead of getting the config page I get "index of /zm" with a listing of /varwww/htdocs..

Do I need to rename the index.php file so it display properly in my browser?

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy » Tue Mar 23, 2010 11:01 pm

I think you need to install ZM on a sub...

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Post by lpallard » Tue Mar 23, 2010 11:47 pm

Si I reinstalled ZM and now it has its own web files in /var/www/htdocs/zm

There is a index.php file in there, I pointed my VH to this folder, but instead of getting the control panel I get a listing of the folder. If I click on the index.php I get a blank page...

any idea why's that??
Thanks whatboy for your help! I appreciate!

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy » Wed Mar 24, 2010 12:20 am

I think you need to fiddle with apache configuration, I disable listings of folders, and add index.php to indexes... I have Fedora...

http://brennan.id.au/13-Apache_Web_Server.html

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests