Quick Installation¶
Clone git repository or Upload codecanyon’s downloaded files and unzip
git clone https://angryboys@bitbucket.org/angryboys/phspark.git phspark
- Create a new database
windows-WinRAR: choose
extract here
instead of ‘extract to vendor/’linux:
unzip vendor.zip
Now, Open website URL in your browser and follow the next steps.
- If shows an internal sever error (500) then enable debug mode. For that open .env add set environment as below -
- Open .env file and file out line start with APP_ENV.. and change the value as below,
APP_ENV=development
- If any permission issue occured.
- Solution:
- Change permission
sudo chmod -R o+w /var/www/phspark.com or
sudo chmod -R 777 /var/www/phspark.com
- If any extension is missing i.e. intl
- Install
sudo apt-get update
sudo apt-get -y install php-intl
SEO URL setup - Edit the file:
.htaccess
[If phspark installation does not run on the main web folder make sure you folder it does run in ie. /sub-folder/phspark/]RewriteBase /sub-folder/phspark/
Connect to phspark marketplace - Open
.env
API_SECRET=[type API secret here]
Where get API Secret?
Go to https://phspark.com > register for a new account
Login with credentials
Go to ‘Manager Account’ page
Go to Sites > Add Site
You will find ‘API Secret’ in site details page
- Setup cronjobs: cronjob commands below
php cli app:run-scheduler
If any error occured then confirm the following file & folders are exist¶
(-) = File, (+) = Folder
- backend/config/sentinel.php
- backend/config.php
- config.php
- .env
- php.ini
- .htaccess
- phpstan.neon
+ storage
+ public
+ vendor
If any file/folder mentioned above is missing then follow the instructions below.¶
- Copy and rename 'backend/config/dist-sentinel.php' to 'backend/config/sentinel.php'
- Copy and rename 'backend/dist-config.php' to 'backend/config.php'
- Copy and rename 'dist-config.php' to 'config.php'
- Copy and rename 'dist-env' to '.env'
- Copy and rename 'dist-php.ini' to 'php.ini'
- Copy and rename 'dist-phpstan.neon' to 'phpstan.neon'
- Copy and rename folder 'dist-storage' to 'storage'
- Copy and rename folder 'dist-public' to 'public'
- Copy and rename 'dist-htaccess' to '.htaccess' and modify content as below,
- If vendor folder is missing then extract vendor.zip manually or run the command- ``composer install``
Post Installation Tasks¶
Change Password
Generate API token from user profile
Add API_SECRET on .env file
Change encryption key on .env file
Change country, timezone from user preference