■ Linux version CentOS-7-x86_64-Minimal-1908.iso
■ Install network tools yum install net-tools
■ Stop firewalld systemctl stop firewalld systemctl disable firewalld
■ Apache 2.4 installation yum install httpd.x86_64 ←2.4.6-93.el7.centos
To set it to start automatically when the server starts systemctl enable httpd
To check if it is automatically started systemctl is-enabled httpd
■ Installation of MYSQL5.6 Check and delete existing mariaDB rpm -qa | grep maria <-check if mariaDB exists yum remove mariadb-libs <-remove the body rm -rf / var / lib / mysql / <-delete data
Check and remove existing mysql yum remove mysql-server mysql-devel mysql rm -rf /var/lib/mysql/
Install the official Mysql Yum repository. You can check the latest version at Mysql official https://dev.mysql.com/downloads/repo/yum/. (The following is mysql57, but it is OK because 5.5 and 5.6 are also included) yum localinstall http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
To check if it was installed yum repolist all | grep mysql
(In some environments, enabled is displayed as enabled and disabled is displayed as disabled) In the above example, 5.7 is enabled and 5.6 is disabled. If you install it as it is, 5.7 that is enabled will be installed, so switch between enabling and disabling. The yum-utils package for changing yum settings is required to switch this, so install it if it is not installed.
-Check if yum-utils is installed yum list installed | grep yum-utils
・ If not, install yum-utils yum -y install yum-utils
yum-config-manager --disable mysql57-community <-5.7 disabled yum-config-manager --enable mysql56-community <-5.6 enabled
Check again if the settings are complete. yum repolist all | grep mysql
Check the details of the mysql-community-server package. yum info mysql-community-server Install it after confirming that it is 5.6 properly. yum -y install mysql-community-server
Check the version once it is installed. mysqld --version mysqld Ver 5.6.50 for Linux on x86_64 (MySQL Community Server (GPL))
To set it to start automatically when the server starts systemctl enable mysqld
To check if it is automatically started systemctl is-enabled mysqld
chkconfig --list mysqld <-Check autostart settings
Edit my.cnf (/etc/my.cnf) in mysql [mysqld] Correction #sql_mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES sql_mode=NO_ENGINE_SUBSTITUTION Added character-set-server = utf8 Added default-authentication-plugin = mysql_native_password Added [client] Added default-character-set = utf8
● Initial setting of mysql Start mysql systemctl start mysqld
Initialize MySQL Initialize MySQL with the mysql_secure_installation command. Restart MySQL after initialization.
Enter current password for root (enter for none): Return key Set root password? [Y/n] Y New password: Don't forget! Re-enter new password: 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
Restart mysql systemctl restart mysqld
Create a FREVO database in mysql mysql -u root -p show databases; create database frevocrm default charset utf8 default collate utf8_general_ci;
■ Installing PHP 5.6.40 Add EPEL repository yum install epel-release
Add Remi repository rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Install PHP 5.6 yum install --enablerepo=remi,remi-php56 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt
php --version PHP 5.6.40 (cli) (built: Sep 29 2020 11:13:13)
Disable SELinux (to avoid any privileges being compromised) vi /etc/selinux/config Changed "SELINUX = enforcing" to → SELINUX = disabled. Now reboot.
■ Install F-REVO CRM ① Extract the zip under this directory /home/frevouser/public_html/frevocrm
Transfer zip to linux with WINSCP
install unzip yum install unzip
Register user frevouser to change group settings and installation package directory ownership useradd frevouser -g wheel passwd frevouser
usermod -G apache frevouser cat /etc/group | grep frevouser
mkdir /home/frevouser/public_html cd /home/frevouser/public_html cp /root/frevocrm7.3.zip /home/frevouser/public_html unzip frevocrm7.3.zip
Then it will be decompressed in / home / frevouser / public_html / frevocrm
Change directory owner to frevouser, set permissions writable cd /home chown -R frevouser frevouser/ find . -type d -print -exec chmod 777 {} ;
(2) Modify /etc/httpd/conf/httpd.conf as follows. Changed document root, line 119 DocumentRoot "/var/www/html" Changed document root, line 132 DocumentRoot "/home/frevouser/public_html"
③ Install if the PHP extension module is not enough in the F-Revo installer. For example, if imap is not enough Check the validity status of the repository related to php yum repolist all | grep php
Enable the PHP 5.6 repository if it is disabled yum-config-manager --enable remi-php56
php-imap install yum install php-imap
Install mysqli yum -y install php-mysqli
④ Change the settings of /etc/php.ini log_errors = Off
error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
⑤ Change the authority of the files in the installation folder (set to chmod 777) Configuration File (config.inc.php) ← Ignore this file because it does not exist. .. Tabdata File (tabdata.php) Parent Tabdata File (parent_tabdata.php)
⑥ Enter database information with the installer Hostname: localhost Username: root ← This is a mysql user Password: Password for the user Database name: frevocrm
Administrator user information Username: admin Password: Optional
Installation takes about 10 minutes, but wait patiently!
that's all
Recommended Posts