Bobcares

Apache is Functioning Normally Fix DirectAdmin

by | Aug 29, 2022

Let us take a closer look at the error, apache is functioning normally fix DirectAdmin. At Bobcares our Server management support services can give you a detailed overview of the error and its causes.

error: getting the apache page. Apache is functioning normally

apache is functioning normally fix directadmin

The error might trigger based on one of the causes given below:

Cause 1

In this case, if apache is functioning normally fix DirectAdmin; the value the domain resolves to *at your computer* is not matching the value apache is using. Go to Admin Level -> Show All Users, look for the domain, and see what IP it’s configured to use.

The next step is to determine what IP address the domain resolves to. It is advisable to use an external server, such as dnsreport.com or other free lookup services, to find the IP address to which the name resolves. These two IP addresses must match.

Please note that if we have recently updated the IP of the domains, we may have to wait up to 4 hours for the new IP to propagate to us. So seeing the above pages is *normal* while changing IP addresses. Lower the TTL before making the IP change to reduce this time.

Cause 2

The virtualhost is not specified in the Apache configurations. There are a few things to look into. The user httpd.conf file is present in /usr/local/directadmin/data/users/username/httpd.conf and must Include into the main /etc/httpd/conf/httpd.conf in one of two ways, depending on the configuration.

For configurations on apache is functioning normally fix DirectAdmin:

  1. If we have the custombuild (typically Apache 2.2), we should see the following line in /etc/httpd/conf/httpd.conf:

    Near the bottom, include the file conf/extra/directadmin-vhosts.conf. The Include line for the user httpd.conf should then appear in the /etc/httpd/conf/extra/directadmin-vhosts.conf file, as should /usr/local/directadmin/data/users/username/httpd.conf. If that is not the case, we can change all of the apache configuration files with:

    cd /usr/local/directadmin/custombuild
    ./build rewrite_confs

    For this configuration, make sure we observe the following for apache is functioning normally fix directadmin error management:

    apacheconf=/etc/httpd/conf/extra/directadmin-vhosts.conf
    in the /usr/local/directadmin/conf/directadmin.conf.

  2. It’s the same notion if we’re using customapache (typically apache 1.3), but the user httpd.conf is different. Included in /etc/httpd/conf/httpd.conf is /usr/local/directadmin/data/users/username/httpd.conf. Also, apacheconf=/etc/httpd/conf/httpd.con should be present in /usr/local/directadmin/conf/directadmin.conf.

Troubleshooting 1:

We can use multiple troubleshooting options for the error apache is functioning normally fix DirectAdmin some of them as shown below:

  • Verify that the domain is addressed to an IP address that has a virtualhost for this domain.
  • After migrating from another server, ensure that the IP address in the httpd file is appropriately set. (The old server’s IP address may still be present).

    /usr/local/directadmin/data/users/USERNAME/httpd.conf

  • Please ensure that the IP address assigned to the domain matches the IP address it refers to. If https isn’t working, I’d guess the person has SSL deactivated.
  • Force Apache/nginx to restart using the following code:

    killall -9 httpd
    service httpd start
    and check if it resolves the problem.

  • The other method for apache is functioning normally fix directadmin error is to Examine the virtualhost. If we see the “welcome to apache” page, it signifies that the virtualhost is not loaded in the httpd.conf files for that IP address. It’s possible that the user’s httpd.conf isn’t included at all in the main httpd.conf, or the IP address that the domain resolves to doesn’t match the IP address defined in the virtualhost.

    Using custombuild, we can easily repair it by entering the code below.

    cd /usr/local/directadmin/custombuild
    ./build rewrite_confs

  • Make sure the IP in /etc/hosts matches the domain/user DirectAdmin to tackle the apache is functioning normally fix directadmin error.
  • If we just want to host one website on a server with a single IP address and want the site to be visited by that IP, we can do so as follows:

    Firstly modify the file:/etc/httpd/conf/extra/httpd-vhosts.conf:

    DocumentRoot /var/www/html

    Change the code given above to the code as shown below:

    DocumentRoot /home/user1/domains/domain.com/public_html

    Rename user1 and domain.com with the real username and domain. Note to alter them only within sections:

    VirtualHost 11.22.33.44:80
    ...
    ...
    ...
    VirtualHost
    VirtualHost 11.22.33.44:443
    ...
    ...
    ...
    VirtualHost

    Where 11.22.33.44 is the server IP address. After that run the code:

    chattr +i /etc/httpd/conf/extra/httpd-vhosts.conf

    Finally, restart the Apache.

Troubleshooting 2:

  • In the case of using the “chattr +i” on any configuration files. Please do the following instead of it now to manage apache is functioning normally fix DirectAdmin:

    chattr -i /etc/httpd/conf/extra/httpd-vhosts.conf mkdir -p /usr/local/directadmin/custombuild/custom/ap2/conf/extra cp -p /etc/httpd/conf/extra/httpd-vhosts.conf /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-vhosts.conf

  • Run the code given below:

    chattr -i /etc/httpd/conf/extra/httpd-vhosts.conf

    Make the necessary changes and run the command:

    chattr +i /etc/httpd/conf/extra/httpd-vhosts.conf

[Need assistance with similar queries? We are here to help]

Conclusion

To conclude we have learned more about the error apache is functioning normally fix DirectAdmin, the factors causing it, and how to manage it with the troubleshooting options with the support of our Server management support team.

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 *

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

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
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

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

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

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