PHP Settings

Last update by Elxis Team
PHP Settings

PHP recommended settings for Elxis CMS

Elxis CMS is designed to run smoothly on any web server with the standard PHP installation. This document provides the recommended PHP settings.PHP 5.2 or newer (5.3 is recommended). Elxis will generate errors with older PHP versions like 5.1 or 5.0 and is not compatible at all with PHP 4.x.
PHP 6.x is also supported although it is not fully tested as by the time this document was written PHP 6.x was still under development.

PHP Libraries

The following libraries must be available in PHP:
- zib (provides zip support). On linux PHP must be complied by using the --enable-zip configure option. On Windows users need to enable php_zip.dll inside of php.ini.

Session

On start up Elxis sets some ini values using the '''ini_set''' function to make sure session support is well configured in php.ini. The recommended values for some other options are equal to the PHP's default.

- session.auto_start (default value = 0 disabled)
- session.gc_probability (default value = 1)
- session.gc_divisor (default value = 100)

PDO Support

Elxis uses PHP's built-in '''PDO''' library to access the database. PDO provides a database layer that allows us to work with different database types such as MySQL, ProstgreSQL, MsSQL, Oracle, SQLite, etc.

By default only the MySQL's and/or SQLite PDO driver is enabled in php.ini. To enable more PDO's drivers you have to edit the php.ini file and enable that driver. Off course that database type should be installed in your server to use the driver.

Linux/Unix Users

extension=pdo.so
extension=pdo_mysql.so
extension=pdo_pgsql.so
extension=pdo_sqlite.so

Windows Users

extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll

It has been read 5087 times
PHP Coding Style
Previous article
PHP Coding Style

You are free to copy, distribute and transmit the articles in this site for non-commercial purposes.
Creative Commons 3.0