...
Code Block |
---|
cd /var/www/core
svn co http://code.google.com/p/terena-core/trunk
|
Apache2 and PHP
Info |
---|
title | For Debian and Ubuntu users |
---|
|
Instead If you are on Ubuntu or Debian, instead of installing each of the software items below separately, it is sufficient to install only a small set of packages, as this will pull in most of the required dependencies. To install everything except Zend: Code Block |
---|
|
apt-get install php5-pgsql
h1. Apache2 web server
Designate a vhost to CORE and make sure it runs SSL.
Point the DocumentRoot to the 'public' subdirectory of the source, so in this case {{php-apc postgresql php5-gd
|
|
Designate a vhost to CORE and make sure it runs SSL.
Point the DocumentRoot to the 'public' subdirectory of the source, so in this case /var/www/core/trunk/public
PostgreSQL
sudo to postgres and create a new database user, and write down the password:
Code Block |
---|
|
}}
h2. PHP
h1. PostgreSQL
sudo to postgres and create a new database user:
{code:bash}
createuser -D -I -R -S -P core_user
|
Create an empty database owned by that user:
Code Block |
---|
|
createdb -O core_user -T template0 core_test_db
|
Info |
---|
Developer info: use this command to create an empty database with all definitions and transfer it directly to the dev host where the installer is: Code Block |
---|
| pg_dump -x --disable-dollar-quoting --attribute-inserts -O -s core | ssh cajones.org "cat - > /home/www/test.core.install/public/installer/sql/data.sql" |
|
info |
Change permissions
Change permission so that the following directories and files are writable by the webserver userweb server user. In most cases this is www-data:www-data
:
Code Block |
---|
|
cd var/www/core/trunk
sudo chown -v www-data:www-data cache data/logs data/mails languages uploads public/includes
sudo chown -v www-data:www-data public/.htaccess public/index.php application/configs/application.ini
|
...