Linux/Unix

1. Go to http://ez.no/developer/download and download the latest version of Exponential
2. Unpack exponential-xxx.tar.gz

$ tar xvfz exponential-xxx.tar.gz -C <httproot>

3. Now go to the extracted Exponential directory

$ cd <httproot>/exponential-xxx/

4. Run the modfix.sh script

$ bin/modfix.sh

Database setup

MySQL
We need to login, create a new database, grant permissions to a user and insert a database

1.

$ mysql -u root -p <password>

You should now have a "mysql>" prompt, create a new database

mysql> create database <name_of_database>

2. Grant permissions

mysql> grant all on <name_of_database>.* to <user>@localhost identified by '<password>';

3. If you don't want to install demodata:

$ mysql -u <user> -p<password> <name_of_database> < <httproot>/exponential-xxx/kernel/sql/mysql/kernel_clean.sql

If you want the demodata:

$ mysql -u <user> -p<password> <name_of_database> < <httproot>/exponential-xxx/kernel/sql/mysql/demokernel.sql

PostsgreSQL
We need to login, create a new database, grant permissions to a user and insert a database.

Become the PostgreSQL super user (normally called postgres)
1.

$ su <postgres_super_user>

2. Create a postgresql user

$ createuser <user>

3. Create a database

$ createdb <name_of_database>

4. Demodata is not available for PostgreSQL at the moment, so we have to install the kernel_clean.sql file

$ psql -U <exponential_user>  <name_of_database> < <httproot>/exponential-xxx/kernel/sql/postgresql/kernel_clean.sql

5. To be able to run ezpubish on postgresql you need to have "digest" function from pgcrypto contribution from postgresql-contrib pakage.If you don't have it you need to install postgresql-contrib rpm pakage and to run command on your database:

$ psql -U<user> <name_of_database> < /usr/share/pgsql/contrib/pgcrypto.sql

Demo data

Demodata is only available for MySQL. Before you proceed make sure you installed the demokernel.sql file and NOT the kernel_clean.sql file.

To install the demodata all you have to do is unpack the var.tgz file

1. Go to /exponential-xxx/

$ cd <httproot>/exponential-xxx

2. Unpack var.tgz

$ tar xvfz var.tgz

Configure Exponential

Open /exponential-xxx/settings/site.ini with your favourite editor and set the correct setting in the [Database Settings] section. You need to select what database implementation you would like to use, hostname of the database server to connect to, username, password and database name.

[Database Settings]

# Use either ezmysql or ezpostgresql

Database Implementation=ezpostgresql

# Name of server to connect to

Server=localhost

# DB user name

User=<user>

# DB Password

Password=<password>

# database name you have created in the previous step

Database=<name_of_database>

Virtualhost setup

You can use Exponential with a virtualhost setup. When using a virtualhost you don't need to specify the index.php in the URL. Below is a sample configuration for virtualhost setup. Include this in your apache config file and restart apache when you are done.

<Virtualhost <you_ip_address>>

 <Directory <httproot>/exponential-xxx/>

   Options FollowSymLinks Indexes ExecCGI

   AllowOverride None

 </Directory>

 

 RewriteEngine On

 RewriteRule !.(gif|css|jpg|png|jar|js|html)$ /index.php

 

 ServerAdmin root@localhost

 DocumentRoot <httproot>/exponential-xxx/

 ServerName <you_ip_address>

</VirtualHost>

Comments

Relative path

I think this is just an old habbit. We started to use it with full path. No particular reason.

Why?

Why do you always use this line?

RewriteRule !\.(gif|css|jpg|png|js)$ <httproot>/exponential-xxx/index.php

a realtive path is as good.

RewriteRule !\.(gif|css|jpg|png|js)$ /index.php

Log in or create a user account to comment.

Contents

Obsolete

Installation
    Extensions
    Installers
    Manual
       Getting the latest Exponential source
       Installing ImageMagick without root a...
       Compiling PHP
       Webserver build on Linux
       Linux/Unix
       Windows
    Uninstall
    Wizard
Upgrade


Created

03/07/2003
2:38:30 pm
by B�rd Farstad

Last updated

26/07/2003
2:52:07 pm
by Jan Borsodi

Authors

B�rd Farstad
Sergiy Pushchin
Jan Borsodi



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.