ez.no / exponential / documentation / obsolete / installation / manual / windows
1. Go to http://ez.no/developer/download and download the latest version of Exponential.
2. Unpack the downloaded file
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
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
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>
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)
Log in or create a user account to comment.
Comments
The reason why the other didn't work
New User
Friday 01 August 2003 12:49:35 am
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
New User
Friday 25 July 2003 8:56:29 pm
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