Requirements
PHP
Required PHP extensions:
- pdo
- pdo_mysql
- mbstring
MySQL
Apache
- mod_rewrite
PHP
Required PHP extensions:
- pdo
- pdo_mysql
- mbstring
MySQL
Apache
- mod_rewrite
Site use cron job to send emails and clean email queue, delete unconfirmed registrations and clear old authorization tokens.
To make this possible activate cron job's below:
* * * * * curl https://your-site.com/cronjob/email_queue_send >/dev/null 2>&1
0 0,12 * * * curl https://your-site.com/cronjob/email_queue_clean >/dev/null 2>&1
0 0,12 * * * curl https://your-site.com/cronjob/clean_tokens >/dev/null 2>&1
0 * * * * curl https://your-site.com/cronjob/clean_unconfirmed_reg >/dev/null 2>&1
First part of the cron job (* * * * *) tell our server how often we want to run this specific cron job.
Next part, curl is a command how cron job will be executed, then there is location of the cron job script.
Last part is >/dev/null 2>&1 that tell to our server that we don't want to be notified to email when this specific cron job is executed.
After first log in to site open "administration panel".
As administrator you can change settings as you like and manage every part of the site.
Make new pages, manage profiles, delete comments, upload files and more...
Page templates are stored in app/views directory.
Custom templates can be created for every theme.
Copy files from app/views/default to app/views/your_theme - there will be your custom page templates.
Theme public files should be in public/themes/your_theme directory.
STATIC_UPLOAD_URL
To define cookie-free URL where uploaded files are it is required to put in .env file line written below:
STATIC_UPLOAD_URL=https://static-upload.your-cookie-free-url.tld
STATIC_THEMES_URL
To define cookie-free URL of theme files it is required to put in .env file line written below:
STATIC_THEMES_URL=https://static-themes.your-cookie-free-url.tld
DYNAMIC_REQUEST
Define static DYNAMIC_REQUEST in your script to tell CMS that this is dynamic request and don't count this like user opened page or new click.