-
Notifications
You must be signed in to change notification settings - Fork 0
Installation 05 Database Setup
We now need to use Doctrine to set up the tables (schema).
A lot of the tools in bin/ make use of bin/utils.inc which reads the application environment (APPLICATION_ENV) from public/.htaccess and this environment should correspond to the section in application/config/application.ini that you wish to use (e.g. production, development, etc).
Even if you plan to set these details in an Apache virtual host configuration, create this .htaccess file anyway so utils.inc can read the intended environment:
cp public/.htaccess.dist public/.htaccess
and then edit as appropriate.
If everything is set up correctly, the following (assuming you are in the bin/ directory) should created your database:
./doctrine2-cli.php orm:schema-tool:create
ATTENTION: This operation should not be executed in a production environment.
Creating database schema...
Database schema created successfully!
If it fails, please contribute to the Possible Errors section below.
Schema diagrams are available here.
Continue you installation with Setting up Apache
# ./doctrine2-cli.php orm:schema-tool:create
PHP Fatal error: Class 'Memcache' not found in /usr/local/ixp/library/OSS-Framework.git/OSS/Resource/Doctrine2cache.php on line 101
Fatal error: Class 'Memcache' not found in /usr/local/ixp/library/OSS-Framework.git/OSS/Resource/Doctrine2cache.php on line 101
Answer: Install the memcache extension module for PHP5 and try again.
Example (for Ubuntu/Debian):
apt-get install php5-memcache