Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here are reference points:
- http://library.linode.com/web-servers/nginx/php-fastcgi/debian-6-squeeze
- http://forum.nginx.org/read.php?2,177494,177497
- ** Minimalist Debian Server Setup **
- 1. Install from DVD-1, use expert installation. Follow the steps through Select and Install Software. Defaults are all fine.
- 2. During the "Select and Install Software" uncheck the Graphical Environment and leave only the standard system
- 3. Continue with system defaults using Grub, reboot and log into the system as root user.
- 4. vi /etc/sources.list and comment out the cdrom listing
- 5. aptitude update && aptitude install sudo vim ssh-server gpm links2 zip unzip ("the basics")
- ** Setup nginx and php **
- 1. aptitude update && aptitude install nginx php5-cli php5-gd php5-cgi mysql-serverphp5-curl php5-imap php5-mysql spawn-fcgi
- 2. mkdir /var/www && chown -R www-data:www-data /var/www
- 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;"
- 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
- 5 ./etc/rc.local
- 6. service nginx start
- 7. echo "<?php phpinfo(); ?>" > /var/www/phpinfo.php
- 8. links2 http://localhost/phpinfo.php -- this will confirm that you indeed have PHP running
- ** Download SugarCRM, Install and Configure **
- 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.
- 2. Stop the fast-cgi service: killall php5-cgi
- 3. Start it back up: ./etc/rc.local
- 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
- 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
- 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