One more thing, I forgot to mention. If you experience …

Saturday, 1st October 2022

Comment on How to enable UserDir /home/*/public_html on Debian GNU / Linux 6.0.5 (Squeeze) by hip0.

One more thing, I forgot to mention. If you experience an oddity where it seems like you properly configured mod_userdir on the host but still http://domain-name.com/~username is trying to read from /var/www or some other document root different from /home/username/public_html, check out if everything is okay sym-links in /etc/apache2/mods-enabled/.

ls -al *userdir*
lrwxrwxrwx 1 root root 30 Sep 21 15:24 userdir.conf -> ../mods-available/userdir.conf
lrwxrwxrwx 1 root root 30 Sep 21 15:24 userdir.load -> ../mods-available/userdir.load

It might be that by mistake instaed of linking to /etc/apache2/mods-available/userdir.conf and /etc/apache2/mods-available/userdir.load you might have overwritten some of the two files. This happens for example if you by mistake in the hurry issue:

ln -sf /etc/apache2/mods-enabled/{userdir.conf,userdir.load} /etc/apache2/mods-available/{userdir.conf,userdir.load} instead of the proper symlink cmd which is:
ln -sf /etc/apache2/mods-available/{userdir.conf,userdir.load} /etc/apache2/mods-enabled/{userdir.conf,userdir.load}

It took me about 2 hours of pondering to realize this stupid issue I asked a bunch of guys in freenode and checked closely everything until I finally found out /etc/apache2/mods-available/userdir.load was overwritten to fix this I had to reinstall apache:

apt-get install –reinstall apache2

Recent Comments by hip0

Webserver farm behind Load Balancer Proxy or how to preserve incoming internet IP to local net IP Apache webservers by adding additional haproxy header with remoteip

One important thing I forgot to mention in the article.
If you don't  have the Apache already configured to accept messages with the proxy headers e.g. in the send-proxy protocol format, you will have to enable also the following proxy modules to do so:

root@webserver:/etc/apache2/mods-enabled# a2enmod proxy; a2enmod proxy_connect; a2enmod proxy_http


How to install and configure djbdns from source as a Cachening Localhost Proxy resolver to increase resolving efficiency on Debian 6 Squeeze
Note that one issue I have faced on newer Linux distributions is that the 53 port on 127.0.0.1 might be taken up. Either by bind already running or by another resolver like systemd-resolver service. If that is the case check out with fuser/tcp part of psmisc package in debian and check what is using the listener and disable / remove it and restart the dnscahe service with

# svc -d /etc/dnscache
# svc -u /etc/dnscache

enjoy the speedy djbdns resolver 😉 Cheers ! 


The Holy and Great Week of Passions of Christ in the Church – Day by day explained
The Stations of the Cross or the Way of the Cross, also known as the Way of Sorrows or the Via Crucis, refers to a series of images depicting Jesus Christ on the day of his crucifixion and accompanying prayers. The stations grew out of imitations of the Via Dolorosa in Jerusalem, which is a traditional processional route symbolising the actual path Jesus walked to Mount Calvary. The objective of the stations is to help the Christian faithful to make a spiritual pilgrimage through contemplation of the Passion of Christ. It has become one of the most popular devotions and the stations can be found in many Western Christian churches, including those in the Roman Catholic, Lutheran, Anglican, and Methodist traditions.


The Holy and Great Week of Passions of Christ in the Church – Day by day explained
The exact path which Christ has walked is nowadays a common place for pilgrimage in Jerusalem it is called Via Dolorosa.
 


LDAP Server Installation and Configuration on CentOS 7.9 Linux or howto simply Store and use SSH User account credentials from LDAP
A good idea I forgot to mention is to configure below sysctl kernel variables to make the LDAP work better especially if you're planning to have a large database and machines accesing the server host from unstable networks

ldap:~# cat /etc/sysctl.conf

# ldap required variables
net.ipv4.tcp_keepalive_time = 300
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 64000

 


Share this on:

No tags for this post.

Comments are closed.