Update README.Fedora
Updated documentation to reflect current issues/workarounds when running zoneminder on Fedora 19
This commit is contained in:
parent
ff4b2c0908
commit
38963520f4
|
@ -4,18 +4,18 @@ New installs
|
|||
1. Unless you are already using the MySQL server or you are running it
|
||||
remotely you will need to ensure that the server is installed and secured:
|
||||
|
||||
yum install mysql-community or
|
||||
yum install mysql-community-server
|
||||
--OR--
|
||||
yum install mariadb-server
|
||||
|
||||
yum install mysql (Mariadb)
|
||||
sudo systemctl enable mysqld
|
||||
|
||||
sudo systemctl mysqld enable
|
||||
|
||||
sudo system mysqld start
|
||||
sudo system start mysqld
|
||||
|
||||
mysql_secure_installation
|
||||
mysql_secure_installation
|
||||
|
||||
2. You will need to create the ZoneMinder database. These commands should do
|
||||
the trick, assuming your database server is local:
|
||||
2. Using the password for the root account set during the previous step, you
|
||||
will need to create the ZoneMinder database, assuming your database server is local:
|
||||
|
||||
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
||||
mysqladmin reload
|
||||
|
@ -48,18 +48,34 @@ New installs
|
|||
|
||||
for testing, and edit /etc/sysconfig/selinux to disable it at boot time.
|
||||
|
||||
7. The zoneminder.service file fails at present but the zmpkg.pl script
|
||||
can be run as root to start zoneminder.
|
||||
7. IMPORTANT: Edit /etc/httpd/conf.d/zoneminder.conf and/or /etc/httpd/conf.
|
||||
|
||||
sudo zmpkg.pl start
|
||||
The httpd.conf file included with this version of Fedora processes the conf.d
|
||||
folder after the default ScriptAlias directive in the httpd.conf file.
|
||||
Previously, the conf.d folder was processed before the default ScriptAlias
|
||||
directive. This causes a ScriptAlias overlap and breaks Zoneminder's streaming
|
||||
abilities.
|
||||
|
||||
8. The ZoneMinder web interface is disabled by default (which makes it rather
|
||||
useless but also secure by default), you will need to edit
|
||||
/etc/httpd/conf.d/zoneminder.conf to enable it. Afterwards, you can start
|
||||
the web server:
|
||||
Reference: http://httpd.apache.org/docs/2.4/mod/mod_alias.html#order
|
||||
Bug Report: https://bugzilla.redhat.com/show_bug.cgi?id=973067
|
||||
|
||||
sudo systemctl enable httpd.service
|
||||
sudo systemctl start httpd.service
|
||||
WORKAROUND #1
|
||||
If you are running zoneminder on a dedicated server then the simplest solution
|
||||
may be to simply comment out the line in httpd.conf that reads:
|
||||
|
||||
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
||||
|
||||
WORKAROUND #2
|
||||
If you need both the default cgi-bin folder & the zoneminder cgi-bin folder then
|
||||
a solution might be to move the following line before the default ScriptAlias
|
||||
directive in the httpd.conf file:
|
||||
|
||||
IncludeOptional conf.d/*.conf
|
||||
|
||||
8. Now start the web server:
|
||||
|
||||
sudo systemctl enable httpd.service
|
||||
sudo systemctl start httpd.service
|
||||
|
||||
9. You should immediately visit http://localhost/zm and secure the system if
|
||||
it is network facing. To do this:
|
||||
|
@ -71,7 +87,19 @@ New installs
|
|||
e) You should be prompted to log in; the default username/password is admin/admin.
|
||||
f) Open Options again, choose the newly visible Users tab.
|
||||
g) click the admin user and set a password.
|
||||
h) enable OPT_CONTROL on the Ssytem tab to enable ptz camera control.
|
||||
|
||||
10. The zoneminder.service file fails at present but the zmpkg.pl script
|
||||
can be run as root to start zoneminder.
|
||||
|
||||
sudo zmpkg.pl start
|
||||
|
||||
To start zoneminder automatically, create /etc/rc.d/rc.local and place the
|
||||
following inside it:
|
||||
#!/bin/sh
|
||||
/usr/bin/zmpkg.pl start
|
||||
|
||||
The rc.local file must be made executable.
|
||||
|
||||
Upgrades
|
||||
========
|
||||
|
@ -83,4 +111,4 @@ Upgrades
|
|||
2. You will need to upgrade the ZoneMinder database as described in the
|
||||
manual. This command should be sufficient when run as root:
|
||||
|
||||
zmupdate.pl --user=root --pass={mysql_root_pwd} --version=<from version>
|
||||
zmupdate.pl --user=root --pass=<mysql_root_pwd> --version=<from version>
|
||||
|
|
Loading…
Reference in New Issue