12.6 C
Texas
angeloma
Senior Writer and partner

Install FengOffice on Debian 10

Hello, friends. In this post, you will learn how to install FengOffice Server on Debian 10.

According to the FengOffice website

Feng Office is an integrated suite of software designed to help your organization run better. Stay connected to your customers, meet project deadlines, find information faster and grow your organization.

This is a tool that can be very useful in professional environments. We also have a paid version with professional support and a community version that we can use in smaller projects.

Install FengOffice on Debian 10

The installation of FengOffice is possible using a server that has MariaDB, PHP, and of course, a server like Apache.

1.- Install Apache, PHP 7.1, and MariaDB on Debian 10

- Advertisement -

So, it is necessary to install Apache, MariaDB, and PHP 7.1 which is the version that will not give us problems with FengOffice.

So, we have to add the repository to install PHP 7.1

wget https://packages.sury.org/php/apt.gpg
sudo apt-key add apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list

And finally, install all the necessary packages:

sudo apt update
sudo apt install apache2 mariadb-server php7.1 php7.1-mysql php7.1-curl php7.1-json php7.1-cgi libapache2-mod-php7.1 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 php7.1-readline php7.1-imap php7.1-tidy php7.1-recode php7.1-zip php7.1-sq unzip catdoc xpdf ghostscript imagemagick wkhtmltopdf

Don’t forget to configure MariaDB with the mysql_secure_installation script

mysql_secure_installation

Define the root password and answer the questions indicated.

2.- Creting the new Database for FengOffice

Now it is necessary to create a new database together with a new user using FengOffice.

Open the MariaDB shell:

sudo mysql -u root -p

And it creates the database as well as the user and assigns the corresponding permissions:

CREATE DATABASE fengdb;
GRANT ALL PRIVILEGES ON fengdb.* TO 'fenguser'@'localhost' IDENTIFIED BY 'fengpss';
FLUSH PRIVILEGES;
EXIT;

You can change the values of the database, the user, and the password on your own. The password must be strong enough.

3.- Configure PHP before using FengOffice

To ensure the highest possible stability, it is recommended to make some changes to PHP. More than anything else we will increase the resources it can consume.

So, in the files /etc/php/7.1/cli/php.ini and /etc/php/7.1/apache2/php.ini set the following values.

max_execution_time = 300
max_input_time = 300
memory_limit = 512M
html_errors = Off
post_max_size = 250M
upload_max_filesize = 200M

As you are using nano, a very quick way to do this is to press the CTRL + W keys to enable the search and make everything easier.

When you make your changes, close the editor and apply your changes:

sudo systemctl restart apache2

4.- Download FengOffice on Debian 10

Now we can download FengOffice without any problem

To do this, execute the command wget

wget -O fengoffice.zip --no-check-certificate https://www.fengoffice.com/web/reference.php?dest=latest_version
--2021-01-07 19:38:45--  https://www.fengoffice.com/web/reference.php?dest=latest_version
 Resolving www.fengoffice.com (www.fengoffice.com)… 192.99.15.151
 Connecting to www.fengoffice.com (www.fengoffice.com)|192.99.15.151|:443… connected.
 HTTP request sent, awaiting response… 302 Found
 Location: https://github.com/fengoffice/fengoffice/archive/3.7.0.5.zip [following]
 --2021-01-07 19:38:46--  https://github.com/fengoffice/fengoffice/archive/3.7.0.5.zip
 Resolving github.com (github.com)… 140.82.121.4
 Connecting to github.com (github.com)|140.82.121.4|:443… connected.
 HTTP request sent, awaiting response… 302 Found
 Location: https://codeload.github.com/fengoffice/fengoffice/zip/3.7.0.5 [following]
 --2021-01-07 19:38:46--  https://codeload.github.com/fengoffice/fengoffice/zip/3.7.0.5
 Resolving codeload.github.com (codeload.github.com)… 140.82.121.10
 Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443… connected.
 HTTP request sent, awaiting response… 200 OK
 Length: unspecified [application/zip]
 Saving to: ‘fengoffice.zip’
 fengoffice.zip                                 [        <=>                                                                           ]  14.43M  9.06MB/s    in 1.6s    
 2021-01-07 19:38:48 (9.06 MB/s) - ‘fengoffice.zip’ saved [15128364]

And after the download is done, you can decompress the file with the command unzip

unzip fengoffice.zip

Move the generated folder to the Apache root directory.

sudo mv fengoffice-3.7.0.5 /var/www/html/fengoffice

And assign the necessary permissions to the folder. Also, make Apache the owner of the folder.

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

After this, create a new Virtualhost for FengOffice:

sudo nano /etc/apache2/sites-available/feng.conf

And add the following:

<VirtualHost *:80>
          ServerAdmin [email protected]
          DocumentRoot /var/www/html/fengoffice
          ServerName your-server.com

         <Directory /var/www/html/fengoffice/>
               Options FollowSymlinks
               AllowOverride All
               Require all granted
         </Directory>

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

</VirtualHost>

Replace the ServerName and ServerAdmin values with your own.

Save the changes and close the file.

Then, activate the new Virtualhost as well as the rewrite modules and headers

sudo a2ensite feng.conf
sudo a2enmod rewrite headers

And apply the changes by restarting Apache

sudo systemctl restart apache2

5.- Secure the installation with Let’s Encrypt

If you are going to use FengOffice on a server that will be accessible from the Internet then you should use HTTPS

There is nothing better than Let’s Encrypt to generate certificates for your domain quickly and conveniently.

So, install the packages with the following command

sudo apt install certbot python-certbot-apache

Now create and add the certificate with the following command

sudo certbot --apache -d your-domain.com

Follow the instructions and at the end, you will be able to access it using HTTPS

6.- Install FengOffice on Debian 10

Now you can access https://your-domain and you will see the following screen:

2.- Welcome screen
2.- Welcome screen

Afterwards, the installer will verify that the whole system meets the requirements.

3.- Environment checks
3.- Environment checks

Then you have to type the values of the database we have created as well as the credentials of the new user.

4.- Database configuration
4.- Database configuration

Next, you will see a screen indicating that the installation was successful and then you will have to create the new user by clicking Finish.

Create the new admin user with the credentials you want.

5.- Creating the new user
5.- Creating the new user

Then you will see the login screen

6.- FengOffice login screen
6.- FengOffice login screen

And now yes the administration panel.

7.- FengOffice running on Debian 10
7.- FengOffice running on Debian 10

Enjoy it.

Conclusion

FengOffice is used by many companies worldwide as a practical solution to collaborative environments. This application is quite good and easy to install as we have noticed today

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article