DDClient service for CentOS run on startup update IP on boot

#/usr/systemd/system/ddclient.service
[Unit]
Description=ddclient Service
After=network.target

[Service]
Type=forking
#PIDFile=/var/run/ddclient.pid
#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….

Advertisements

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.

 

http://icephoenix.us/linuxunix/apache-and-http-authentication-with-pam/

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

</IfModule>

<Directory /var/www/html/sync>

AuthType Basic

AuthName “Restricted Area”

AuthBasicProvider external

AuthExternal pwauth

Require user chris

# some other configuration statements

</Directory>

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 ↑