Configure PHP

View your PHP configuration

You can view the PHP configuration by running a php page with the line: echo php_info();

In BrowserCRM, such a page is provided at:

http://<your-browsercrm-path>/setup/help/phpinfo.php

How to change the PHP configuration parameters

There are various ways to change the PHP configuration, depending on your server and hosting setup.

the php.ini file

The PHP configuration is controlled by the php.ini file, on both Windows and Linux systems.

Change the parameter in the php.ini file. After editing the php.ini file, usually you must restart your web server for the changes to take effect.

Some hosts (including Bluehost) require you to add a custom php.ini in each directory where you require the custom values.

.htaccess file

If your host or configuration allows you to override values using a .htaccess file, then rename the file in the browsercrm directory named default.htaccess to just .htaccess and uncomment the appropriate line

Apache config

Add a php_value line in your Apache config file, optionally in a VirtualHost block

custom code

The least recommended solution, you can add custom code to the file prepend.inc which initialises every BrowserCRM page request. For example, you can add:

ini_set('memory_limit','128M');

PHP configuration parameters

It is required that error_reporting does not include E_NOTICE.

Some hosting companies run PHP in safe_mode. We cannot support BrowserCRM in safe_mode. See Recommended Hosting Companies

The following PHP parameter values are recommended:

error_reporting

It is essential that the error_reporting level does not include E_NOTICE.

error_reporting = 2039

or:

error_reporting = 6135
The above values are the binary representations of the following:
error_reporting = E_ALL & ~E_NOTICE

other parameters

memory_limit = 90M
#If you receive very large mails you can set memory_limit even higher, for example 128M.
#memory_limit = 128M

file_uploads = 1

max_execution_time = 90

upload_max_filesize = 8M 

Bluehost PHP configuration

Bluehost one of our recommended hosting companies requires a custom php.ini file in each directory where you require a custom configuration.

 
configure_php.txt · Last modified: 2010/05/17 23:06 by 203.97.219.50
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki