dapurhosting.com Blog for Tech

April 18, 2009

PHP.INI Location

Filed under: Server — dh @ 12:45 pm

/usr/local/lib/php.ini

April 10, 2009

display bandwidth usage on an interface

Filed under: Server — Tags: , , , , — dh @ 2:15 pm

iftop -h | [-nNpbBP] [-i interface] [-f filter code] [-F net/mask]

Source: http://linux.die.net/man/8/iftop

April 2, 2009

Where is User Cron Jobs?

Filed under: Server — Tags: — dh @ 5:11 pm

You can find them on

/var/spool/cron/

March 12, 2009

How To Restart Services

Filed under: cPanel/WHM,Server — dh @ 8:55 am

Restart Apache:

service httpd restart

Restart MySql:

service mysql restart

Restart Bind:

service named start

Restart Services:

service chkservd restart

Restart Cpanel:

/etc/init.d/cpanel restart

Run anything in /scripts:

./scriptname

February 5, 2009

Fix Disk Usage (Quota)

Filed under: Server — dh @ 10:17 pm

Thing that help fix disk usage quota

Thing #1

/scripts/initquotas - takes a while to run
/scripts/resetquotas
/scripts/fixquotas - takes a while to run

Thing #2

http://forums.cpanel.net/showthread.php?t=42742&highlight=unlimited+disk+usage

Empty /tmp Folder

Filed under: cPanel/WHM,Server — dh @ 3:24 pm

stop the services which it use tmp directory

service httpd stop
service mysql stop
/etc/init.d/chkservd stop

then clean the tmp directory and create

/bin/umount -1 / tmp
/bin/umount -1 /war/tmp
/bin/rm -fv /usr/tmpDSK
/scripts/securetmp

Then start the services which you stop

service mysql start
service httpd start
/etc/init.d/chkservd restart

Source: http://www.cpanelim.net/lessons/cleaning-the-tmp-directory-on-linmux.html

« Newer Posts

Powered by WordPress