Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Some documentation updates

git-svn-id: svn:// 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
commit c51316c68436b0e8a007a06786d7eac568af702f 1 parent b7e9718
taher authored
Showing with 27 additions and 4 deletions.
  1. +23 −2 doc/cookbook_php.txt
  2. +4 −2 doc/cookbook_sugarcrm.txt
25 doc/cookbook_php.txt
@@ -98,7 +98,6 @@ image::media/images/admin_handler_fastcgi2.png[Fastcgi]
Multi-site support
An even more advanced scenario would be one that required custom PHP
settings for each virtual host.
@@ -112,6 +111,9 @@ refer to PHP's documentation. It is the file located in
'/etc/php5/cgi/php.ini' on Debian/Ubuntu systems,
'/opt/local/etc/php5/php.ini' on MacPorts, etc.
+PHP configuration file
You will have to customize and specify different `php.ini` files for
each information source. A nifty trick to do this and provide custom
environment variables is by wrapping the required parameters in a
@@ -142,7 +144,6 @@ Assuming that two customized information sources were required, simply
specifying different interpreters for each one of them would suffice.
|VHost | Interpreter
@@ -163,6 +164,26 @@ source!2!nick = php-vhost2
source!2!interpreter = /usr/local/bin/php-cgi -c /usr/local/etc/php/php-vhost2.ini -b
+PHP configuration variables
+The variables specified in `php.ini` can also be overridden setting a
+custom environment variable on a per-virtual-server basis.
+Just access the PHP rule of your virtual server, `Extensions php`, and
+select the `Handler` tab to be able to set a custom environment
+variable for the `FastCGI` handler.
+You will need to provide the values in the following format:
+|Name | Value
+| PHP_ADMIN_VALUE | `memory_limit=128M`
+This will set the memory limit for the virtual server only. Any
+`php.ini` variable can be set using this procedure.
PHP upload limits
6 doc/cookbook_sugarcrm.txt
@@ -133,14 +133,16 @@ your system, each one for its own PHP: the CGI version, the CLI,
etc. Cherokee uses PHP through FastCGI, so edit that one with your
favorite editor.
-.Editing with Emacs
+.Editing the PHP configuration
-# emacs /etc/php5/cgi/php.ini
+# editor /etc/php5/cgi/php.ini
.Required adjustments in this case
memory_limit = 40M
upload_max_filesize = 8M

0 comments on commit c51316c

Please sign in to comment.
Something went wrong with that request. Please try again.