# How to install

## **Server Requirements**

* PHP >= 7.3
* openssl
* pdo
* gd
* tokenizer
* JSON
* bcmath
* exif
* mbstring
* xml
* ctype
* cURL
* zip

## Step by step install

**Step 1:** Unzip and upload only the contents of **onepopups.zip** to the **root directory** of your hosting server- Ex: **/home/username/public\_html/**. Which will make it reachable as follows: **<http://yourwebsitename/>**

**Step 2:** Make sure your domainname points to the **public** folder only. So in your settings, path for your domain must be: htts\://yourwebsitename/public. In case if you don't point your domain to public folder, we also include custom **.htaccess** file in the root directory for your convenience, it will automatically point requests to **public** directory in the script.

**Step 2a:** **Warning!** Some hosting platform hide files starting with **'.' (hidden files)**, so make sure that in your settings of your cPanel you enable this option.

**Step 2b:** **Warning!** If your local Windows/Linux/MaxOS environment does not show hidden files, and you are planning to upload the script via FTP, make sure you enable viewing hidden files locally first even before unzipping, otherwise you will not upload all hidden files such as .env/.htaccess to your FTS server simply because your local environment will not see them.

**Step 3:** Everything inside of the **public** folder is accessible by anyone, so make sure you don't put anything sensitive there such as google json keys, etc.

**Step 4:** After uploading all files and making sure that domain name has proper path set, create **Mysql Database** and proper user in case if you don't already have one, to access this database. You can either create manually via your phpMyAdmin panel or use **phpMyAdmin Wizard** in your **cPanel** to create one.

**Step 5:** Now you are ready to run the install script. Go to **<https://yourwebsitename/install>**

**Step 6:** This will start the installation process.

**Step 7:** Make sure required php packages are installed and enabled on your server. Click **Next** to continue.

**Step 8:** Make sure listed folder are publicly accessbile. Click **Next** to continue.

**Step 9:** For database configuration, enter your newly created database credentials. DB Server: **localhost**, unless your database resides somewhere else. MySQL DB Port: **3306**, unless you are using some other port.

**Step 10:** On the final step enter your **Envato License** key for this product and also your **Envato Username**. In case if you don't know where to get your license, you can check [this article](https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-).

**Step 11:** After installation is complete, you are now fully ready to start. The default login name is: **<admin@admin.com>** and default password **<admin@admin.com>**  You can change it after loggin in in your profile settings.
