After doing a release upgrade
from Ubuntu 12.04 to 14.04 my websites were going to the default vhost for apache. After looking at /etc/apache2/apache2.conf it had changed from looking for .cfg to .conf for the vhosts files. I just added the .cfg in addition to the .conf so both files would work at around line 218 in apache2.conf to include the virtual host configuration.
Try to do a release upgrade I ran into the issue of /boot not having enough free space. Here is how to resolve that.
Check which kernel you are actively using. DO NOT REMOVE THIS ONE!
View all kernels installed on your system.
dpkg --list | grep linux-image
Remove the kernels not in use
apt-get purge linux-image-x.x.x.x-generic
To run vhosts under separate UIDs/GIDs in apache is very easy with mpm-itk. This will help secure your sites on your shared server.
First install apache2-mpm-itk
apt-get install apache2-mpm-itk
Next add a group and user
groupadd web1 useradd -s /bin/false -d /home/web1_admin -m -g web1 web1_admin
Now add this to the end of your vhost for your site. Be sure to place this inside the </virtualhost> tag and not outside of it.
AssignUserId web1_admin web1
For each of your sites you will user a different username and group. Now be sure to set your web directory to the correct user and group.
chown -R web1_admin:web1 /var/www/website
2 Day MTCNA in the Heart of Amish Country!
Course Description & Syllabi
This two day course will cover MikroTik official certification material plus much more! Real world examples will be shown and demonstrated as part of the class. Each student will obtain a base understanding of MikroTik RouterOS and learn skills that can be applied to there current networks and projects. Course includes labs where you will configure RouterOS and build networks. At the end of the class you will have the chance to take the Official MTCNA test provided by MikroTik.
What You Need to Bring
Laptop with at least 1 ethernet port
Power Strip approximately 10′ in length
Two ethernet cables 6′-14′ in length
Within 1.5 hours of Baltimore and Philadelphia in the heart of Amish Country!
Penn Manor School District
3000 Charlestown Rd, Lancaster, PA 17603
It is not exactly easy to add a new user to Nagios but this is how it can be done.
If using ubuntu you will need to modify /usr/local/nagios/etc/cgi.cfg
The important one to view the information on the web interface is “authorized_for_system_information”. It should look like this if you are adding multiple users.
There are more fields that you can use. These are all the categories that nagiosadmin (the default account) is in.
authorized_for_configuration_information authorized_for_system_commands authorized_for_all_services authorized_for_all_hosts authorized_for_all_service_commands
Of course they had to change the way you restart interfaces in Ubuntu 14.04. Here is how to restart your interface. Make sure you select the correct interface, the example below is for eth0. You can check you interface name in ifconfig.
ifdown eth0 && ifup eth0
To add DNS after adding a static IP you will need to set your name servers in /etc/resolvconf/resolv.conf.d/base
nameserver 22.214.171.124 nameserver 126.96.36.199
Then restart resolvconf for shits and giggles
service resolvconf restart