Using .htaccess to get around altering php.ini
Friday, January 29th, 2010 Sugar CRM Config Tricks by BrenigQuick little trick for bypassing php.ini with the htaccess file.
I have been working on installing SugarCRM. Wow that is a process in itself. I spent about 20 hours installing and re installing sugar to get the darn thing to work. I finally got the install to go in clean and actually function minus a few bugs i am working out. The software is great but a bit buggy. One of the issues I came across is all of the custom settings needed in the php.ini file. I have worked on a few types of servers and sometime as a web designer you don’t have access to the php.ini file. To get around this i use the htaccess file to change the php.ini limits. If you design in PHP on LAMP stacks its probably a good idea to learn a little htaccess.
Example Sugar crm need the memory limit set to 50m
you can change it in your php.ini or add the following line to your htaccess file
php_value memory_limit “50M”
Just an example but thought it might help someone trying to get around the php.ini file settings
I am not an expert at htaccess so you will have to research that stuff yourself
B
Cron Job Settings for Inbound Email
Friday, January 29th, 2010 Sugar CRM Config Tricks by BrenigI have been researching a few things on sugarcrm trying to get the inbound emails. I am posting my fixes for the environment i am in to help anyone who reads this blog.
I am hosted on media temple in a dedicated virtual account. I was having the automatic email check in the cron set to the original suggestion below. and found it wasn’t checking the for emails.
* * * * * cd /var/www/vhosts/mywebsitename.com/httpdocs/foldername; php -f cron.php > /dev/null 2>&1
after a bit of research i tried the following cron job line and it fixed the issue
***** wget -O /dev/null http://www.mywebsitename.com/foldername/cron.php
hope this helps someone
B