How to install corebos
Server Requirements:
Apache 2.x or above.
MySQL 5.x
PHP from 5.4.x to 7.0.x. PHP 7.x is recommended.
Nethserver 7.x
Install the packages
MySql:yum install nethserver-mysql
PHP EXTENSIONS:yum install php-gd.x86_64 php-imap.x86_64 php-xml php-mysql
Git : yum install git
Install
git clone https://github.com/tsolucio/corebos /var/www/html/corebos
Edit the php paramters
config setprop php MaxExecutionTime 600
signal-event nethserver-php-update
Creating MySql User
The following commands will create a database called corebos70 and a user called corebosdb
with a password corebosdb
/usr/bin/mysql --defaults-file=/root/.my.cnf -e "CREATE DATABASE IF NOT EXISTS corebos70;"
/usr/bin/mysql --defaults-file=/root/.my.cnf -e "grant all on corebos70.* to 'corebosdb'@'localhost' identified by 'corebosdb';"
/usr/bin/mysql --defaults-file=/root/.my.cnf -e "FLUSH PRIVILEGES"
File Permissions
Provide read-write access to the following files and folder (recursively):
chown apache:apache /var/www/html/corebos/{config.inc.php,tabdata.php,install.php,cache}
chown -R apache:apache /var/www/html/corebos/{storage/,user_privileges,/Smarty/cache/,Smarty/templates_c/,modules/,cron/modules/,test/vtlib/,backup/,Smarty/templates/modules/,test/,logs/,modules/Webmails/tmp/,install/,cache/images/,cache/import/}
Restart apache
systemctl restart httpd
ACCESS TO COREBOS
http://FQDN/corebos
At the first access corebos will run the configuration wizard just follow the instruction
But you have to pay attention to:
Database hostname, should be set to “localhost”
Don’t chech the checkbox “Create Database (Will drop if the database exists)”