Search

No Access to PHP.INI use .htacess file

Using .htaccess to change php.ini values

 

Using .htaccess to get around altering php.ini

Quick 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


Leave a Reply

Testimonials

Your search engine optimization work really helped my marketing campaign.