+## PLG Application setup ## 1.set database credentails in common/config/main.local php db_name db password host name 2.call php init in server folder ,then choose 1 for production 3.call this command line for service migrations
- php yii migrate --migrationPath=service/migrations for download service
- php yii migrate --migrationPath=@yii/i18n/migrations/ for i18n
- php yii migrate for application 4.need mongoDb extension for php 5.after composer install rename vendor bower-asset folder set bower
+## PLG Admin panel setup ## for admin panel
- npm install
- run gulp
+## PLG service setup ## +
-
- Upload project to server.
-
- Initialize application
yii init.
- Initialize application
-
- Check database configuration in common/config/main-local.php.
-
- Check service parameters in service/config/parms.php. Check if all parameters belove are set serviceUid, serviceName, encryptKey, useragentXml, proxiesXml. Also make sure files useragentXml and proxiesXml exist and are readable.
-
- Check service configuration in service/config/main.php, service/config/main-local.php.
-
- Apply all migrations
yii migrate --migrationPath=service/migrations.
- Apply all migrations
-
- Make sure field uid in instances table has same value as serviceUid parameter (see service/config/paarms.php).
-
- Set value app_api_url in instances table.
-
- Add service to services table in web app DB.
-
- PHP 5.6.x or newer
-
- V8Js PHP extension (used in some content providers)
-
- MongoDb PHP extension (used in mongodb storage)
-
- SSH2 PHP extension (used in sftp storage)
-
- MySQL 5.6.33 or newer