Archive for May 2011

How to enable or disable php variables in Plesk

If you want to enable to disable PHP variable for all domains then you can do that using the below steps :

Here we have taken an example of safe_mode varibale

[email protected][#] cd /etc/httpd/conf.d

[email protected][#] vi safemode.conf

and just add the below lines in the safemode.conf file

<Location />
php_admin_flag safe_mode off
< /Location>


Finally restart the apache service on the server and it will work like a charm.

Starting named: named: user ‘named’ unknown

If you face the above error while starting/restarting named on a cPanel server then follow the below steps :

[email protected][#] /etc/init.d/named start
Starting named: named: user 'named' unknown [FAILED]
[email protected][#] named -u named
 named: user ‘named’ unknown

Now, follow the below steps to fix this

1>  open  the /etc/passwd  file

[email protected][#]  vi /etc/passwd
  and now add this line :

save and quit.


2> Open the /etc/group file
[email protected][#]vi /etc/group
and now  add this line
save and quit.

Now,  try to start the named service

[email protected][#] /etc/init.d/named start
Starting named:        [  OK ]

That’s all, easy isn’t it.



How to install and configure Geoip

You can  install Geoip via /scripts/easyapache on a  cPanel server.

On other servers you can  try  :

pecl install geoip


cd /usr/local/src
tar zxvf geoip
 cd geoip-1.0.7
  make check
  make install


Once Geoip is installed then  install geoip database from  here :
cd /opt/geoip/share/GeoIP


gunzip GeoLiteCity.dat.gz
cp -p  GeoLiteCity.dat GeoIPCity.dat

That’s all you are done.