On this Page
Requirements
Extract Files
Setup Database
Setup PHP Script
Upload Files
Requirements
Before installing Photogram PHP Script, please ensure that your server meets the following minimum requirements.

- PHP ( `7.1, or higher` )
- Database ( `MySQL 5.7+` or `PostgreSQL 9+` )

Extract Files
Extract the zip file that you've downloaded from CodeCanyon on your local device. In extracted contents you'll find below listed folders which will be used in upcoming steps for installing script.

- Database: This folder contains SQL assets that will be used for setting up database.
- PHP Script: This folder contains PHP script that will be uploaded on your web server.

Setup Database
Photogram support both MySQL and PostgreSQL databases. Note that you only need one database and therefore you've setup either MySQL or PostgreSQL(whichever is available on your server).
Setup MySQL Database

1. Create a new MySQL Database.
2. Create a new MySQL username and password.
3. Import `MySQL.sql` into your MySQL database.
4. Open `config.php` file from the PHP Server folder and update following settings.
   - Set Database username, password and Database name to the ones you created in previous steps:
   - Set database type to `DATABASE_TYPE_MYSQL`:

Setup PostgreSQL Database

1. Create a new PostgreSQL Database.
2. Create a new PostgreSQL username and password.
3. Open `PostgreSQL.sql` file(inside Database folder) and replace `DATABASE_USERNAME` with username created in previous step.
4. Restore/Import `PostgreSQL.sql` into your PostgreSQL database.
5. Open `config.php` file from the PHP Server folder and update following settings.
   - Set Database username, password and Database name to the ones you created in previous steps:
   - Set database type to `DATABASE_TYPE_POSTGRESQL`:

We can't go through each step in more detail since each hosting provider provides different set of tools. If you need help, feel free to contact us via this contact form.
Setup PHP Script
Open `config.php` from the PHP Script folder and configure following settings.

1. Set Installation URL to the location where you want the product to be installed at.
2. Save changes.

Upload Files
After completing configuration, last step is to upload files.

1. Upload all files from `PHP Script` folder to your web server
2. Set the chmod to `755`, `775` or `777` (depending on the server configuration) to the uploads folder and its subfolders

Need help?
If you've questions or you need help, feel free to contact us.
On this Page
Requirements
Extract Files
Setup Database
Setup PHP Script
Upload Files