Install SugarCRM on a CentOS/Fedora/Scientitic Linux VPS
In order to run SugarCRM on your server, you need to have MySQL database server and Apache web server installed. Both are coming pre-installed with all our ‘full’ OS templates.
At the very beginning of the installation, update your system:
# yum -y update
We need to allow files of at least 6 MB to be uploaded in the PHP configuration file. You can find the location of the PHP configuration file with the following command:
# php -i |grep php.ini Configuration File (php.ini) Path => /etc Loaded Configuration File => /etc/php.ini
Open the configuration file and make sure that ‘upload_max_size’ is set to 6M or more:
# vi /etc/php.ini upload_max_filesize = 6M
and restart the web server:
# service httpd restart
Download the latest release of the SugarCRM community edition from http://sourceforge.net/projects/sugarcrm/files/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X which currently is 6.5.16
# wget http://downloads.sourceforge.net/project/sugarcrm/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X/SugarCE-6.5.16.zip
Unzip the zip archive to the document root directory:
# unzip SugarCE-6.5.16.zip -d /var/www/html
We will rename the extracted directory to something simpler:
# mv SugarCE-Full-6.5.16 sugarcrm
and this directory needs to be owned by the Apache user:
# chown -R apache:apache /var/www/html/sugarcrm
Next, create a MySQL database and user for SugarCRM:
echo "CREATE DATABASE sugarcrm;" | mysql -u root -p echo "CREATE USER 'sugarcrmuser'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';" | mysql -u root -p echo "GRANT ALL PRIVILEGES ON sugarcrm.* TO 'sugarcrmuser'@'localhost';" | mysql -u root -p echo "FLUSH PRIVILEGES;" | mysql -u root -p
On the next screen you will see instructions and requirement for the installation.
That’s all. SugarCRM Community Edition is successfully installed on your server. Now, you can log in to SugarCRM with your admin account and continue with the configuration.
Of course, if you are one of our Linux VPS Hosting customers, you don’t have to do any of this, simply ask our admins, sit back and relax. Our admins will install SugarCRM for you immediately.
PS. 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.