web interface does not work :-(

Support and queries relating to all previous versions of ZoneMinder
Locked
pax
Posts: 5
Joined: Sun Sep 16, 2007 1:03 pm

web interface does not work :-(

Post by pax »

Hello,
I have installed a debian distribution (c't VDR 6) and installed zm as described here http://www.zoneminder.com/wiki/index.ph ... .1_install.
The installation worked fine, untill I tried to access the webinterface.
With http://debian i can see the index of/ page: apache2-default/ works but by clicking zm/, I get a php-file to download.

Who can help me?

PS: I found this post http://www.zoneminder.com/forums/viewtopic.php?t=9767, but "ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf" has no effect.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

have you tried
http://localhost/zm/

?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
pax
Posts: 5
Joined: Sun Sep 16, 2007 1:03 pm

Post by pax »

No, I don´t have a gui or a browser installed on the debian system. I´d like to access zm via the network.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok then use the ip of the machine not debian in case its that, but fault finding will be hard without x
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Laevi
Posts: 42
Joined: Mon Aug 27, 2007 1:50 pm

Post by Laevi »

You will need a browser to open the php files - whole zoneminder webinterface is php-based.
pax
Posts: 5
Joined: Sun Sep 16, 2007 1:03 pm

Post by pax »

@jameswilson: I used the IP, "debian" is just a placeholder...

@Laevi: thats right, I want to use the webinterface with another computer in the network.

Fot better understanding: I typed the ip in the webbrowser of the client and I get the "index of/" directory with 2 folders: "apache2-default/" and "zm/". when clicking the "apache2-default/" I get a html-page with text "it works", when clicking "zm/" a window pops up for downloading the php-file to the disk.
The apache-server works, but without php. php4 is installed. How can I activate php?
Laevi
Posts: 42
Joined: Mon Aug 27, 2007 1:50 pm

Post by Laevi »

http://packages.debian.org/etch/php4-mysql for php4.
just make, make test and make install should do it.
pax
Posts: 5
Joined: Sun Sep 16, 2007 1:03 pm

Post by pax »

Laevi wrote:http://packages.debian.org/etch/php4-mysql for php4.
just make, make test and make install should do it.
Why should I do this? I installed php4-mysql with apt-get...
And how? I unpacked "php4_4.4.4.orig.tar.gz" but there is no make-file. I am Sorry, but I am a linux beginner ;-)
Laevi
Posts: 42
Joined: Mon Aug 27, 2007 1:50 pm

Post by Laevi »

so what is your problem if you installed php?
just use a browser and go to http://ip-adress/zm and you should be in (if no errors occur in your php).
pax
Posts: 5
Joined: Sun Sep 16, 2007 1:03 pm

Post by pax »

Laevi wrote:so what is your problem if you installed php?
just use a browser and go to http://ip-adress/zm and you should be in (if no errors occur in your php).
php does not work, the php-file is not executet by the server, I only can download the php-file.
Laevi
Posts: 42
Joined: Mon Aug 27, 2007 1:50 pm

Post by Laevi »

You should try this advice given by cordel on another topic:
try creating this file in that directory info.php and place the following in it.
Code:
<?PHP
phpinfo();
?>


then try to bring it up in a browser http://<yourhost>/zm/info.php
You should see your php configuration. If not then something is not properly configured in either apache or PHP.
Make sure the php module is being loaded correctly by apache and check your php.conf and php.ini

Regards,
Cordel
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Try installing it from a .deb instead. I think you have your dependencies missing. http://www.zoneminder.com/wiki/index.ph ... rom_a_.deb
jabbott
Posts: 1
Joined: Tue Sep 18, 2007 12:50 am
Location: Minnesota, USA

debian install

Post by jabbott »

I just installed 1.22 on debian as well.
There was no zm directory in the /var/www directory, as it should be, but was installed in /usr/share/zoneminder instead.
Just do: ln -s /usr/share/zoneminder /var/www/zm

then open http://yourhost/zm/index.php
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

That link instruction is in the readme included in the deb. It is also in the wiki.
Locked