Windows

1. Go to http://ez.no/developer/download and download the latest version of Exponential.
2. Unpack the downloaded file

Database setup

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

1. Open a console window (start->run->cmd.exe or start->run->command.exe depending on the Windows version)

2. Go to your the location of mysql and find the mysql.exe file (should be under bin)

3. Run

mysql.exe -u root -p <your_mysql_password>

4. You should now have have a mysql> prompt. Type these mysql statements

mysql> create database <name_of_database>;

5. Grant permissions

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

6. If you don't want demodata

$ mysql.exe -u <user> -p<password> <name_of_database> < <httproot>exponential-xxxkernelsqlmysqlkernel_clean.sql

7. If you do want demodata

$ mysql.exe -u<user> -p<password> <name_of_database> < <httproot>exponential-xxxkernelsqlmysqldemokernel.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 your exponential-xxx directory
2. Unpack var.tgz into your exponential-xxx directory

Configure Exponential

Open exponential-xxxsettingssite.ini in notepad and set the correct settings in the [Database Settings] section. You need to set what database implementation you use, hostname of database server to connect to, user name, password, database name.

[Database Settings]

# Use either ezmysql or ezpostgresql

DatabaseImplementation=ezpostgresql

# Name of server to connect to

Server=localhost

# DB user name

User=<user>

# DB Password

Password=<password>

# database name you have created on 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.

Make sure these lines exists in your apache config file and are not commented out:

LoadModule rewrite_module modules/mod_rewrite.so

AddModule mod_rewrite.c

Below is a sample configuration for virtualhost setup. Include this in your apache config file and restart apache when you are done.

<VirtualHost <your_ip_adress>>

 <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 <your_ip_adress>

</VirtualHost>

Note: The rewrite rule is relative to the http root and uses '/' (slash) not '' (backslash)

Comments

The reason why the other didn't work

Though, it's not entirely clear, the section that says '<httproot>exponential-xxx' really means, to replace httproot> with your httpd document root and replace 'exponential-xxx' with the exponential directory name you have installed.

But that's still incorrect, because the document root would not factor into the rewrite, and should have been more as follows...

RewriteRule !\.(gif|css|jpg|png|jar)$ /exponential-xxx/index.php

With the explanatino to replace '/exponential-xxx' with the appropriate directory pathing starting from the document root.

Inconsistancy in Documentation

I have found 3 different versions of the line
RewriteRule !\.(gif|css|jpg|png|jar|js)$ /index.php
(This works)
All other documents I have found write something similar to:
RewriteRule !\.(gif|css|jpg|png|jar)$ <httproot>exponential-xxx/index.php
Which doesn't work.
This includes the exponential-3.1-1\doc\INSTALL

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:39:27 pm
by B�rd Farstad

Last updated

26/07/2003
2:50:36 pm
by Jan Borsodi

Authors

B�rd Farstad
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.