OsTicket/Installing
From r00tedvw.com wiki
(Difference between revisions)
Line 25: | Line 25: | ||
~$ sudo cp /var/www/html/support/include/ost-sampleconfig.php /var/www/html/support/include/ost-config.php | ~$ sudo cp /var/www/html/support/include/ost-sampleconfig.php /var/www/html/support/include/ost-config.php | ||
</nowiki> | </nowiki> | ||
+ | ==Configure MariaDB== | ||
+ | <nowiki>~$ sudo mysql -u root -p | ||
+ | MariaDB> create database osticketdb; | ||
+ | MariaDB> CREATE USER 'osticketuser'@'localhost' IDENTIFIED BY 'password'; | ||
+ | MariaDB> GRANT ALL ON osticketdb.* TO 'osticketuser'@'localhost'; | ||
+ | flush privileges; | ||
+ | exit;</nowiki> | ||
+ | Doublecheck database & user creation, permissions and password | ||
+ | <nowiki>~$ sudo mysql -u root -p | ||
+ | MariaDB> SHOW DATABASES; | ||
+ | osticketdb | ||
+ | MariaDB> SELECT User,Host FROM mysql.user; | ||
+ | osticketuser | localhost | ||
+ | MariaDB> SHOW GRANTS FOR 'osticketuser'@'localhost'; | ||
+ | GRANT ALL PRIVILEGES ON `osticketdb`.* TO 'osticketuser'@'localhost' | ||
+ | MariaDB> exit; | ||
+ | ~$ sudo mysql -u osticketuser -p</nowiki> |
Revision as of 03:04, 25 February 2017
Contents |
Update
~$ sudo yum update -y
Install LAMP
~$ sudo yum install httpd openssl mod_ssl php mariadb mariadb-server mysql -y
Secure MariaDB
~$ sudo systemctl start mariadb.service ~$ sudo systemctl enable mariadb.service ~$ sudo mysql_secure_installation Enter current password for root (enter for none): Set root password? [Y/n] y Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y Reload privilege tables now? [Y/n] y
Test MariaDB password
~$ mysql -u root -p
Install Dependencies
~$ sudo yum install php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-mcrypt -y
Download, Extract, and Configure osTicket
~$ sudo mkdir -p /opt/osticket ~$ sudo wget -P /tmp/ http://osticket.com/sites/default/files/download/osTicket-v1.9.12.zip ~$ sudo unzip -d /opt/osticket /tmp/osTicket-v1.9.12.zip ~$ sudo ln -s /opt/osticket/upload /var/www/html/support ~$ sudo chown apache: -R /var/www/html/support /opt/osticket ~$ sudo cp /var/www/html/support/include/ost-sampleconfig.php /var/www/html/support/include/ost-config.php
Configure MariaDB
~$ sudo mysql -u root -p MariaDB> create database osticketdb; MariaDB> CREATE USER 'osticketuser'@'localhost' IDENTIFIED BY 'password'; MariaDB> GRANT ALL ON osticketdb.* TO 'osticketuser'@'localhost'; flush privileges; exit;
Doublecheck database & user creation, permissions and password
~$ sudo mysql -u root -p MariaDB> SHOW DATABASES; osticketdb MariaDB> SELECT User,Host FROM mysql.user; osticketuser | localhost MariaDB> SHOW GRANTS FOR 'osticketuser'@'localhost'; GRANT ALL PRIVILEGES ON `osticketdb`.* TO 'osticketuser'@'localhost' MariaDB> exit; ~$ sudo mysql -u osticketuser -p