In this tutorial, we will explain, how to install Feng Office Community Edition on Debian 10 VPS.if(typeof ez_ad_units!='undefined')ez_ad_units.push([[728,90],'howtoforge_com-medrectangle-3','ezslot_11',121,'0','0']);__ez_fad_position('div-gpt-ad-howtoforge_com-medrectangle-3-0');PrerequisitesA server running Debian 10 with minimum 2 GB of RAM.A valid domain name pointed to your server IP. In this tutorial, we will use example.com domain.A root password is configured on your server.Getting StartedBefore starting, update your system with the latest version. You can do it by running the following command:apt-get update -y apt-get upgrade -yOnce your system is updated, restart it to apply the changes.Install Apache and MariaDBFirst, you will 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 -yOnce both packages are installed, start Apache and MariaDB service and enable them to start after system reboot with the following command:(adsbygoogle=window.adsbygoogle[]).push();systemctl start apache2 systemctl start mariadb systemctl enable apache2 systemctl enable mariadbOnce you are finished, you can proceed to the next step.Install and Configure PHPBy default, Debian 10 ships with PHP 7.3. You will need to install PHP version 7.1 to work Feng Office properly.First, install the required packages with the following command:apt-get install software-properties-common ca-certificates apt-transport-https -yNext, add the SURY repository with the following command:if(typeof ez_ad_units!='undefined')ez_ad_units.push([[580,400],'howtoforge_com-medrectangle-4','ezslot_9',108,'0','0']);__ez_fad_position('div-gpt-ad-howtoforge_com-medrectangle-4-0');wget apt-key add apt.gpg echo "deb $(lsb_release -sc) main" tee /etc/apt/sources.list.d/php7.listNext, update the repository and install PHP with all required 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-tidy php7.1-recode php7.1-sq -yOnce all the packages are installed, open the php.ini file and tweak some settings:nano /etc/php/7.1/cli/php.iniChange the following lines:max_execution_time = 300max_input_time = 300memory_limit = 512Mpost_max_size = 128Mupload_max_filesize = 128Mhtml_errors = Offdisplay_startup_errors = Offlog_errors = Onoutput_buffering = OffSave and close the file.Next, open another php.ini file:if(typeof ez_ad_units!='undefined')ez_ad_units.push([[336,280],'howtoforge_com-box-4','ezslot_10',110,'0','0']);__ez_fad_position('div-gpt-ad-howtoforge_com-box-4-0');nano /etc/php/7.1/apache2/php.iniChange the following lines:max_execution_time = 300max_input_time = 300memory_limit = 512Mpost_max_size = 128Mupload_max_filesize = 128Mhtml_errors = Offdisplay_startup_errors = Offlog_errors = Onoutput_buffering = OffSave and close the file. Then, install other packages required by Feng Office using the following command:apt-get install catdoc xpdf ghostscript imagemagick wkhtmltopdf -yOnce all the packages are installed, you can proceed to the next step.Configure MariaDB for Feng OfficeNext, you will need to create a database and user for Feng Office.First, login to MariaDB shell with the following command:mysql -u root -pProvide your root password when prompt then create a database and user for Feng Office with the following command:MariaDB [(none)]> CREATE DATABASE fengdb; MariaDB [(none)]> GRANT ALL PRIVILEGES ON fengdb.* TO 'fenguser'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;Next, flush the privileges and exit from the MariaDB shell with the following command:MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> EXIT;Once you have finished, you can proceed to the next step.Download Feng OfficeFirst, download the latest version of the Feng Office using the following command:wget -O fengoffice.zip --no-check-certificate =latest_versionOnce downloaded, unzip the downloaded file with the following command:unzip fengoffice.zipNext, move the extracted directory to the Apache web root directory using the following command:mv fengoffice-3.7.0.5 /var/www/html/fengofficeNext, give proper permissions to the fengoffice directory:chown -R www-data:www-data /var/www/html/fengoffice chmod -R 777 /var/www/html/fengofficeOnce you are finished, you can proceed to the next step.Configure Apache for Feng OfficeNext, you will need to create an Apache virtual host configuration file to serve the Feng Office application. You can do it with the following command:nano /etc/apache2/sites-available/feng.confAdd the following lines: ServerAdmin [email protected] DocumentRoot /var/www/html/fengoffice ServerName example.com Options FollowSymlinks AllowOverride All Require all granted ErrorLog $APACHE_LOG_DIR/error.log CustomLog $APACHE_LOG_DIR/access.log combinedSave and close the file when you are finished. Then, enable the Apache virtual host, header and rewrite module with the following command:a2ensite feng.conf a2enmod rewrite a2enmod headersNext, restart the Apache web service to apply the changes:systemctl restart apache2You can check the status of the Apache webserver with the following command:systemctl status apache2You should get the following output:? apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2019-12-02 07:02:28 EST; 1min 3s ago Docs: Process: 2329 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Main PID: 2333 (apache2) Tasks: 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 startDec 02 07:02:28 debian systemd[1]: Starting The Apache HTTP Server...Dec 02 07:02:28 debian apachectl[2329]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.Dec 02 07:02:28 debian systemd[1]: Started The Apache HTTP Server.Access Feng Office Web InterfaceNow, open your web browser and navigate the URL . You will be redirected to the following page:Click on the Next button. You should see the following page:Make sure all the prerequisites are properly installed. Then, click on the Next button. You should see the following page:Now, provide your Database name, Database username, password, select Core_dimensions and Workspaces modules and click on the Next button. You should see the following page:Now, click on the Finish button to complete the installation. You should see the following page:Provide your admin username, email, password and click on the Submit button. You will be redirected to the Feng Office login page:Now, provide your admin username, password and click on the Login button. You should see the Feng Office dashboard in the following page:Secure Feng Office with Let's Encrypt Free SSLFeng Office is now installed and configured. Next, it is recommended to secure it with Let's Encrypt free SSL. To do so, you will need to 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 in your server with the following command:add-apt-repository ppa:certbot/certbotOnce 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 -yCertbot 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.comYou will be asked to provide your email address and agree to the terms of service.Saving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheEnter email address (used for urgent renewal and security notices) (Enter 'c' tocancel): [email protected]- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Please read the Terms of Service at -SA-v1.2-November-15-2017.pdf. You mustagree in order to register with the ACME server at -v02.api.letsencrypt.org/directory- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(A)gree/(C)ancel: ANext, you will need to choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access as shown below:- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1: No redirect - Make no further changes to the webserver configuration.2: Redirect - Make all requests redirect to secure HTTPS access. Choose this fornew sites, or if you're confident your site works on HTTPS. You can undo thischange by editing your web server's configuration.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2Choose option 2 to download and install a free SSL certificate for your domain and hit Enter to finish the installation.Now, you can access your Feng Office securely with the URL .ConclusionCongratulations! you have successfully installed, configured and secured Feng Office on Debian 10 server. You can now easily manage your project with Feng Office web interface. About Hitesh JethvaOver 8 years of experience as a Linux system administrator. My skills include a depth knowledge of Redhat/Centos, Ubuntu Nginx and Apache, Mysql, Subversion, Linux, Ubuntu, web hosting, web server, Squid proxy, NFS, FTP, DNS, Samba, LDAP, OpenVPN, Haproxy, Amazon web services, WHMCS, OpenStack Cloud, Postfix Mail Server, Security etc. view as pdf printShare this page:Suggested articles1 Comment(s)Add commentName *Email *tinymce.init( bold italic link",);CommentsBy: FengBang Reply Thank you so much for this, worked perfectly !Except for the php repository, the manual can be transferred one-to-one to Ubuntu 18.04.I used this PPA on Ubuntu:
How to Install Feng Office on Debian 10
Download File: https://urluso.com/2vKqAc
2ff7e9595c
Comments