Feng Office Community Edition is the basic Feng Office. It includes many collaboration and productivity features, such as: work space management, document management, notes, calendar, time sheet, automatic alerts and reminders, contact management, tags, basic reports, task management, workflow processes etc.
To install Feng Office on an Ubuntu virtual server follow the very easy steps described below.
We will be installing the current stable version of Feng Office which at the time of writing this tutorial is 3.4.0.17. This install guide assumes that Apache, MySQL and PHP are already installed and configured on your virtual server. Feng Office 3.4.0.17 requires:
- PHP 5.4 or higher with MySQL, GD, IMAP, curl and xmlrpc extensions. Also, PHP must have Magic Quotes GPC Off.
- Apache Web Server 2.x+ compiled with mod_rewrite module in order to use search engine friendly URLs.
- MySQL 5.1 or higher installed on your Linux virtual server.
Let’s start with the installation procedure. Download the latest version of Feng Office available at http://downloads.sourceforge.net/project/opengoo/fengoffice to the server and extract it using the following commands:
cd /opt/ wget -O fengoffice.zip http://downloads.sourceforge.net/project/opengoo/fengoffice/fengoffice_3.4.0.17/fengoffice_3.4.0.17.zip unzip fengoffice.zip -d /var/www/html/feng/
Feng Office requires a MySQL database, so create a new database on your server:
mysql -u root -p mysql> CREATE DATABASE fengdb; mysql> CREATE USER feng@localhost; mysql> SET PASSWORD FOR 'feng'@'localhost' = PASSWORD("your-password"); mysql> GRANT ALL PRIVILEGES ON fengdb.* TO 'feng'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION; mysql> FLUSH PRIVILEGES; mysql> quit
Do not forget to replace ‘your-password’ with a strong password.
Tune the MySQL configuration (/etc/mysql/my.cnf):
vi /etc/mysql/my.cnf
Add/modify the following lines:
key_buffer = 256M max_allowed_packet = 500M thread_stack = 256K thread_cache_size = 120 max_connections = 500 query_cache_limit = 1M query_cache_size = 64M slow_query_log = 1 slow_query_log_file = /var/log/mysql/mysql-slow.log long_query_time = 2 log_error = /var/log/mysql/error.log
Restart the MySQL Server for the changes to take effect:
service mysql restart
Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘feng.conf’, enable and edit it:
touch /etc/apache2/sites-available/feng.conf ln -s /etc/apache2/sites-available/feng.conf /etc/apache2/sites-enabled/feng.conf vi /etc/apache2/sites-available/feng.conf
Add the following lines:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/feng/ ServerName yourdomain.com ServerAlias www.yourdomain.com <Directory /var/www/html/feng/> Options FollowSymLinks AllowOverride All </Directory> ErrorLog /var/log/apache2/yourdomain.com-error_log CustomLog /var/log/apache2/yourdomain.com-access_log common </VirtualHost>
Edit the ‘/etc/php5/apache2/php.ini’ configuration file and add/modify the following settings:
magic_quotes_gpc = Off post_max_size = 128M upload_max_filesize = 128M memory_limit = 512M max_execution_time = 300 max_input_time = 300 display_errors = Off html_errors = Off display_startup_errors = Off log_errors = On output_buffering = Off
The web server user (www-data) needs to be able to write to config, cache, tmp and upload directories inside the ‘/var/www/feng’ directory on your server, so it can easily be accomplished by executing the following command:
chown www-data:www-data -R /var/www/html/feng/
Restart the Apache web server for the changes to take effect:
service apache2 restart
Open http://yourdomain.com in your favorite web browser, start the installation process and follow the easy instructions: enter your MySQL username, password and database name, then create an administrator account.
That is it. The Feng Office installation is now complete. You can now log in to the Feng Office administrator back-end and configure it according to your needs.
Of course you don’t have to do any of this if you use one of our Linux virtual server hosting services, in which case you can simply ask our expert Linux admins to install Feng Office for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.