Installing SugarCRM on Rackspace Cloud (Mosso)

On the first attempt to install SugarCRM on Rackspace Cloud (Mosso) I ended up with this warning:
SugarCRMWizard_Warning

Ok, no problem, right? Where do I change this setting? Ok, it wasn’t obvious so I took the risk and continued anyway. What I got was the process halting on this screen:
SugarCRMWizard_stuck

Now it’s time to dig.

On the installation guide (link), I get this recommendation:

Memory Requirements
Increase the value of the memory_limit parameter in the php.ini file as follows:
-MySQL Server: 40M or higher
-MS SQL Server: 40M or higher

On Mosso, there is no php.ini file to edit. The helpful support people at mosso (live chat is great) recommended me to this article – How do I change the PHP memory limit value?

Ok, so .htaccess will do the trick. I am a little new to php, and I am using a mac which by default hides .htaccess files.

This forum thread here gives us some good optimism, and this blog post here tells us how to show .htaccess files on a mac (thanks for the nice hack, apple.)

If the link ever goes down, the terminal commands are:

So here is my final .htaccess file:

# BEGIN SUGARCRM RESTRICTIONS
RedirectMatch 403 (?i)^.*\.log$
RedirectMatch 403 (?i)/+not_imported_.*\.txt
RedirectMatch 403 (?i)/+(soap|cache|xtemplate|data|examples|include|log4php|metadata|modules)/+.*\.(php|tpl)
RedirectMatch 403 (?i)/+emailmandelivery\.php
RedirectMatch 403 (?i)/+cache/+upload
# END SUGARCRM RESTRICTIONS

php_value memory_limit 64M
php_value upload_max_filesize 100M
php_value post_max_size 100M

And after I put it into the application root, I get this success:

SugarCRM_Success

And, it works. It’s all worth it in the end

4 Comments

  1. Thanks, you save my day.
    I would like to translate to spanish with the appropiate credit to you and your blog post. Could I?
    Tks again

  2. admin says:

    Hello Juan,

    I am glad the post was helpful. Be my guest to translate to spanish!

  3. Ashish says:

    Thanks,
    This is really helpful.

  4. D says:

    Thanks. You are a life saver!