ABHIONLINUX
Site useful for linux administration and web hosting

2011/12/22

How to change the time zone for a domain

You can change the time zone for a domain in a shared server.

If the server php is compiled with Apache (dso module)
You can use htaccess to set the time zone for a domain.

SetEnv TZ location


For suphp servers,
You need to create custom php.ini for your domain and add the following

date.timezone = "location"

You can get the time zones from http://www.php.net/manual/en/timezones.php

special device *device-name* does not exist : LVM

OS in my server's hard disk  got corrupted. Only way to retrieve data is perform an OS reload in a new harddisk and connect the old hard disk as secondary. My drives are LVM. I have done OS reload on the new hard disk and connected the old one as secondary. When I try to mount the old hard disk, I am getting the error "special device *device-name* does not exist"

You can check the number of hard-disk connected to your server using fdisk -l.

I am trying to mount the old drive using the command.
mount /dev/VolGroup02/LogVol00   /old


/dev/VolGroup02/LogVol00  is the volomegroup name for the old hard disk.


Issue was when the new harddisk has been done with OS reload, its volume group name was  /dev/VolGroup01/LogVol00. Old harddisk volume group was already  /dev/VolGroup01/LogVol00  


When an os reload is performed, volume group for that drive will be /dev/VolGroup01/LogVol00. This will be done by default. When old harddisk volumegroup name and new harddisk volume group name became same, conflict occurs and can mount the old drive. What we have done is changed the volume group name for old drive to  /dev/VolGroup02/LogVol00

After that when we try to mount that old drive getting the error special device *device-name* does not exist.

You can fix it using the command

vgchange -ay  /dev/VolGroup02/LogVol00




"vgchange -ay" is to activate all known volume groups in the system. 
vgchange  allows you to change the attributes of one or more volume groups.



-a Controls the availability of the logical volumes in the volume group for input/output. In other
words, makes the logical volumes known/unknown to the kernel.





2011/12/14

Site error: the file /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator. - Softaculous

When we select Softaculous - Instant Installs under plugins option in WHM, you may get the error
"Site error: the file /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator."


Solution:
If you are getting this error, make sure that you have installed  ioncube loader in your server. You can do this using /scripts/easyapache

Still you are getting the error after installing  ioncube loader, You have to enable cPanels backend ioncube loader (WHM > Tweak settings > Loader to use for internal cPanel PHP).


Hope this will fix your issue.