OqilaCMS Installation
- $ cd {path of installation folder}
- $ git clone https://{bitbucket-username}@bitbucket.org/fazliddin2014/oqilacms.git {folder with project name}
- Create database for project at phpMyadmin
- Import /{folder with project name}/protected/migrations/oqilacms.sql
- $ cd /{folder with project name}/protected/config/
- $ cp db.php.dist db.php
- Edit db.php, change db.name, db.user, db.password
- $ cp main-local.php.dist main-local.php
- $ cp params-local.php.dist params-local.php
- Create file with name DEBUG at /{folder with project name} (This enables debug mode)
- $ chmod 0777 -R /{folder with project name}/protected/runtime (Linux only, this opens write access to that folder)
- $ chmod 0777 -R /{folder with project name}/public/assets
- Apache's VirtualHost's DocumentRoot should point to /{folder with project name}/public folder
- Login to admin: http://{your-domain}.loc/backend login: admin password: 12345678
Apache configuration on Linux
- Create file /etc/apache2/sites-available/{folder with project name}.conf
- Put this on that file
<VirtualHost *:80>
ServerName {your-domain}.loc
ServerAlias www.{your-domain}.loc
ServerAdmin webmaster@localhost
DocumentRoot /var/www/vhosts/{folder with project name}/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
- $ sudo a2ensite {folder with project name}
- $ sudo service apache2 restart
- Add following to /etc/hosts file
127.0.1.1 {your-domain}.loc