ez.no / exponential / documentation / obsolete / installation / manual / 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
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
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
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>
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>
Log in or create a user account to comment.
Comments
Relative path
B�rd Farstad
Saturday 12 July 2003 3:18:41 pm
Why?
Bj�rn Dieding@xrow.de
Saturday 12 July 2003 1:46:31 pm
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