In this example i will show how to install libvpx and compile php with vpx for webp support in php.
First we need to install the libraries from distros package repository.
yum install libvpx.x86_64 libvpx-devel.x86_64
Then we enter cPanels folder for custom options for easyapache.
Then we need to make a file to add the options to, in this example we call it all_php5
Then append the following text to file.
And now you can just recompile apache / php with easyapache and our cusom option will be compiled.
If you get any errors while running easyapache after adding a custom option like this its probably linked to missing library or not supported option for your version of php.
Check documentation on php.net.
Enter edit mode for sudoers.
Add the following at the bottom.
nagios ALL = NOPASSWD: /usr/sbin/exim
And thats that.
Normally defaults requiretty is set earlier in the file, which stops sudo from running while not under a tty (shell) we override this for nagios user by setting defaults:nagios !requiretty as showed over.
Visudo is a command for opening /etc/sudoers in your distros default editor.
NOPASSWD does so command does’nt need password to run sudo.
Scan for new disks, change hostX to active controller
echo "- - -" > /sys/class/scsi_host/hostX/scan
Check if system catched new disk.
Add partition to new disk. change sdX with new disk identifier.
n (new partition)
p (primary partition)
1 (first partition)
[enter] (start at fist byte)
[enter] (end at last byte)
w (write changes)
Partition the new patition with a filesystem
Add automount of the new partition, edit and add to /etc/fstab.
/dev/sdX# /home2 ext3 defaults 1 0