Documentation


SEARCH

TABLE OF CONTENT

    1. Getting started 2. Basic concepts 3. Request dispatching 4. Context container 5. Dual MVC 6. Component model: 7. Security 8. Configuration 9. Session handling 10. I18n 11. Cache 12. Logging 13. Error handling 14. Advanced Topics 15. API reference

      Tutorials: Frequently Asqued Questions

      See also:


      System requirements

      Configuring your server to execute Lion

      Table of Contents

      System Requirements

      Since Lion is a web application framework built on top of PHP, you will need a web server (i.e. Apache) and PHP installed.

      PHP Version

      We recommend using PHP 5.2.1 or greater in order to optimize the framework performance since this distribution includes some native modules which accelerate the execution.

      However, if needed, Lion is capable of working with PHP 5.1.6 distribution or greater.


      PHP Configuration

      In order to make Lion's reverse AJAX work correctly, you may want to disable zlib.output_compression. However, you can use Apache mod_deflate or its equivalent to compress output other than AJAX responses.

      We also recommend changing output_buffering to off in your php.ini file in order to make reverse AJAX to work propertly. For example, reverse AJAX is used by the asynchonous file uploader in order to refresh the upload progress bar.
      However, it's important to note that this is not a requirement to make the framework function normally.

      If you are using the php_domxml extension, we recommend you disabling it in order to make the framework work properly since Lion uses some PHP-native XML classes which come into conflict with some classes of this module.


      PHP Recommended Extensions

      If you use APC (Alternative PHP Cache), we recommend enabling the apc.rfc1867 directive in order to make the asynchonous file uploader component function normally. This component uses the APC module to update a progress bar while uploading files.
      Note: APC is not a requirement to make the Lion framework work and it may be part of future PHP distributions (i.e. PHP6).


      Apache mod_rewrite (or equivalent)

      Lion needs the Apache mod_rewrite (or equivalent) enabled in order to route all the requests to the framework properly.

      To configure mod_rewrite in Apache properly, make sure that:

      • You have installed and enabled the Apache mod_rewrite module in your server.
      • You have enabled the AllowOverride directive in your apache configuration (httpd.conf).
      • You have modified the correct Apache configuration file located in the directory where Apache is reading the configuration from.
        Take into account that some configurations allow either one configuration file per user or per domain.