Menu

Installation

Mehran Ziadloo

1. Create a host
Create a host / virtual host in Apache. For more information on how to do this, please refer to internet. Some good examples can be found here: http://httpd.apache.org/docs/2.2/vhosts/examples.html

2. Mention Zend Framework's path in PHP's include_path
Best way to do this is to modify your php.ini file. Here's an example if you want to do this in a .htaccess file:
php_value include_path .:/usr/local/zend/share/ZendFramework/library

3. Copy webroot to your host's folder
The files in Pomegranate's webroot should be copied into your just created host. There's a .htaccess in there, make sure that it is included as it's hidden by default.

4. Copy offweb folder into an arbitrary path
offweb folder is parent folder to all the codes for Pomegranate Framework. Even though its path is absolutely arbitrary, but it's recommended that it is placed by webroot. Please note that this folder is supposed to be out of the Apache's reach and not accessible to global access.

5. Modify the config file
There's a config file in offweb/config/config.ini which needs to be modified in order for system to work. The most important ones are paths to different folders and DB access information.

6. Modify .htaacess file in webroot
There's also a .htaccess file in webroot which you need to modify before you can run the examples. In that file you will find two PHP environmental variables named CONFIG_FILE and PACKAGE_ROOT which should point to the right directories.


MongoDB Logo MongoDB