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
Install and configure rkhunter for improved security on a PCI DSS Linux / BSD servers with no access to Internet
–rwo, –report-warnings-only
This option causes only warning messages to be displayed. This can be useful when rkhunter is run via cron. Other options may
be used to force other items of information to be displayed.
–sk, –skip-keypress
When the –check command option is used, after certain sections of tests, the user will be prompted to press the return key
in order to continue. This option disables that feature, and rkhunter will run until all the tests have completed.
Install and configure rkhunter for improved security on a PCI DSS Linux / BSD servers with no access to Internet
As rkhunter check, can be pretty annoying and ask you to press keypresses multiple times and spit you a lot of unnecessery data a very good useful option arguments are:
–rwo and –sk
# rkhunter -c –rwo –sk
Warning: The SSH and rkhunter configuration options should be the same:
SSH configuration option 'PermitRootLogin': yes
Rkhunter configuration option 'ALLOW_SSH_ROOT_USER': no
Sorry for really late reply.
perhaps you have to create it or rename the ifcfg-eno1 to ifcfg-eth1 or you have some old ifcfg-enp1s0f0 or ifcfg-eno still under /etc/sysconfig/network-scripts/ interfering
How to RPM update Hypervisors and Virtual Machines running Haproxy High Availability cluster on KVM, Virtuozzo without a downtime on RHEL / CentOS Linux
if you happen to be missing versionlock plugin and you need to get use of it
yum versionlock capabilities
You will have to install yum-utils package:
For example on CentOS 8 Linux, to enable the yum versionlock plugiun
yum install yum-utils.noarch
In case if by default log is not configured for snoopy,
these are default output locations on various Linux distributions:
Distribution | Snoopy output location | Notes |
---|---|---|
CentOS |
/var/log/secure
|
|
Debian |
/var/log/auth.log
|
|
Ubuntu |
/var/log/auth.log
|
|
(others) |
/var/log/messages
|
(potentially, could be elsewhere) |