Testing Version
Postgres-specific part
- Download the Postgres SQL file
- Run
createuser -PE (framework_user_name)
as your postgres admin user - Run
createdb -O (framework_user_name) (database_name)
as your postgres admin user - Edit
/etc/postgresql/(version)/main/pg_hba.conf
and add permissions for your new user - Run
psql (database_name) (framework_user_name) < (postgres_sql_file)
MySQL-specific part
- Download the MySQL file
- Log into your database as an administrator
- Run
create database (database_name)
- Run
grant all privileges on (database_name).* to (framework_user_name)@'(host)' IDENTIFIED BY '(framework_user_password)';
Common part
- Download dummy and framework packages
- Extract the two tarballs
- Symlink framework-1.1-beta2 to framework
- Symlink framework to dummy-1.1-beta1/framework
- Copy framework-1.1-beta1 to dummy-1.1-beta/framework
- Cd to dummy folder
- Copy framework/vars.php to overrides/
- Edit overrides/vars.php, put in the db user, pass, and db that you configured in step 3, plus change the rest of the settings to what you’d like them to be.
Production Version
Here is the quickest way you can get the framework up and running on your system.
-
Download SQL
-
Create a database in MySQL
SQL:
create database framework_db;
-
Grant access to a user
SQL:
grant all privileges on framework_db.* to framework_user@'localhost' identified by 'framework_pass';
Be sure to use your own db, user, and password
-
Import the framework SQL Command line:
mysql -u framework_user -p framework_db < gtphoto2-framework.sql
-
Download dummy and framework packages
-
Extract the two tarballs
-
Symlink framework to dummy/framework
-
Cd to dummy folder
-
Copy
framework/vars.php
tooverrides/
-
Edit
overrides/vars.php
, put in the db user, pass, and db that you configured in step 3, plus change the rest of the settings to what you’d like them to be.