I installed nethserver on a virtualbox virtual machine in a Windows7 pc. As I need a video surveillance server, I followed your guide to install zoneminder. After some difficulties, I can start the service (command line: service zoneminder start), but I can’t access the address https://xxx.xxx.x.x:xxx/it-IT/zm because I receive the following message:
Nethgui:
404 - Not found
1324379722+1322231262
Can someone help me to solve this problem? I am a total newbie to linux/nethserver, so I really don’t know what to do …
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
I see! just use https://ip-or-fqdn/zm without specifying the port :980
e.g. https://192.168.1.2/zm
Just to test it I followed the guide but with some small changes:
Install zoneminder on NethServer 6.8 (64-bit)
yum -y install nethserver-mysql
yum -y install http://zmrepo.zoneminder.com/el/6/x86_64/zmrepo-6-7.el6.noarch.rpm
yum -y install zoneminder
eorepo centos-{base,updates} nethserver-{base,updates} nethforge
mysql -e "create database zm"
mysql -e "grant all on zm.* to 'zmuser' identified by 'password'" # replace 'password' with your choosen one
mysql < /usr/share/zoneminder/db/zm_create.sql
echo "/etc/zm.conf" > /etc/backup-config.d/zoneminder.include
sed -i s/zmpass/password/ /etc/zm.conf # replace 'password' with the one you set before
service zoneminder start
service httpd restart
Using the address https://192.168.0.5/zm without the port gets me the message “Forbidden You don’t have permission to access /zm on this server.”.
I don’t if this can help, but when I edited /etc/httpd/conf.d/zoneminder.conf I didn’t find the line “Deny from all”, but “Allow from all”. I deleted it the same …
You should have something like this in your /etc/httpd/conf.d/zoneminder.conf, which i think it’s the default you get after installing it with the commands dnutan wrote, i too installed one last week and it worked
also be sure to service httpd restart
after changing anything in the zoneminder.conf file
#
# ZoneMinder Apache configuration file
# With SSLRequire and HTTPS auto redirect
# Modify this configuration to suit your requirements
#
# Auto Redirect HTTP requests to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(zm)(.*) https://%{SERVER_NAME}/$1$2 [R,L]
Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
SSLRequireSSL
Options -Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
SSLRequireSSL
AllowOverride All
Options ExecCGI FollowSymLinks
Order allow,deny
Allow from all
</Directory>
if you believe that the problem is solved, marks “solved” the answer that helped you. This helps anyone looking for the same problem and who responds to the support
thanks