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
Website Builder
Wednesday, September 16th, 2009 Blog by BrenigWe have found a great deal on the web building your personal or business website. We have teamed up with Cory Technologies and helped them build their Website Builder.
Bottom line is that the website only costs $49.95 a month and its great great piece of software.
The web builder platform allows you to write your own content and have full creative control over the content of your website.
It even has a image upload and editor built right in. Anyone can have a beautiful Effective Website with web builder.
If you want to see what they have to offer just click on the link below.
PHP MySQL Database Connection Code
Thursday, August 27th, 2009 Blog by BrenigJust a simple little blog post. I wanted to put this out there for anyone who needs a simple connection code to get access to their database from a PHP script. Keep in mind this is for local host connect.
$host=”localhost”;
$username=”username for database”;
$password=”password for database”;
$databasename=”name of database”;
$dbh=mysql_connect (“$host”, “$username”, “$password”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“$databasename”);
hope this helps someone