Cant get more than Apache Test Page

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
Swimiscool
Posts: 4
Joined: Fri Oct 26, 2018 1:21 am

Cant get more than Apache Test Page

Post by Swimiscool »

I installed Zoneminder in a xen VM using Fedora 27.
I followed the instructions on the readme after installing it.

systemctl says mariadb, httpd, and zoneminder services are running.

The default /etc/zm/www/zoneminder.conf and /etc/httpd/conf.d files were created and have the same(default) content in them.

When I enter the IP from a remote host I get the apache test page. When I enter 10.137.0.x/zm I get a 404 not found message.

I guess I missed something? Ive gone over the install steps a few times and it doesn't seem like anything is amiss. I can only assume if I am getting the test page that means at least most of it is ready to go.

Do I need to add the zoneminder.conf to /var/www/html like the apache test page states? This was not stated in the readme.

Thanks
Nocifer
Posts: 37
Joined: Mon Oct 01, 2018 4:05 pm

Re: Cant get more than Apache Test Page

Post by Nocifer »

Getting the Apache default page means that Apache itself is working correctly, but that doesn't mean everything else does as well, let alone ZoneMinder which is a separate beast. I would need the Apache logs to be sure, but if as you say everything else works (mainly MariaDB and ZM itself), then this sounds like wrong paths or wrong permissions (yeah, I know this is a default install, but still).

And no, don't put the zoneminder.conf in /var/www/html because that conf file is not supposed to be served by the server! Is such a thing really given out as advice in the Apache test page..? Maybe you misread something...
Swimiscool
Posts: 4
Joined: Fri Oct 26, 2018 1:21 am

Re: Cant get more than Apache Test Page

Post by Swimiscool »

Haha yeah the test page says put your content in /var/www/html. Ive never used apache before so good thing I didnt follow its advice I guess.

I sort of ended up getting it to work, despite the zoneminder.conf files being the the same as far as I could tell in both httpd and www I opened up the conf file in the www directory and saved it to the httpd directory. And tried to log in again at 10.137.0.x/zm, this time I was given an error:

Unable to connect to ZM db.SQLSTATE[HY000] [1045] Access denied for user 'zmuser'@'localhost' (using password: YES)

So it is working now but I was denied access. I was trying to access zoneminder remotely. Is there a way of enabling remote login in the config files or do I need to log into zoneminder from the host to do this?
Swimiscool
Posts: 4
Joined: Fri Oct 26, 2018 1:21 am

Re: Cant get more than Apache Test Page

Post by Swimiscool »

I installed firefox in the vm and tried to log in and was also denied with the same message.
Swimiscool
Posts: 4
Joined: Fri Oct 26, 2018 1:21 am

Re: Cant get more than Apache Test Page

Post by Swimiscool »

Oh so there must me something that isnt working 100% in the install procedures becasue I had to copy zm.conf from /etc/zm/ to /etc/zm/conf.d/zm.conf.

It appears the intention was for this to happen during normal install but did not. But whatever, I am in now.
snakeice
Posts: 7
Joined: Mon Oct 15, 2018 9:14 pm

Re: Cant get more than Apache Test Page

Post by snakeice »

I know you figured it out but check out "/usr/share/doc/zoneminder/README" a symbolic link may be a better option to make sure things get updated properly in the future.

ln -s /etc/zm/www/zoneminder.conf /etc/httpd/conf.d/

I'm using Fedora 27 as well plus the README has other tips
Post Reply