To install CleverStyle Framework you have to have installation package, which has extension *.phar.php.
Put installer to the root directory of future website. And open this file from web browser.
- Installation package is CleverStyle_Framework.phar.php
- Placed in directory /web/my.website/public_html
- This directory corresponds to website domain my.website
- Open web browser and go to http://my.website/CleverStyle_Framework.phar.php
- Fill several fields and click Install
- That's it! You have installed CleverStyle Framework
If you are using Nginx - here is Nginx config sample with necessary configuration for installation and usage.
Alternative way to install CleverStyle Framework is by using command line.
Put installer to the root directory of future website. Open command line (terminal), move to website directory and run installation in such way:
php CleverStyle_Framework.phar.php -sn Web-site -su http://web.site -dn web.site -du web.site -dp pass -ae email@example.com -ap pass
To see all available parameters and details about they usage execute command without any parameters:
If after successful installation you go to website and get Internal Server Error - most likely you have disabled "rewrite" module in Apache2 web-server.
On Ubuntu you can enable it by typing in terminal:
sudo a2enmod rewrite
If you are using shared hosting - ask support to enable
To get system working allow CleverStyle Framework override some parameter by changing above line to:
If you get error like
Parse error: syntax error, unexpected '~' in ../../CleverStyle_Framework.phar.php on line 123
This means you have too old version of PHP, please upgrade at least to 7.0 (minimum supported at the moment by CleverStyle Framework) or better latest stable.