CentOS 7 installation trouble - help please
Posted: Thu Jun 29, 2017 9:50 pm
Hmm... Having trouble.. following the ZMREPRO method... I'm sure remember apt-get just simply working out of the box on Ubuntu...? I'm new to CentOS.
Please bear in mind that this is a vanilla fresh install of CentOS 7 Minimal iso (maybe I should have used the Full iso?). I have only installed PLEX Media Server on this machine before this ZM install attempt.
I'm reading the README.Redhat file, but am left with more questions than answers... I've highlighted in bold the parts of the readme file that relate to my questions below:
What's New
==========
1. The Apache ScriptAlias has been changed from "/cgi-bin/zm/zms" to
"/cgi-bin-zm/zms". This has been to done to avoid this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=973067
IMPORTANT: You must manually verify the value of PATH_ZMS under Options.
Make sure it is set to "/cgi-bin-zm/nph-zms". Failure to do so will result
in a broken system. You have been warned.
2. Due to the active state of the ZoneMinder project, we now recommend granting
ALL permission to the ZoneMinder mysql account. This change must be done
manually before ZoneMinder will run. See the installation steps below.
1. Unless you are already using MariaDB server, you need to ensure that the
server is configured to start during boot and properly secured by running:
sudo dnf install mariadb-server
sudo systemctl enable mariadb
sudo systemctl start mariadb.service
mysql_secure_installation
So I tried this, and got:
So it would appear my vanilla install of CentOS does not include DNF, so I'll installed mariadb-server with YUM instead. Enabeld, and Started ok... however.....
Entered Root password, then:
And this goes on....
At this point, I'm giving up in the hope that someone swings by ad says: "Hey, I see what you're doing wrong",
OR preferably says: "here's a much easier out-of-the-box installation method, with less configuration needed.... it starts with yum..."
Cheers, Scott.
Please bear in mind that this is a vanilla fresh install of CentOS 7 Minimal iso (maybe I should have used the Full iso?). I have only installed PLEX Media Server on this machine before this ZM install attempt.
I'm reading the README.Redhat file, but am left with more questions than answers... I've highlighted in bold the parts of the readme file that relate to my questions below:
What's New
==========
1. The Apache ScriptAlias has been changed from "/cgi-bin/zm/zms" to
"/cgi-bin-zm/zms". This has been to done to avoid this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=973067
IMPORTANT: You must manually verify the value of PATH_ZMS under Options.
Make sure it is set to "/cgi-bin-zm/nph-zms". Failure to do so will result
in a broken system. You have been warned.
- Starting at "/", where should I find the folder /cgi-bin/ or /cgi-bin-zm/ to check?
- Starting at "/", where should I find the Options to check /cgi-bin-zm/nph-zms?
2. Due to the active state of the ZoneMinder project, we now recommend granting
ALL permission to the ZoneMinder mysql account. This change must be done
manually before ZoneMinder will run. See the installation steps below.
- Do I need to install MySQL separately? should this be installed as part of the ZMREPRO install?
1. Unless you are already using MariaDB server, you need to ensure that the
server is configured to start during boot and properly secured by running:
sudo dnf install mariadb-server
sudo systemctl enable mariadb
sudo systemctl start mariadb.service
mysql_secure_installation
So I tried this, and got:
Code: Select all
$ sudo dnf install mariadb-server
[sudo] password for xxxx:
sudo: dnf: command not found
Code: Select all
$ mysql_secure_installation
touch: cannot touch ‘.my.cnf.4716’: Permission denied
touch: cannot touch ‘.mysql.4716’: Permission denied
chmod: cannot access ‘.my.cnf.4716’: No such file or directory
chmod: cannot access ‘.mysql.4716’: No such file or directory
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
Code: Select all
/usr/bin/mysql_secure_installation: line 232: .my.cnf.4716: Permission denied
/usr/bin/mysql_secure_installation: line 233: .my.cnf.4716: Permission denied
/usr/bin/mysql_secure_installation: line 234: .my.cnf.4716: Permission denied
/usr/bin/mysql_secure_installation: line 236: .my.cnf.4716: Permission denied
/usr/bin/mysql_secure_installation: line 205: .mysql.4716: Permission denied
/usr/bin/mysql_secure_installation: line 207: .mysql.4716: No such file or directory
Enter current password for root (enter for none):
At this point, I'm giving up in the hope that someone swings by ad says: "Hey, I see what you're doing wrong",
OR preferably says: "here's a much easier out-of-the-box installation method, with less configuration needed.... it starts with yum..."
Cheers, Scott.