Home / How To / How to install Feng Office on Debian 10

How to install Feng Office on Debian 10



Feng Office is a free and open source project for online management and collaboration written in PHP. It is a web-based tool that integrates project management, client relationship management, financing and billing to help your organization function better. Feng Office provides a rich set of features including task management, time tracking, Gantt charts, knowledge management, calendar, time sheets, automatic alerts and reminders and many more. Feng Office has three editions, Community, Professional and Enterprise.

In this tutorial we will explain how to install Feng Office Community Edition on Debian 10 VPS.

Prerequisites

  • A server running Debian 1
    0 with at least 2 GB of RAM.
  • A valid domain name pointed to your server IP. In this tutorial we will use domain.com domain.
  • A root password is configured on your server.

Getting Started

Update your system with the latest version before starting. You can do this by running the following command:

  apt-get update -y 
apt-get upgrade -y

Once your system is updated, restart it to apply the changes.

Installing Apache and MariaDB

First you need to install the Apache web server and MariaDB server on your server. You can install them by running the following command:

  apt-get install apache2 mariadb-server -y 

After both packages are installed, launch Apache and MariaDB service and enable them to boot after system startup with the following command: [19659009] systemctl start apache2
systemctl start mariadb
systemctl enable apache2
systemctl enable mariadb

When you are finished, you can proceed to the next step.

Installing and configuring PHP

By default, Debian 10 comes with PHP 7.3. You need to install PHP version 7.1 in order for Feng Office to function properly.

First install the required packages with the following command:

  apt-get install software-features-common ca-certificate apt-transport-https -y 

Then add the SURY repository with the following command: [19659009] wget https://packages.sury.org/php/apt.gpg Chapter19459014achteapt-key add apt.gpg
echo "deb https: //packages.sury.org/php/ $ (lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.list??19659010??Next, update repository and install PHP with all necessary modules with the following command:

  apt-get install php7.1 php7.1-mysql php7.1-curl php7.1-json php7.1-cgi libapache2-mod-php7.1 php7.1-mcrypt php7.1-xmlrpc php7.1-gd php7.1-mbstring php7.1-common php7.1 -soap php7.1-xml php7.1-intl php7.1-cli php7.1-ldap unzip php7.1-zip wget php7.1-readline php7.1-imap php7.1-nice php7.1-recode php7 .1-sq-y 

After all packages are installed, open the php.ini file and adjust some settings:

  nano /etc/php/7.1/cli/php.inivud19659010 MinnesotaEdit the following lines: 

  max_execution_time = 300
max_input_time = 300
memory_limit = 512M
post_max_size = 128M
upload_max_filesize = 128M
html_errors = Off
display_startup_errors = Off
log_errors = On
output_buffering = Off

Save and close the file.

Then open another php.ini file:

  nano /etc/php/7.1/apache2/php.ini Thu 1919999010 Replace the following lines: 

  max_execution_time = 300
max_input_time = 300
memory_limit = 512M
post_max_size = 128M
upload_max_filesize = 128M
html_errors = Off
display_startup_errors = Off
log_errors = On
output_buffering = Off

Save and close the file. Then install other packages required by Feng Office with the following command:

  apt-get install catdoc xpdf ghostscript imagemagick wkhtmltopdf-y 

Once all packages are installed, you can proceed to the next step.

Configuring MariaDB for Feng Office

Next, you need to create a database and user for Feng Office.

First, log into the MariaDB shell with the following command:

  mysql -u root -p 

Enter your root password when prompted to create a database and user for Feng Office with the following command:

  MariaDB [(none)]> CREATE DATABASE fengdb; 
MariaDB [(none)]> PLEASE ALL PRIVILEGES ON * ON & # 39; fenguser & # 39; @ & # 39; localhost & # 39; IDENTIFIED OF & # 39; password & # 39; WITH GRANT OPTION;

Then flush the privileges and exit from the MariaDB shell with the following command:

  MariaDB [(none)]> FLUSH PRIVILEGES; 
MariaDB [(none)]> EXIT;

When you're done, you can move on to the next ep.

Download Feng Office

First, download the latest version of Feng Office with the following command:

  wget -O fengoffice.zip - no-check certificate https: //www.fengoffice. com / web / reference.php? dest = latest_version 

After downloading, unzip the downloaded file with the following command:

  unzip fengoffice.zip 

Then move the extracted directory to the Apache web root directory using the following command:

  etc. fengoffice -3.7.0.5 / var / www / html / fengoffice 

Then give the correct permissions to the fengoffice directory:

  chown -R www-data: www-data / var / www / html / fengoffice 
chmod - R 777 / var / www / html / fengoffice

When you are finished, you can proceed to the next step.

Configuring Apache for Feng Office

Next, you will need to create an Apache virtual host configuration file to serve the Feng Office application. You can do this with the following command:

  nano /etc/apache2/sites-available/feng.confospel19659010??Add the following lines: 

  
ServerAdmin [email protected]
DocumentRoot / var / www / html / fengoffice
Server name example.com


Alternative FollowSymlinks
AllowOrrride All
Require everyone granted


ErrorLog $ {APACHE_LOG_DIR} /error.log
CustomLog $ {APACHE_LOG_DIR} /access.log combined


Save and close the file when you are done. Then enable the Apache virtual host module, header and rewrite with the following command:

  a2ensite feng.conf 
a2enmod rewrite
a2enmod headers

Then start the Apache web service to apply the changes: [19659009] systemctl apache2

You can check the status of Apache web server with the following command:

  systemctl status apache2 

You should get the following output:

? apache2.service - Apache HTTP server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor setting: enabled)
Active: active (running) since Mon 2019-12-02 07:02:28 EST; 1min 3s ago
Document: https://httpd.apache.org/docs/2.4/
Process: 2329 ExecStart = / usr / sbin / apachectl start (code = terminated, status = 0 / SUCCESS)
Main PID: 2333 (apache2)
Details: 7 (limit: 1138)
Memory: 21.8M
CGroup: /system.slice/apache2.service
?? 2333 / usr / sbin / apache2-k start
?? 2334 / usr / sbin / apache2-k start
?? 2335 / usr / sbin / apache2-k start
?? 2336 / usr / sbin / apache2-k start
?? 2337 / usr / sbin / apache2-k start
?? 2338 / usr / sbin / apache2-k start
?? 2341 / usr / sbin / apache2-k start

02 dec. 07:02:28 debian systemd [1]: Launch Apache HTTP server ...
02 dec. 07:02:28 debian apachectl [2329]: AH00558: apache2: The server's fully qualified domain name could not be reliably determined with 127.0.1.
02 dec. 07:02:28 debian systemd [1]: Started Apache HTTP server.

Access the Feng Office Web Interface

Now open your browser and navigate to the URL http://example.com . You will be redirected to the following page:

 Feng Office Installer

Click the Next button. You should see the following page:

 Environmental check

Make sure all conditions are installed correctly. Then click the Next button. You should see the following page:

 Database Connection

Now enter your database name, database user name, password, select Core_dimensions and workspace modules and click the Next button. You should see the following page:

 Installation complete

Now click on Finish to complete the installation. You should see the following page:

 Login to feng

Enter your admin username, email address, password and click the Send button. You will be redirected to the Feng Office login page:

 Login form

Now enter your admin username, password and click the Login . You should see the Feng Office dashboard on the following page:

 Feng office dashboard

Secure Feng Office with Let & # 39; s Encrypt Free SSL

Feng Office is now installed and configured. Then it is recommended to secure it with Let & # 39; s Encrypt free SSL. To do so, you must install a Certbot client on your server. Certbot is a Let's Encrypt client that can be used to download and install an SSL certificate for your domain.

First add the Certbot repository to your server with the following command:

  add-apt-repository ppa: certbot / certbot 

Once the repository is added, update the repository and install the Certbot with the following command:

  apt-get update -y 
apt-get install certbot python-certbot-apache -y

Certbot is now installed and ready to use.

Run the following command to obtain and install the SSL certificate for your domain:

  certbot --apache -d example.com 

You will be prompted to enter your email address and accept the terms of use.

  Save debug log to /var/log/letsencrypt/letsencrypt.log
Selected plugins: Authenticator apache, Install apache
Enter email address (used for emergency renewal and security notifications) (Enter & # 39; c & # 39; to
cancel): [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Read the terms of use at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree to register on the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A) gree / (C) ancel: A

Then you have to choose whether to redirect HTTP traffic to HTTPS or remove HTTP access as shown below:

  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No Redirect - Make no further changes to the web server configuration.
2: Redirect - Makes all requests redirect to secure HTTPS access. Select this for
new websites, or if you are sure your site is working on HTTPS. You can undo this
change by editing your web server configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] and then [enter] (press & # 39; c & # 39; to cancel): 2

Select option 2 to download and install a free SSL certificate for your domain and hit Enter to complete the installation.

You can now safely access your Feng Office with the URL https://example.com .

Conclusion

Congratulations! you have installed, configured and secured Feng Office on Debian 10 server. You can now easily manage your project with the Feng Office web interface.


Source link