Directadmin: Difference between revisions

From DWIKI
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=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'''
=FAQ=
=FAQ=
==Subject: Error during automated certificate renewal / No domains pointing to this server to generate the certificate for.==
==Subject: Error during automated certificate renewal / No domains pointing to this server to generate the certificate for.==
Line 12: Line 25:
==mysqld gets restarted automatically==
==mysqld gets restarted automatically==
  /etc/cron.d/directadmin_cron
  /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

Latest revision as of 15:23, 4 December 2024

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

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