Reseller site shows Apache functioning normally message after CustomBuild upgrade

mingmeng

Verified User
Joined
Apr 11, 2017
Messages
29
Hi,

All was working as expected until:

cd /usr/local/directadmin/custombuild
./build update
./build all d
./build rewrite_confs

Done this many times and all usually fine. This time I get "Apache is functioning normally" for the reseller website and no website. I did not change any other parameters before or after the Apache custom build upgrade. So I guess I need to get my hands dirty at the command line again. Can anyone assist me with what might be wrong and how to fix? I'm guessing something to do with Apache and httpd?

Thank you

neil

Banished from Pakled society for having low cunning!
 
Hello Neil,

Show apache or/and nginx config for the virtual host of your reseller so that we could check it for you. Is IP set correct?
 
Alex,

I'm going to need your patience for this - what is the path to the config files I need?

IP not changed and all been working fine for about a year. All the other non-reseller (5) sites working fine, all have shared IP.

Most grateful for any help.

This is my guess at what I need to show user names changed to protect the innocent :

cat ./extra/directadmin-vhosts.conf
Include /usr/local/directadmin/data/users/aaaa/httpd.conf
Include /usr/local/directadmin/data/users/cccccexo/httpd.conf
Include /usr/local/directadmin/data/users/gilldddd/httpd.conf
Include /usr/local/directadmin/data/users/eeeea/httpd.conf
Include /usr/local/directadmin/data/users/problem/httpd.conf
Include /usr/local/directadmin/data/users/bbbbbbor/httpd.conf

cat ./extra/httpd-vhosts.conf
#
# Virtual Hosts
#
# Required modules: mod_log_config
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

##########################################################
# Use name-based virtual hosting. #
# All NameVirtualHost lines are in this file #
# Don't remove this line or apache will generate errors. #
##########################################################
Include /etc/httpd/conf/ips.conf

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost 91.239.65.187:80>
ServerAdmin webmaster@localhost
UserDir public_html
DocumentRoot /var/www/html
ServerName localhost
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
CustomLog /var/log/httpd/homedir.log homedir
CustomLog /var/log/httpd/access_log combined
ErrorLog /var/log/httpd/error_log

<IfModule !mod_ruid2.c>
SuexecUserGroup webapps webapps
</IfModule>
</VirtualHost>

<VirtualHost 91.239.65.187:443>
ServerAdmin webmaster@localhost
UserDir public_html
DocumentRoot /var/www/html
ServerName localhost
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
CustomLog /var/log/httpd/homedir.log homedir
CustomLog /var/log/httpd/access_log combined
ErrorLog /var/log/httpd/error_log

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca

<IfModule !mod_ruid2.c>
SuexecUserGroup webapps webapps
</IfModule>
</VirtualHost>

cat /usr/local/directadmin/data/users/problem/httpd.conf
# Auto generated apache config file by DirectAdmin version 1.52.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to their website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3


<Directory "/home/problem/public_html">
<IfModule mod_ruid2.c>
RMode config
RUidGid problem problem
#RGroups apache access
RGroups @none
</IfModule>
<IfModule mod_fcgid.c>
SuexecUserGroup problem problem
</IfModule>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/problem/.php/php-mail.log
</Directory>

<VirtualHost 91.239.65.187:80 >
ServerName www.problemtou.net
ServerAlias www.problemtou.net problemtou.net digbat.biz www.digbat.biz problemtou.com www.problemtou.com
ServerAdmin [email protected]
DocumentRoot /home/problem/domains/problemtou.net/public_html
ScriptAlias /cgi-bin/ /home/problem/domains/problemtou.net/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup problem problem
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid problem problem
#RGroups apache access
RGroups @none
</IfModule>
CustomLog /var/log/httpd/domains/problemtou.net.bytes bytes
CustomLog /var/log/httpd/domains/problemtou.net.log combined
ErrorLog /var/log/httpd/domains/problemtou.net.error.log
<Directory /home/problem/domains/problemtou.net/public_html>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/problem/.php/php-mail.log
php_admin_value open_basedir /home/problem/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/
</Directory>
</VirtualHost>

<VirtualHost 91.239.65.187:443 >
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/problem/domains/problemtou.net.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/problem/domains/problemtou.net.key
SSLCACertificateFile /usr/local/directadmin/data/users/problem/domains/problemtou.net.cacert
ServerName www.problemtou.net
ServerAlias www.problemtou.net problemtou.net digbat.biz www.digbat.biz problemtou.com www.problemtou.com
ServerAdmin [email protected]
DocumentRoot /home/problem/domains/problemtou.net/private_html
ScriptAlias /cgi-bin/ /home/problem/domains/problemtou.net/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup problem problem
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid problem problem
#RGroups apache access
RGroups @none
</IfModule>
CustomLog /var/log/httpd/domains/problemtou.net.bytes bytes
CustomLog /var/log/httpd/domains/problemtou.net.log combined
ErrorLog /var/log/httpd/domains/problemtou.net.error.log
<Directory /home/problem/domains/problemtou.net/private_html>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/problem/.php/php-mail.log
php_admin_value open_basedir /home/problem/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/
</Directory>
</VirtualHost>

and for comparison:

cat /usr/local/directadmin/data/users/bbbbbbor/httpd.conf
# Auto generated apache config file by DirectAdmin version 1.52.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to their website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3


<Directory "/home/bbbbbbor/public_html">
<IfModule mod_ruid2.c>
RMode config
RUidGid bbbbbbor bbbbbbor
#RGroups apache access
RGroups @none
</IfModule>
<IfModule mod_fcgid.c>
SuexecUserGroup bbbbbbor bbbbbbor
</IfModule>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/bbbbbbor/.php/php-mail.log
</Directory>

<VirtualHost 91.239.65.187:80 >
ServerName www.bbbbbb.org
ServerAlias www.bbbbbb.org bbbbbb.org bbbbbbimms.me www.bbbbbbimms.me
ServerAdmin [email protected]
DocumentRoot /home/bbbbbbor/domains/bbbbbb.org/public_html
ScriptAlias /cgi-bin/ /home/bbbbbbor/domains/bbbbbb.org/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup bbbbbbor bbbbbbor
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid bbbbbbor bbbbbbor
#RGroups apache access
RGroups @none
</IfModule>
CustomLog /var/log/httpd/domains/bbbbbb.org.bytes bytes
CustomLog /var/log/httpd/domains/bbbbbb.org.log combined
ErrorLog /var/log/httpd/domains/bbbbbb.org.error.log
<Directory /home/bbbbbbor/domains/bbbbbb.org/public_html>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/bbbbbbor/.php/php-mail.log
php_admin_value open_basedir /home/bbbbbbor/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/
</Directory>
</VirtualHost>

<VirtualHost 91.239.65.187:443 >
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/bbbbbbor/domains/bbbbbb.org.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/bbbbbbor/domains/bbbbbb.org.key
SSLCACertificateFile /usr/local/directadmin/data/users/bbbbbbor/domains/bbbbbb.org.cacert
ServerName www.bbbbbb.org
ServerAlias www.bbbbbb.org bbbbbb.org bbbbbbimms.me www.bbbbbbimms.me
ServerAdmin [email protected]
DocumentRoot /home/bbbbbbor/domains/bbbbbb.org/private_html
ScriptAlias /cgi-bin/ /home/bbbbbbor/domains/bbbbbb.org/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup bbbbbbor bbbbbbor
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid bbbbbbor bbbbbbor
#RGroups apache access
RGroups @none
</IfModule>
CustomLog /var/log/httpd/domains/bbbbbb.org.bytes bytes
CustomLog /var/log/httpd/domains/bbbbbb.org.log combined
ErrorLog /var/log/httpd/domains/bbbbbb.org.error.log
<Directory /home/bbbbbbor/domains/bbbbbb.org/private_html>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/bbbbbbor/.php/php-mail.log
php_admin_value open_basedir /home/bbbbbbor/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/
</Directory>
</VirtualHost>


Thank you.

Neil
 
Alex,

My first reply has gone for moderation with the cat from conf flies. I'm not sure how long I should wait for that to appear, however (I've also been trains, buses, planes on long trip):

No IP changes since initial set up a year ago.

After two days of the apache message the website then started loaded correctly again, then back to apache message for about 12 hours. I now see that the website is back again: mingmengtou.net. I did not make any configuration changes during this time.

I will check with my VPS provider that the IP has been stable as this is a bit weird.

Thank you.

Neil
 
Neil,

it's probably apache did not restart properly at first time.

Does OS version match to the one in Directadmin license?
 
Alex,

All a bit weird but stable for the last day.

The OS and license match - Debian 8. I keep everything updated.

My VPS supplier confirmed that the IP was stable from their logs.

So I guess that there could be a little inherent instability in what is a complex system - if in doubt restart, and if that doesn't work, switch off then on at the wall.

Thank you for your reviewing the .conf files, and your prompting for them assisted me in learning a little more about tending a server.

Thank you.

Neil
 
Neil,

I'd still think Apache did not restart properly after you added a new domain for a reseller. Of course if it's the case.
 
Back
Top