yum install -y epel-release yum-utils wget unzip
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm yum-config-manager --disable remi-php54 yum-config-manager --enable remi-php73 yum install -y php php-mysqlnd php-mbstring
yum install -y httpd mod_ssl
# MariaDB 10.3 CentOS repository list - created 2019-01-25 13:04 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
yum install -y MariaDB-server
: [Date] : date.timezone = Asia/Taipei :
: <Directory "/var/www/html"> : AllowOverride All :
systemctl start httpd systemctl enable httpd systemctl start mariadb systemctl enable mariadb mysql_secure_installation mysql -u root -p
su - root cd /var/www/ wget https://leantime.io/download/?wpdmdl=6881 -O leantime.zip unzip leantime.zip rmdir html mv public html cp config/configuration.sample.php config/configuration.php chown apache:apache /var/www/userfiles/
mysql -u root -p create database leadtime; create user 'leadtime'@'localhost' identified by '**Password**'; grant all on leadtime.* to 'leadtime'@'localhost'; flush privileges; quit
[root@ct-leantime www]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 18 Server version: 10.3.20-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> create database leadtime; Query OK, 1 row affected (0.000 sec) MariaDB [(none)]> create user 'leadtime'@'localhost' identified by '**Password**'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> grant all on leadtime.* to 'leadtime'@'localhost'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> quit Bye [root@ct-leantime www]#
: /* Database */ public $dbHost="localhost"; //Database host public $dbUser="leadtime"; //Database username public $dbPassword="**Password**"; //Database password public $dbDatabase="leadtime"; //Database name /* Fileupload */ :