Packrat is currently prototype/demonstration software. We are working on a new version, so stay tuned!
- PHP 7.2
- Symfony framework 3.4
- MySQL 5.7
- jQuery 1.12
TODO: needs specification for supported environments
Create website root Create empty MySQL database, and user account. Enable ldap extension and PDO extension, if not enabled, in php.ini
In addition to the repository code you will need the JSON schemas.
In the web root-
git clone [email protected]:Smithsonian/dporepo.git
In the /web path under the web root create a directory "json". Inside web/json-
git clone [email protected]:Smithsonian/dporepo-schemas.git
If you have a filled-out parameters.yml
file, move it into the app/config directory.
If not, you will be prompted during the installation to provide these settings.
The database settings must match the database and user account created in step Prepare website.
-
Change directory into the web root. Run-
composer install
-
If PHP runs out of memory you can brute-force it to use unlimited memory:
php -d memory_limit=-1 /usr/local/bin/composer install
-
TODO: Right now users have to disable the EDAN client within composer.json in order for install to work.
If you see PDO errors (can't find file), set unix_socket underneath doctrine:, dbal: within app/config/config.yml
If installation says it succeeded but you have no database, the most likely culprit is your version of MySQL doesn't support json fields.
- TODO: Temp cheat, change the 2 JSON fields to varchar(8000) within database_create.sql
You should now have access to all repo functions.