Advertisement
matthewpoer

Setup SugarCRM on Nginx on Debian 6 Squeeze

Jul 17th, 2012
1,163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. Here are reference points:
  2. http://library.linode.com/web-servers/nginx/php-fastcgi/debian-6-squeeze
  3. http://forum.nginx.org/read.php?2,177494,177497
  4.  
  5. ** Minimalist Debian Server Setup **
  6. 1. Install from DVD-1, use expert installation. Follow the steps through Select and Install Software. Defaults are all fine.
  7. 2. During the "Select and Install Software" uncheck the Graphical Environment and leave only the standard system
  8. 3. Continue with system defaults using Grub, reboot and log into the system as root user.
  9. 4. vi /etc/sources.list and comment out the cdrom listing
  10. 5. aptitude update && aptitude install sudo vim ssh-server gpm links2 zip unzip ("the basics")
  11.  
  12. ** Setup nginx and php **
  13. 1. aptitude update && aptitude install nginx php5-cli php5-gd php5-cgi mysql-serverphp5-curl php5-imap php5-mysql spawn-fcgi
  14. 2. mkdir /var/www && chown -R www-data:www-data /var/www
  15. 3. vi /etc/nginx/sites-available/default and uncomment the lines in the block starting with "location ~ \.php$ {" and adjust the line "fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;" to read "fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;"
  16. 4. vi /etc/rc.local and add this line before the exit: /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid
  17. 5 ./etc/rc.local
  18. 6. service nginx start
  19. 7. echo "<?php phpinfo(); ?>" > /var/www/phpinfo.php
  20. 8. links2 http://localhost/phpinfo.php -- this will confirm that you indeed have PHP running
  21.  
  22. ** Download SugarCRM, Install and Configure **
  23. 1. Adjust /etc/php5/cgi/php.ini to set post_max_size=20M and upload_max_filesize=20M and add suhosin.executor.include.whitelist = "upload://" to the end of the file.
  24. 2. Stop the fast-cgi service: killall php5-cgi
  25. 3. Start it back up: ./etc/rc.local
  26. 4. wget http://downloads.sourceforge.net/project/sugarcrm/1%20-%20SugarCRM%206.5.0/SugarCommunityEdition-6.5.0/SugarCE-6.5.2.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsugarcrm%2Ffiles%2F1%2520-%2520SugarCRM%25206.5.0%2FSugarCommunityEdition-6.5.0%2F&ts=1342924680&use_mirror=iweb
  27. 5. unzip -qq SugarCE-6.5.2.zip && mv SugarCE-Full-6.5.2 sugarcrm && chown -R www-data:www-data sugarcrm && chmod -R 775 sugarcrm
  28. 6. use a browser to access http://localhost/sugarcrm/index.php and follow SugarCRM's prompts to install the system.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement