Posts

Showing posts from January, 2010

Cloning SugarCRM

Step 1: Clone the sugarcrm Directory There is a script "CopySugarFile.sh" , see script also in bottom. Running the Script, remember you have to provide the paths both source directory and clone directory. root@imran:~# ./sugarclone Missing First Argument: Syntax: copySugarFiles.sh /var/www/html/FROM_SUGAR_DIR /var/www/html/TO_SUGAR_DIR exited with status -1 root@imran:~# ./sugarclone /var/www/sugar /var/www/clone Compressing /var/www/sugar Sugar and saving to /home/imran/sugarFilesFromBackup201001111322.tgz Compressing /var/www/clone Sugar and saving to /home/imran/sugarFilesToBackup201001111322.tgz tar: Cowardly refusing to create an empty archive Try `tar --help' or `tar --usage' for more information. Extracting the /var/www/sugar Sugar tgz to /var/www/clone Sugar directory Script complete. Step2: Clone the Database First Create a new database for Cloning e.g clone Export the sugarcrm database using PHPMyAdmin tool e.g sugarcrm.sql Import the sugarcrm.sql data into ...

SugarCRM Changing Max file Upload Limit

In sugar while uploading a file as attachment to e.g Marketing->Accounts->youraccount->Create Note or Attachment. I tried to upload a file size 20M, it did not attached and no error message as well. Here is to fix this.After doing the following changes, performance of site also improves. Step 1: Change in SugarCRM Go to Admin->System Settings->Advanced change Maximum upload size e.g 41943040 (40M) default was 3000000 (3M) Step 2: Change in php.ini file Login to your server hosting the site, Go to /etc/php5/apache2/php.ini and change the following, Max, limit 40M post_max_size = 40M upload_max_size = 40M max_execution_time = 1000 max_input_time = 60 memory_limit = 128M imran@venus:/var/www/sugar$ sudo nano /etc/php5/apache2/php.ini ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = 100 ; Maximum execution time of each script, in seconds, 30s default max_input_time = 60 ; Maximum amount of time each script may spend pars...