Below packages required to Installed SugarCRM. In 2 different Ubuntu Server.
Ex:
Server-01: Apache and PHP &
Server-02: Database Server (MySQL)
Install all the required packages using the following commands on Server-02
sudo apt-get install mysql-server
Install all the required packages using the following commands on Server-01
sudo apt-get install apache2
sudo apt-get install libapache2-mod-php5 libapache2-mod-perl2
sudo apt-get install php5 php5-cli php5-common php5-curl php5-dev php5-gd php5-imap php5-ldap unzip
sudo apt-get install php5-mhash php5-mysql php5-odbc curl libwww-perl imagemagick
Creating Database for SugarCRM
mysql -u root –p
Then type your MySQL password and run this command
mysql> create database sugarcrm;
mysql> exit
Follow the steps to allow access of MySql form remote server or system
Loging into mysql server. Now need to edit my.cnf depending on your Linux
vi /etc/mysql/my.cnf
Make sure line skip-networking is commented.
Go to the line bind-address and replace 127.0.0.1 to your mysql server IP, the new line should look like below..
bind-address=YOUR-SERVER-IP
exit my.cnf file after saving...
/etc/init.d/mysql restart
open mysql prompt
mysql -u root -p mysql
GRANT ALL ON yourdatabasename.* TO username@'your-ipaddress' IDENTIFIED BY
'PASSWORD';
*yourdatabasename is replace by your database name,your-ipaddress is replaced by ip address of remote machine from which you want to connect to MySql database
Installed SugarCRM
Now you need to go to your webserver document root directory (default location is /var/www) or your choice…
cd /var/www
Download SugarCRM
Now unzip file for using this command
unzip SugarCE-6.1.2.zip
Changed the folder name
sudo mv SugarCE-6.1.2.zip sugarcrm
Changed the ownership of this folder
sudo chown –Rf www-data:www-data sugarcrm
Give Write permitions for apache on some of SugarCRM Files
cd /var/www/sugarcrm
sudo chmod 766 config.php
sudo chmod 766 custom
sudo chmod -R 766 data
sudo chmod -R 766 cache
sudo chmod -R 766 modules
Open php configuration file do below chane
vi /etc/php5/apache2/php.ini
Change
;memory_limit = 16M to memory_limit = 50M
Change
;upload_max_filesize = 2M to upload_max_filesize = 10M
Restart web server using the following command
sudo /etc/init.d/apache2 restart
Configure sugarCRM
Now open your webbrowser and enter the following address
http:// hostname or server-ip/sugarcrm/install.php
While configuring give mysql server ip and password as we have installed mysql database on different server.