Directadmin: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
Tag: wikieditor
 
Line 10: Line 10:


==Enabling apache server-status==
==Enabling apache server-status==
Check '''/etc/httpd/conf/extra/httpd-info.conf'''
Check '''/etc/httpd/conf/extra/httpd-info.conf.secret'''
Then
curl --user "info:somepassword" http://localhost/server-status




Line 16: Line 18:
When iptables doesn't seem to know:
When iptables doesn't seem to know:
  ipset list
  ipset list
==Read apache server-status==
Credentials are in '''/etc/httpd/conf/extra/httpd-info.conf.secret'''
then use
curl


===Logs===
===Logs===

Latest revision as of 09:06, 23 February 2026

Info

the httpd.conf file

When you create a new user, an httpd.conf file is created at /usr/local/directadmin/data/users/%user%/httpd.conf AND an include line is added to /etc/httpd/conf/extra/directadmin-vhosts.conf which includes this /usr/local/directadmin/data/users/%user%/httpd.conf file.

HOWTO

Regenerate httpd.conf of all users!

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d


Enabling apache server-status

Check /etc/httpd/conf/extra/httpd-info.conf.secret Then

curl --user "info:somepassword" http://localhost/server-status


Brute for monitoring and blocking

When iptables doesn't seem to know:

ipset list


Read apache server-status

Credentials are in /etc/httpd/conf/extra/httpd-info.conf.secret then use

curl 

Logs

  • /var/log/lfd.log

Relevant files

/etc/csf

/usr/local/directadmin:

data/admin/brute_ip.data
data/admin/brute.conf
data/admin/brute_user.data
data/admin/brute_log_entries.list
data/admin/brute_skip.list
data/templates/brute_filter.list

FAQ

Subject: Error during automated certificate renewal / No domains pointing to this server to generate the certificate for.

Someone deleted domain the wrong way. It'll be in certificate_cache.json, now how to get it out of there? maybe look in

/usr/local/directadmin/data/.lego/certificates


Automatic SSL is not enabled

Means it will not automatically created LE for new site/account

mysqld gets restarted automatically

/etc/cron.d/directadmin_cron


No user or group set - set suPHP_UserGroup

user/httpd.conf misconfiguration


mysql admin password

cat /usr/local/directadmin/conf/mysql.conf


Unable to get lock on .../.htaccess

Check rights on public_html