Search Results

Plesk PHP open_basedir changes

To make a change to PHP for a site in Plesk, such as opening open_basedir, edit /var/www/vhosts/$domain/conf/vhost.conf. You would then add : <Directory /var/www/vhosts/domain.com/httpdocs> php_admin_value open_basedir “/var/www/vhosts/domain.com/httpdocs:/tmp:/THE_PATH_PHP_SCRIPT_TRIES_TO_ACCESS_TO” </Directory> After that, you will need to rebuild the apache configuration with the following command: /usr/local/psa/admin/sbin/websrvmng -v -a

Veeam as a vSphere backup solution

I’ve recently had the pleasure of implementing Veeam Backup & Replication v8 as a direct replacement for BackupExec 2012/2014 vRay edition.  BackupExec 2012 was a terrible product, which is such a shame considering how good its Veritas predecessor was.  BackupExec 2014 was just as bad; its low reliability and poor usability create a huge support […]

Distributed Monitoring in Nagios with check_mk multisite

For some time now, I’ve been exploring the best ways of configuring a distributed Nagios setup. With the “federated” configuration that Nagios recommend, you can pass data from remote Nagios instances back to a central Nagios server with the use of passive checks combined with NSCA or NRDP. Whilst this works well, the duplicate configuration […]

Moving from SysV to Systemd

Goodbye initd, systemd is here!  Systemd brings a lot of benefits such as parallel startups and enhanced troubleshooting but sure does takes some getting used to when you have been working in a completely different way for your entire Linux life!  Systemd is now shipping with CentOS7 and most of the other major distros, so […]

Gluster active/passive cluster

Gluster is a nice distributed file system which offers some management benefits over block level storage systems like DRBD. By design Gluster works in an active/active cluster configuration, however for applications where millisecond precision data replication is essential, an active/passive configuration is preferable. This is how (based on SLES11 with HAE): usual SLES HA cluster […]

Load Balanced Linux Web Cluster

Another example of a load balanced apache cluster, this time active-active using Pacemaker/Corosync/ldirectord. This example is using CentOS. 10.11.1.40 – fixed IP of server1 10.11.1.41 – fixed IP of server 2 10.11.1.80 – apache site 1 (virtual IP) 10.11.1.50 – apache site 1 server 1 10.11.1.51 – apache site 1 server 2 10.11.1.90 – apache […]

Some Munin Notes

Munin – its pretty handy for monitoring stuff over time to view trends. Some notes to get it up and running with a minimal config: Install munin on monitoring server: apt-get install munin vi /etc/munin/munin.conf Add something like: [Webservers;webserver-01] address 2.11.1.40 use_node_name yes [Webservers;webserver-01] address 2.11.1.40 use_node_name yes Group by something sensible, i.e server type, […]

High Availability Linux Web Server Example

Just a quick example of setting up a Linux HA failover environment for an Apache/MySQL web server. This runs through a Ubuntu installation, however RedHat shouldn’t vary too much. 2.11.1.24 – fixed IP of server1 2.11.1.25 – fixed IP of server2 2.11.1.30 – apache site1 (virtual IP) 2.11.1.31 – apache site2 (virtual IP) Make sure […]

Some NFS Notes

A few notes on configuring NFS on RedHat or Ubuntu The server packages to install are: Ubuntu: apt-get-install nfs-kernel-server nfs-common quota RedHat: yum install nfs-utils nfs-utils-lib quota The client Packages are: Ubuntu: apt-get install nfs-common RedHat: yum install nfs-utils nfs-utils-lib A few things to configure on the server: /etc/hosts.allow Any hosts listed here will be […]

Increasing Partition Size on a VMWare Linux Virtual Machine

Naively, when creating my new VMWare ESXi virtual machines, I was expecting to be able to resize the disks with a one-liner as I have done in the past with container based virtualisation. Unfortunately it’s not quite that simple, the VM partitions will need manually resizing: Increase the virtual disk size via Vsphere to the […]