Category Archives: Programming

Install OnlyOffice Docs with Nextcloud on the same Ubuntu Server

See the following Article to Install and Configure NextCloud and OnlyOffice Document Server on the same Linux Ubuntu server box, and integrate their document editing and cloud storage:

Install OnlyOffice Docs with Nextcloud on the same Ubuntu Server

The above referenced article containing the detailed installation and configuration instructions appears on InstallConfig.com.  Following is the preface summary:  

This Article applies to installing OnlyOffice docs on Ubuntu 22.04 LTS along side of NextCloud 27.0.0 with NextCloud being served via Apache2 webserver with SSL on port 443 and OnlyOffice being hosted from Nginx webserver on non-standard port 81, plus Apache2 being configured to proxy the OnlyOffice app from port 81 on Nginx to port 80 on Apache2 (and eventually port 443 on Apache2). Both the NextCloud Apache Virtual Host and the OnlyOffice Apache Virtual Host configurations will each have letsencrypt SSL certificates for their respective domains or subdomains, thus generating a separate Apache virtual host SSL.conf file for each subdomain which shall each be served by Apache on TCP Port 443. Nginx merely hosts and serves the OnlyOffice application (the OnlyOffice app) via TCP port 81 and does not need to operate with encryption and decryption via SSL certificates for the following reasons. With the Apache virtual host accessing the Nginx-hosted OnlyOffice App on localhost at port 81 and “proxying” OnlyOffice to the internet through Apache on port 443 with SSL certificate configured on the Apache virtual host ssl.conf configured for the separate OnlyOffice domain (or subdomain), there is no need to obtain an SSL certificate to bind on Nginx.

This article assumes that the apache2 webserver, php 8.1, MySQL, and NextCloud are properly installed, configured and enabled.

Adding Strict Transport Security Response Header in IIS

Make sure the web.config file in the root directory of your website is not set to read only on the properties page for that file.

Open Internet Information Services Manger.  Select the website where you want to add this Strict-Transport-Security response header.  Double click and select the Icon for HTTP Response Headers.

In HTTP Response Headers window, click on Add… on the right pane and type in Strict-Transport-Security for Name and max-age=63072000; includeSubDomains; preload for Value and click OK. The max-age value 63072000 is the number of seconds for the duration of two years. You need to enter a value of at least one year.

Source URL for this information:

https://www.itnota.com/setup-http-strict-transport-security-hsts-iis/

Exchange 2010 OWA Options or Inbox Rules Will Not Load – Server 2008 R2

When you are logged into Outlook Web Access (OWA) and you try to access “Options” such as “Create Inbox Rule” or “All Options,” you get redirect to an error message page that says, “Unexpected Error – An error has occurred and your request couldn’t be completed. Please try again.”

When you load (run) the performance monitor

Start > Run > c:\perfmon (Enter)

you may see this alert box for “Performance Monitor Control” when you select, or whenthe snap-in console is focused on, “Performance” in the left menu: 

 

WARNING:  DO THIS AT YOUR OWN RISK.  I DISCLAIM ALL RESPONSIBILITY FOR YOUR RESULTS AND/OR THE AFFECT ON YOUR SERVER SYSTEM AND REGISTRY.  I TOOK THE CHANCE AND IT SOLVED MY IMMEDIATE OWA PROBLEMS.

Rebuilding the Performance Counter Setting, using the lodctr /R command from a command prompt (opened with Run as Administrator) allows the Options pages in OWA to properly load:

On the server, click Start , in the search box, type, cmd.exe

In the search results shown above the search you performed, right-click on the “cmd.exe” result, and left-click on and to select the option to “Run As Administrator.”

When the command window opens, make sure that your command prompt shows:

C:\Windows\System32>

otherwise, enter this to change directory:

cd\Windows\System32 (Press Enter key on your keyboard)

Then enter the following command to rebuild the performance counter setting:

lodctr /R (Press Enter key on your keyboard)

It takes quite a while for the lodctr /r command to completely execute, and there is no progress indicator!  BE PATIENT AND LET IT RUN TO CONCLUSION.  The cursor just seems to hang after you enter the lodctr /R command and press (Enter).  Remember to also “resetiis” from the command window after successfully rebuilding performance counter setting. 

Here are a few articles that I found which address these issues and possibly your issues:

https://support.microsoft.com/en-us/help/2554336/how-to-manually-rebuild-performance-counters-for-windows-server-2008-6

https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/perfmon-problems-unable-to-add-counters/e90f231d-0014-457d-8b1f-5f342971597a?auth=1

https://coredumpelf.wordpress.com/2016/03/30/exchange-2010-sp1-ecp-wont-load