{"id":17473,"date":"2015-08-05T15:50:30","date_gmt":"2015-08-05T20:50:30","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17473"},"modified":"2022-12-12T07:02:55","modified_gmt":"2022-12-12T13:02:55","slug":"how-to-install-orangehrm-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-orangehrm-on-a-centos-7-vps\/","title":{"rendered":"How to install OrangeHRM on a CentOS 7 VPS"},"content":{"rendered":"
In the following article we are going to explain how you can install and run OrangeHRM on your CentOS 7 VPS<\/a>. OrangeHRM is a superb, scalable Human Resource Management solution written in PHP. It has the following features:<\/p>\n <\/p>\n REQUIREMENTS<\/strong><\/p>\n We will be using our SSD 1\u00a0<\/span>Linux VPS<\/a>\u00a0<\/span>Hosting plan for this tutorial.<\/p>\n UPDATE THE SYSTEM<\/strong><\/p>\n As always, make sure your CentOS 7 VPS is fully up-to-date with the command below:<\/p>\n INSTALL LAMP<\/strong><\/p>\n Your first step is to install Linux Apache, MariaDB & PHP or better known by LAMP. LAMP is actually an acronym for a web services solution stack consisting of Linux, the Apache HTTP Server, the MySQL or MariaDB database engines, and the PHP, Perl or Python programming language. Issue the following:<\/p>\n After the LAMP installation is complete, enable Apache and MariaDB to start on boot and start them with the below commands:<\/p>\n For further configuration tweaks on Apache, PHP and MariaDB, check our excellent blog post<\/a>.<\/p>\n Next run the MariaDB post-installation script mysql_secure_installation:<\/p>\n Configure it like this:<\/p>\n INSTALL ORANGEHRM<\/strong><\/p>\n You need to enter the Apache document root directory, download and unzip the OrangeHRM installation zip file. The underneath commands will do the job:<\/p>\n Move the files and directories from the unpackacked directory into your current working directory (Apache’s document root)<\/p>\n Now, open the Apache configuration file:<\/p>\n Locate the ‘<Directory “\/var\/www\/html”><\/em>‘ section and change the value of the line : ‘AllowOverride None<\/em>‘ to ‘AllowOverride All<\/em>‘ . This action will enable .htaccess files to be used by your web server.<\/p>\n So, after you are done, the section should look like this:<\/p>\n Next, open the MariaDB configuration file. We are using the following command:<\/p>\n Anywhere under the [mysqld] block place the following line: event_scheduler = ON . Then restart MariaDB for the changes to take effect:<\/p>\n Set the correct ownership:<\/p>\n To finish the OrangeHRM installation, open your favorite browser and navigate to http:\/\/your_domain.com . Accept the license and enter your preferred database configuration information once you reach the Database Configuration part.<\/p>\n You can also leave the default database values.<\/p>\n In \u2018step 3: System Check\u2019, make sure all listed items are green and OK.<\/p>\n Next, create your admin username and password. The installation will start once you click the ‘Install’ button after the confirmation of your set up in the last \u2018Step 5: Confirmation\u2019.<\/p>\n Congratulations, you have successfully installed OrangeHRM on your CentOS 7 VPS<\/a>.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" In the following article we are going to explain how you can install and run OrangeHRM on your CentOS 7 … <\/p>\n\n
# yum update<\/pre>\n
# yum install httpd openssl mod_ssl mariadb mariadb-server mysql unzip<\/pre>\n
# systemctl enable mariadb && systemctl enable httpd\r\n\r\n# systemctl start httpd && systemctl start mariadb<\/pre>\n
# mysql_secure_installation<\/pre>\n
- Set root password? [Y\/n] y\r\n- Remove anonymous users? [Y\/n] y\r\n- Disallow root login remotely? [Y\/n] y\r\n- Remove test database and access to it? [Y\/n] y\r\n- Reload privilege tables now? [Y\/n] y<\/pre>\n
# cd \/var\/www\/html\r\n# wget -O orangehrm.unzip http:\/\/downloads.sourceforge.net\/project\/orangehrm\/stable\/3.3.1\/orangehrm-3.3.1.12255.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Forangehrm%2F&ts=1436890468&use_mirror=iweb\r\n# unzip orangehrm.unzip<\/pre>\n
# mv orangehrm-3.3.1\/* . && mv orangehrm-3.3.1\/.htaccess .<\/pre>\n
# vim \/etc\/httpd\/conf\/httpd.conf<\/pre>\n
<Directory \"\/var\/www\/html\">\r\n #\r\n # Possible values for the Options directive are \"None\", \"All\",\r\n # or any combination of:\r\n # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews\r\n #\r\n # Note that \"MultiViews\" must be named *explicitly* --- \"Options All\"\r\n # doesn't give it to you.\r\n #\r\n # The Options directive is both complicated and important. Please see\r\n # http:\/\/httpd.apache.org\/docs\/2.4\/mod\/core.html#options\r\n # for more information.\r\n #\r\n Options Indexes FollowSymLinks\r\n\r\n #\r\n # AllowOverride controls what directives may be placed in .htaccess files.\r\n # It can be \"All\", \"None\", or any combination of the keywords:\r\n # Options FileInfo AuthConfig Limit\r\n #\r\n AllowOverride All\r\n\r\n #\r\n # Controls who can get stuff from this server.\r\n #\r\n Require all granted\r\n<\/pre>\n
# vim \/etc\/my.cnf<\/pre>\n
# systemctl restart mariadb<\/pre>\n
# chown apache: \/var\/www\/html\/ -R<\/pre>\n