<\/span><\/h2>\nFirst, we\u2019re going to need to log into our server using SSH. You can do that by entering this command:<\/p>\n
$ ssh root@IP_Address -p Port_Number<\/pre>\nRemember to replace \u201croot\u201d with your username if you are not using the root user. Change \u201cIP_Address<\/strong><\/span>\u201d and \u201cPort_Number<\/strong><\/span>\u201d according to your server\u2019s IP address and SSH port number.<\/p>\nOnce you are logged in, you should update all of your packages to their latest available versions, that way we can maximize compatibility and avoid potential version discrepancies:<\/p>\n
$ yum update<\/span><\/pre>\n<\/span>Step 2: <\/span>Install the MySQL 5.7 Database Server<\/span><\/h2>\nIf you already have MySQL or MariaDB installed you can skip this step and move to the next section.<\/p>\n
So you can install MySQL server on your VPS you need to enable MySQL 5.7 community release yum repository on your system.<\/p>\n
$ yum localinstall https:\/\/dev.mysql.com\/get\/mysql57-community-release-el7-9.noarch.rpm<\/pre>\nNow you can install MySQL as any other package using yum with the following command:<\/p>\n
$ yum install mysql-community-server<\/pre>\nOnce the installation is completed, start the MySQL service and enable it to automatically start on boot with:<\/p>\n
$ systemctl enable mysqld\r\n$ systemctl start mysqld<\/pre>\nYou can check the MySQL service status with the following command:<\/p>\n
$ systemctl status mysqld<\/pre>\nOutput:<\/p>\n
\u25cf mysqld.service - MySQL Server\r\n Loaded: loaded (\/usr\/lib\/systemd\/system\/mysqld.service; enabled; vendor preset: disabled)\r\n Active: active (running)\r\n Docs: man:mysqld(8)\r\n http:\/\/dev.mysql.com\/doc\/refman\/en\/using-systemd.html\r\n Process: 16261 ExecStart=\/usr\/sbin\/mysqld --daemonize --pid-file=\/var\/run\/mysqld\/mysqld.pid $MYSQLD_OPTS (code=exited, status=0\/SUCCESS)\r\n Process: 16185 ExecStartPre=\/usr\/bin\/mysqld_pre_systemd (code=exited, status=0\/SUCCESS)\r\n Main PID: 16263 (mysqld)\r\n CGroup: \/system.slice\/mysqld.service\r\n \u2514\u250016263 \/usr\/sbin\/mysqld --daemonize --pid-file=\/var\/run\/mysqld\/mysqld.pid<\/pre>\n<\/span>Step 3: <\/span>Secure MySQL<\/span><\/h2>\nWhen the installation is complete, run the following command to secure your installation:<\/p>\n
$ mysql_secure_installation<\/pre>\nThis is an optional command that intends to further harden the security of your MySQL server install.<\/p>\n
<\/span>Step 4: <\/span>Create a New Database<\/span><\/h2>\nCreate a new database and user for the YetiForce installation using the following commands:<\/p>\n
$ mysql -uroot -p<\/pre>\nIn this section, we will create a new MySQL database\u00a0yetiforce<\/code> and assign user access to it to a new user\u00a0yetiforce<\/code> with password\u00a0Strong_Password<\/code><\/p>\nCREATE DATABASE yetiforce;\r\nGRANT ALL PRIVILEGES ON yetiforce.* TO 'yetiforce'@'localhost' IDENTIFIED BY 'Strong_Password<\/span>';\r\nFLUSH PRIVILEGES;\r\nexit;<\/pre>\nDon\u2019t forget to replace \u2018Strong_Password<\/span>\u2019 with an actual strong password.<\/p>\n<\/span>Step 5: <\/span>Install PHP 7.2<\/span><\/h2>\nPHP version 7.2 is not available in the default CentOS 7 repositories so we will use the Remi repository.<\/p>\n
To install and enable both EPEL and Remi repositories, run the following command:<\/p>\n
$ yum install epel-release\r\n$ rpm -Uhv https:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\r\n$ yum-config-manager --enable remi-php72<\/pre>\nYou can now proceed and install PHP 7.2 as well as all necessary PHP modules using the following commands:<\/p>\n
$ yum install php php-mysqlnd php-opcache php-xml php-xmlrpc php-gd php-mbstring php-imap php-json php-xdebug php-posix php-uopz php-bcmath php-zip php-apcu php-ldap php-soap php-opcache php-intl php-imagick<\/pre>\nTo verify that PHP 7.2 is successfully installed, run the following command:<\/p>\n
$ php -v<\/pre>\nThe output should be similar to the one below:<\/p>\n
# php -v\r\nPHP 7.2.19 (cli) (built: May 29 2019 11:04:13) ( NTS )\r\nCopyright (c) 1997-2018 The PHP Group\r\nZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies\r\n with Zend OPcache v7.2.19, Copyright (c) 1999-2018, by Zend Technologies\r\n with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans<\/pre>\n<\/span>Step 6: <\/span>Download and Install YetiForce<\/span><\/h2>\nTo proceed with the installation procedure, download the YetiForce CRM package from its official website, run the\u00a0wget command\u00a0followed by the download link, and execute it.<\/p>\n
$ wget https:\/\/github.com\/YetiForceCompany\/YetiForceCRM\/releases\/download\/5.1.0\/YetiForceCRM-5.1.0-complete.zip<\/pre>\nOnce the zip archive is downloaded, unpack it to the document root directory on your server:<\/p>\n
$ unzip YetiForceCRM-5.1.0-complete.zip -d \/var\/www\/html\/<\/pre>\nAll files will be stored under the\u00a0\/var\/www\/html\/<\/strong> directory.<\/p>\nRemove the zip archive and change the ownership of the YetiForce files to ‘apache’.:<\/p>\n
$ rm -f YetiForceCRM-5.1.0-complete.zip\r\n$ chown -R apache:apache \/var\/www\/html<\/pre>\nThe composer will pull all the required libraries you need for your project.<\/p>\n
curl -sS https:\/\/getcomposer.org\/installer | php\r\nsudo mv composer.phar \/usr\/local\/bin\/composer<\/pre>\n$ cd \/var\/www\/html\r\n$ composer install\r\n$ composer require phpunit\/php-invoker<\/pre>\nThat was the last step of configuring your server and installing YetiForce through the command line.<\/p>\n