12.07.2015 Views

Sugar Community Edition Installation and ... - SugarForge

Sugar Community Edition Installation and ... - SugarForge

Sugar Community Edition Installation and ... - SugarForge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2Administering <strong>Sugar</strong>b. Enter the following line to your crontab:* * * * * cd /path/to/sugar/crm; php -f cron.php >/dev/null 2>&1c. To fine tune this job, change the first two “*”. The first is the “Minutes” value,the second is the “Hours” value.For example, to run the cronjob every 3 minutes, enter:"*/3 * * * * cd /path/to/sugar/crm; php -fcron.php > /dev/null 2>&14. Test the crontab line as follows to confirm that your system is ready to run:a. At a terminal prompt, copy <strong>and</strong> paste the comm<strong>and</strong> for your cronjob, <strong>and</strong> runit; the logic here is that if the comm<strong>and</strong> will execute successfully when runmanually, the crontab will be able to execute successfully as well.b. If your cronjob looks as follows:* * * * * cd /var/www/html/sugarcrm; php -f cron.php> /dev/null 2>&1type the comm<strong>and</strong> from "cd.." to "2&>1" into a terminal <strong>and</strong> press Enter.c. If any errors occur, refer to “Troubleshooting Tips” on page 35.5. Save your changes <strong>and</strong> close.Microsoft Windows (2000, XP, Server) SystemsSet up the Windows batch file as follows:1. Create a batch file that will execute all the necessary comm<strong>and</strong>s.2. Enter the following paths in the batch file:cd c:\path\to\your\sugarinstanceThis folder should contain the cron.php file. c:\path\to\your\php.exe -c c:\windows\php.ini -f cron.php3. Run the batch file from a comm<strong>and</strong> prompt to ensure that the output has no errors.4. If you encounter problems, do the following:a. Determine which PHP binary to use based on your PHP version.PHP 4.xIf your system has a 4.x version of PHP, the PHP-CGI binary is namedphp.exe <strong>and</strong> is typically located in the root folder of your PHP install folder.To allow it to interact with the dynamic libraries, specify the location of thephp.ini file. This can vary from system to system. If you are unsure, assumingthat php.exe is located in c:\php, enter the following comm<strong>and</strong> at thecomm<strong>and</strong> prompt:c:\php\php.exe -r phpinfo();The system will identify the php.ini file <strong>and</strong> its location.PHP 5.xIf your system has a 5.x version of PHP, the PHP-CGI binary is named phpcgi.exe(not php-cli.exe) <strong>and</strong> is typically located in the root folder of yourPHP install folder. To allow it to interact with the dynamic libraries, specify32 <strong>Sugar</strong> <strong>Community</strong> <strong>Edition</strong> <strong>Installation</strong> <strong>and</strong> Administration Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!