Need help?

Our experts have had an average response time of 11.7 minutes in August 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

err_connection_refused Plesk – Check the Configuration Files

by | Oct 5, 2021

Stuck with the error, err_connection_refused in Plesk? We can help you.

As part of our Server Management Services, we assist our customers with several Plesk queries.

Today, let us see how our techs fix this error for our customers.

 

err_connection_refused Plesk

Most often, we receive the error: err_connection_refused when we access the Plesk panel, due to some issue with the configuration files.

Moving ahead, let us see how our Support Techs fix this error.

  • Solution 1

1. Initially we log in to the server via SSH
2. Then we change the user to root
3. Later, we run the following commands on the terminal:

# plesk repair all

or

# plesk repair installation
  • Solution 2

In case the first didn’t work, we check the status of the server apache.

We need to check if it gives an error like this:

Loaded: loaded (/lib/systemd/system/apache2.service; enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─forking.conf
Active: failed (Result: exit-code) since Thu 2021-06-24 13:28:57 CEST; 56s ago
Process: 12279 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Jun 24 13:28:57 ocr-immowiin systemd[1]: Starting LSB: Apache2 web server…
Jun 24 13:28:57 ocr-immowiin apache2[12279]: Starting web server: apache2 failed!
Jun 24 13:28:57 ocr-immowiin apache2[12279]: The apache2 configtest failed. … (warning).
Jun 24 13:28:57 ocr-immowiin apache2[12279]: Output of config test was:
Jun 24 13:28:57 ocr-immowiin apache2[12279]: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Syntax error on line 5 of /etc/apache2/conf-enabled/zz010_psa_httpd.conf: Syntax error on line…
Jun 24 13:28:57 ocr-immowiin apache2[12279]: Action ‘configtest’ failed.
Jun 24 13:28:57 ocr-immowiin apache2[12279]: The Apache error log may have more information.
Jun 24 13:28:57 ocr-immowiin systemd[1]: apache2.service: control process exited, code=exited status=1
Jun 24 13:28:57 ocr-immowiin systemd[1]: Failed to start LSB: Apache2 web server.
Jun 24 13:28:57 ocr-immowiin systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

In that case,

1. First, we connect to the server using SSH

2. Then we change to user root

3. We then replace updated version of the file, PhysicalHosting.php to /usr/local/psa/admin/plib/Template/Variable/Domain/:

# wget https://plesk.zendesk.com/hc/article_attachments/4407408199954/PPPM-13232.tgz && tar -xvf PPPM-13232.tgz -C /usr/local/psa/admin/plib/Template/Variable/Domain/

4. Eventually, we rebuild the webserver configuration files:

# plesk sbin httpdmng –reconfigure-all
  • Solution 3

On the other hand, if the Plesk is Plesk onyx version then, we check the status of the service, sw-cp-server.

However, if it fails, we try to restart it.

# service sw-cp-server restart

sw-cp-serverd: nginx: [emerg] “ssl_ciphers” directive is duplicate in /etc/sw-cp-server/conf.d/ssl.conf:1
sw-cp-serverd: nginx: configuration file /etc/sw-cp-server/config test failed

During the restart, if we come across the above error, it is a software issue with internal # PPPM-3228

In order to fix this, we remove /etc/sw-cp-server/conf.d/ssl.conf file and restart sw-cp-server service:

# rm -f /etc/sw-cp-server/conf.d/ssl.conf
# service sw-cp-server restart

[Stuck with it still? We are available 24*7 for you]

 

Conclusion

In short, we saw how our Support Techs fix the Plesk error for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF