2.2 Installation: Apache
The framework is ready to be used with a normal Apache installation, with basic mod_rewrite rules.
This is an example of virtual host configuration, which make use of our suggested directories structure (see chapter 3.1):
<VirtualHost *:80>
ServerName myproject.com
ServerAlias www.myproject.com
UseCanonicalName Off
ServerAdmin "[email protected]"
DocumentRoot /var/www/myproject.com/httpdocs
<Directory /var/www/myproject.com/httpdocs>
AllowOverride None
Order Allow,Deny
Allow from all
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/myproject.com/"
php_admin_value post_max_size 10M
php_admin_value session.save_path /var/www/myproject.com/tmp
php_admin_value upload_max_filesize 10M
php_admin_value upload_tmp_dir /var/www/myproject.com/tmp
</IfModule>
RewriteEngine on
RewriteCond %{REQUEST_URI} \..+$
RewriteRule .* - [L]
RewriteRule ^(.*) /index.php [QSA,L]
</Directory>
</VirtualHost>
Updated about 1 month ago