DDClient service for CentOS run on startup update IP on boot

Description=ddclient Service

#ExecStart=/usr/sbin/ddclient -pid /var/run/ddclient.pid -file /etc/ddclient.conf -daemon 300
ExecStart=/usr/sbin/ddclient -file /etc/ddclient.conf -daemon 300 -syslog -debug -verbose
#ExecStop=/usr/bin/pkill -SIGKILL -P /var/run/ddclient.pid


PID stuff doesn’t seem to work….


Configure Apache directory to use PAM authentication (Linux credentials)

This will allow you to protect a directory using Linux user accounts rather than creating  separate apache htpasswd credentials.



Install and enable Apache modules

sudo apt-get install libapache2-mod-authnz-external pwauth
sudo apt-get install libapache2-mod-authz-unixgroup
sudo a2enmod authnz_external authz_unixgroup

Add the following inside of the VirtualHost block

<IfModule mod_authnz_external.c>

AddExternalAuth pwauth /usr/sbin/pwauth

SetExternalAuthMethod pwauth pipe


<Directory /var/www/html/sync>

AuthType Basic

AuthName “Restricted Area”

AuthBasicProvider external

AuthExternal pwauth

Require user chris

# some other configuration statements


Then restart the Apache server: apachectl restart

Be sure to change the “Require user” username to what you actually need. The original link explains how to configure a group to be allowed.

Create a free website or blog at WordPress.com.

Up ↑