Catlair Download Setup Manual
EN RU Console

Install and setings

Operation system

Any actual version of Linux is used as an operation system. Serviceability was tested on Ubuntu & Debian.

Installation is recommended on "pure" server. If you have any web application on the server, you need to undestand what are you doing, and undestand consequences of your actions for your applications.

Software installation

In the begining we need to update operation system and install following software nginx, php, 7z, curl. sudo apt -y update sudo apt -y upgrade sudo apt -y autoclean sudo apt -y install nginx nginx-extras php-common php-cli php-fpm php-gd php-xml php-mbstring p7zip curl

After that, we check servisability of the web server, going to adress http://[сервер]. After a successful installation, we can get information about nginx.

NGIX settings

We have to modify the confugure file /etc/nginx/sites-enabled/default. sudo nano /etc/nginx/sites-enabled/default

The line in section server key index must look like this: index catlair/site/site_default/php/cl.php

Futher we uncomment the section: location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; }

Restart the nginx: sudo service nginx restart

If nginx is restarted, we can see the information about its version on the web page.

PHP settings

Detaled recommendation about instalation and settings are located here.

It is necessary to change this configure file /etc/php/7.2/fpm/php.ini. sudo nano /etc/php/7.2/fpm/php.ini It is necessary to change parametes: memory_limit = 128M post_max_size=2000М upload_max_filesize=200M max_file_uploads = 100 Later it makes sence to change these parameters under your specific needs.

It is necessary to restart php after parameters changing. sudo service php7.2-fpm restart

Installation Catlair

Скачиваем текущий релиз, распаковываем его и удалем архив. sudo curl '' -o /tmp/catlair.7z sudo 7z -y x /tmp/catlair.7z -o/ sudo rm /tmp/catlair.7z

Start descripts reindexate: sudo php /var/www/html/catlair/site/site_default/php/descript_index_cli.php '*' site_default language_ru clear После завершения процедуры будут построены поисковые индексы.

Запускаем раздачу прав: sudo /var/www/; Данная процедура выполняет раздачу прав к новым папкам и файлам /var/www/html/* для пользователя вебсервера.

После выполнения указанных действий у вас есть копия Catlair. Обратившись по адресу http://localhost с локальной машины вы можете открыть веб страницу.

В случае если вы работаете с удаленного компьютера открыть страницу Catlair на вашем сервере возможное перейдя по ссылке http://[ваш сервер]?/domain=localhost

Create sites

Change current directory. cd /var/www/html/catlair/site/site_default/php

You have site default_site. Do not recommende to change dafault site, becouse you will loose a possibility of updates. You have to crate new site with next command. sudo -u www-data php cl.php --call=Site.Create --IDSite="first_site" --IDLang="language_en" --Caption="First site"

You must bind one or more domains with you site. You can set IDDomain to other. For example: sudo -u www-data php cl.php --call=Domain.Create --IDSite="first_site" --IDDomain="localhost" --IDLang="language_en"

You have to create administration account for your site. sudo -u www-data php cl.php --call=Account.Create --IDSite="first_site" --IDLang="language_en" --IDLogin="administrator"

And after that you have to change password. sudo -u www-data php cl.php --call=Account.SetPassword --IDSite="new_site" --IDLogin="administrator"

Now you site must aviable on adress http://localhost/?&dmn=localhost. You can open Consle.

Installation is compleeted.

Catlair is licensed under the GPLv3. Its components, labeled GPLv3, are distributed by GPLv3.