PHP
Previous  Next

PHP configuration

When TradeControl is installed, all PHP settings should be correct. Below is a list of settings to check when TradeControl is installed:

* Make sure PHP 5.1.3+ is installed                    

* Make sure libxml2 is installed in FreeBSD        
* Set the execution timeout to about a minute+, depending on your server speed, max_execution_time = 60          

* The TC client can use a lot of memory while sorting and displaying the admin screens, make sure PHP has enough memory
memory_limit = 80M      
                        
* Enable the fopen wrapper (Fopen wrappers)     
allow_url_fopen = On     

* If possible, set sessions autostart to 1  
session.auto_start = 1   
* Enable cookies           
session.use_cookies = 1            

* Enable simpleXML support (enabled by default)                        
Install XSLT support                  

Installing libxml2 in FreeBSD
1. cd /usr/ports/textproc/libxml2
2. make install
3. ln -s /usr/local/include/libxml2/libxml /usr/local/include/libxml    

Installing libxslt  in FreeBSD
1. cd /usr/ports/textproc/libxslt
2. make install
3. ln -s /usr/local/include/libxml2/libxml /usr/local/include/libxml

Add