(c) 2013-2016 by facileManager project members. facileManager is free software released under the terms of GNU GPL v2. Please see LICENSE for license.
Official site: http://www.facilemanager.com
Official git repository: https://github.com/WillyXJ/facileManager
This document describes the necessary steps to install facileManager and get it to a working state - it shouldn't take long at all!
There are two parts: the server and the client(s). The server is where the web interface will run from. It is not required to host the MySQL database on the same server as the web interface. The client runs on the servers to manage.
Please note: Internet Explorer is not supported - it's too tiresome.
facileManager (server) requires the following:
-
PHP 5.2.0 or later with MySQL support
-
MySQL 5.0 or later
- Required MySQL user privileges on the database include
SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, LOCK TABLES
-
A working webserver (httpd) with mod_rewrite.so enabled
-
facileManager-core
-
JavaScript enabled in your web browser
fM client requires the following:
- ISC BIND 9.3 or later (for the fmDNS module only)
- PHP 5.0 or later
- A running web server if using http(s) update methods
- The install script supports the following web servers:
- httpd
- The install script supports the following web servers:
- Move the contents of the server directory to your document root. (ie /var/www/html/facileManager/)
- Point your web browser to http://example.com/facileManager/ or your virtualhost if you set one up (ie http://facileManager.example.com).
- Follow the installation wizard to setup your database.
The following steps need to be performed on vanilla installations of certain Operating Systems to allow .htaccess files to be used.
Edit /etc/apache2/sites-enabled/default and change 'AllowOverride None' to 'AllowOverride All' under <directory /var/www/> and reload apache.
Edit /etc/httpd/conf/httpd.conf and change 'AllowOverride None' to 'AllowOverride All' under <Directory /var/www/html> and reload apache.
-
Move the contents of the client directory to /usr/local/ on your client servers to manage. (Note: client files from the core (or complete) package are also required.)
sudo mv facileManager/client/facileManager /usr/local/
-
For each module you wish to use, run the following to complete the client installation.
sudo php /usr/local/facileManager/<module_name>/client.php install
This section describes the necessary steps to upgrade facileManager and get it to a working state - it shouldn't take long at all!
- Make a backup of your database using the built-in tool via the UI or manually.
- Make a backup of your config.inc.php file.
- Delete your old facileManager files.
- Extract/upload the new files from the server directory.
- Copy your backup of config.inc.php to the document root. (ie /var/www/html/facileManager/)
- Login as a super-admin to facileManager and follow the wizard to upgrade your database.
- Once fM is upgraded, you will be redirected to the admin-modules page where you can upgrade your modules individually.
-
Make a backup of your config.inc.php file.
cp /usr/local/facileManager/config.inc.php .
-
Move the contents of the client directory to /usr/local/ on your client servers to manage.
sudo mv facileManager/client/facileManager /usr/local/
-
Restore your backup of config.inc.php to /usr/local/facileManager.
sudo mv config.inc.php /usr/local/facileManager
Alternatively, since v1.1, you can update the clients through the UI (servers page) or by running the following on the clients:
sudo php /usr/local/facileManager/<module_name>/client.php upgrade
The client files have been consolidated and standardized starting with versions 2.2 and 1.3 of fmDNS and fmFirewall respectively which cleans up some files and a lot of code to put the project in a better position going forward. However, this does require a manual upgrade of the client using the normal steps above and these additional steps.
When upgrading from fmDNS <= 2.1.x or fmFirewall <= 1.2.x, remove the old client files with the following:
sudo rm -rf /usr/local/facileManager/*/{dns,fw}.php /usr/local/facileManager/*/www
You MUST also update the following based on your client's update method.
-
Cron - update root's crontab to use client.php instead of dns.php or fw.php
-
SSH - update your sudoers file to use client.php instead of dns.php or fw.php
-
HTTP - update your sudoers file to use client.php instead of dns.php or fw.php
and update the module symlink in your document root to use the www directory from the core files instead of the module directory. For example: sudo rm /var/www/html/<module_name> sudo ln -sf /usr/local/facileManager/www /var/www/html/fM
Alternatively, you can run the reinstall script which will ensure the proper files and configs will be in place, but it will not remove the old sudoers entries and document root symlinks.
sudo php /usr/local/facileManager/<module_name>/client.php reinstall
For a simple copy/paste manual fmDNS client upgrade process, follow these steps (these can be modified for other fM modules):
cd ~
cp /usr/local/facileManager/config.inc.php .
sudo rm -rf /usr/local/facileManager
wget http://www.facilemanager.com/download/facilemanager-core-2.2.tar.gz http://www.facilemanager.com/download/module/fmdns-2.2.2.tar.gz
tar zxf facilemanager-core-2.2.tar.gz
tar zxf fmdns-2.2.2.tar.gz
sudo mv facileManager/client/facileManager /usr/local
rm -rf facile* fmdns*
sudo mv config.inc.php /usr/local/facileManager
sudo php /usr/local/facileManager/fmDNS/client.php reinstall