|
1 | | -# skillr |
| 1 | +Installation Steps: |
| 2 | +------------------- |
| 3 | +### Server Requirements |
| 4 | + |
| 5 | + ** PHP Version - 5.4+ (preferably 5.6) |
| 6 | + Extensions |
| 7 | + GD Version - 2.x+ |
| 8 | + PCRE Version - 7.x+ |
| 9 | + cURL version - 7.x+ |
| 10 | + JSON version - 1.x+ |
| 11 | + Freetype |
| 12 | + mbstring |
| 13 | + ffmpeg |
| 14 | + pdo_pgsql should enabled |
| 15 | + php.ini settings |
| 16 | + max_execution_time - 180 (not mandatory) |
| 17 | + max_input_time - 6000 (not mandatory) |
| 18 | + memory_limit - 128M (at least 32M) |
| 19 | + safe_mode - off |
| 20 | + open_basedir - No Value |
| 21 | + display_error = On |
| 22 | + magic_quotes_gpc = Off |
| 23 | + ** PostgreSQL Version - 9.3+ (preferably 9.3) |
| 24 | + ** Nginx OR Apache - 1+ (preferably 2+) |
| 25 | + Apache - Modules |
| 26 | + mod_rewrite |
| 27 | + mod_deflate (not mandatory, but highly recommended for better performance–gzip) |
| 28 | + mod_expires (not mandatory, but highly recommended for better performance–browser caching) |
| 29 | + Recommended Linux distributions: Centos / Ubuntu / RedHat |
| 30 | + |
| 31 | +### Used Technologies |
| 32 | + |
| 33 | + AngularJS 1.5.2 |
| 34 | + PHP |
| 35 | + PostgreSQL |
| 36 | + Twitter Bootstrap 3.1.1 |
| 37 | + |
| 38 | +### Initial Configurations |
| 39 | + |
| 40 | +* Files Setup |
| 41 | + |
| 42 | + Unzip product zip file and upload to your server. |
| 43 | + |
| 44 | +* Unzipped folder contains following directories |
| 45 | + |
| 46 | + - /client |
| 47 | + - /media |
| 48 | + - /sample |
| 49 | + - /script |
| 50 | + - /server |
| 51 | + - /sql |
| 52 | + - /tmp |
| 53 | + - .htaccess |
| 54 | + |
| 55 | +### Database setup |
| 56 | + |
| 57 | +'sql/course_with_empty_data.sql' - Database generation script, import the database through phpPgAdmin or command. |
| 58 | + |
| 59 | + psql -d your_db_name -f /your_server_path/sql/course_with_empty_data.sql |
| 60 | + |
| 61 | +'/server/php/config.inc.php' - For database and other configurations. |
| 62 | + |
| 63 | +( |
| 64 | + define('R_DB_HOST', 'localhost'); |
| 65 | + define('R_DB_USER', 'ENTER DB USER HERE'); |
| 66 | + define('R_DB_PASSWORD', 'ENTER DB PASSWORD HERE'); |
| 67 | + define('R_DB_NAME', 'ENTER DB NANE HERE'); |
| 68 | +) |
| 69 | + |
| 70 | +### Site logo setup |
| 71 | + |
| 72 | +There are few places where site logo are located. To change those logo, you need to replace your logo with exact name and resolution in the following mentioned directories. |
| 73 | + |
| 74 | + client/assets/img/logo.php - 100 x 34 |
| 75 | + client/assets/favicon.icon - 16 x 16 |
| 76 | + client/assets/apple-touch-icon.png - 57 x 57 |
| 77 | + client/assets/apple-touch-icon-72×72.png - 72 x 72 |
| 78 | + client/assets/apple-touch-icon-114×114.png - 114 x 114 |
| 79 | + client/assets/img/logo-600×315.png - 600 x 315 |
| 80 | + |
| 81 | +### File permission setup |
| 82 | + |
| 83 | +Make sure the permission as read, write and executable as recursively for the below directories. (Need write permission 777) |
| 84 | + |
| 85 | + - /media |
| 86 | + - /tmp |
| 87 | + - /client/assets |
| 88 | + - /server/php/plugins/Subscriptions/shell |
| 89 | + - /server/php/plugins/VideoLessons/shell |
| 90 | + |
| 91 | +### Cron setup |
| 92 | + |
| 93 | +Setup the cron with the following command |
| 94 | + |
| 95 | +* For VideoLessons |
| 96 | + |
| 97 | + */2 * * * * /$root_path/server/php/plugins/VideoLessons/shell/convert_video.sh 1>> /$root/tmp/logs/shell.log 2>> /$root/tmp/logs/shell.log |
| 98 | + |
| 99 | +* For Subscriptions |
| 100 | + |
| 101 | + */2 * * * * /$root_path/server/php/plugins/Subscriptions/shell/update_subscription_status.sh 1>> /$root/tmp/logs/shell.log 2>> /$root/tmp/logs/shell.log |
| 102 | + |
| 103 | +* How to Configure Site Settings |
| 104 | + |
| 105 | +Login with below admin credentials. |
| 106 | + |
| 107 | + Username: admin |
| 108 | + Email: productdemo.admin@gmail.com |
| 109 | + Password: agriya |
| 110 | + |
| 111 | +Go to users menu, and update your email and password. |
| 112 | + |
| 113 | +For site relating settings, got to settings menu and manage your settings. |
0 commit comments