Showing posts with label server settings. Show all posts
Showing posts with label server settings. Show all posts

Monday, April 04, 2011

Max concurrent user

http://forums.cpanel.net/f189/how-raise-maxclient-apache-2-2-16-a-170946.html

Place the limits in /usr/local/apache/conf/includes/pre_main_global.conf file for ServerLimit and MaxClients instead, then run the following commands:

Code:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak101029 /usr/local/cpanel/bin/apache_conf_distiller --update /scripts/rebuildhttpdconf /etc/init.d/httpd restart
This will backup your current httpd.conf, run the distiller to distill the changes in the include file, rebuild Apache configuration file, then restart Apache.

Sunday, March 20, 2011

secure tmp folder for cpanel

this is shortcut if you do not want to manually edit file

http://apis17.blogspot.com/2011/03/how-to-secure-tmp.html

use command

/scripts/securetmp

Tuesday, March 15, 2011

how to secure tmp

Step 1: Securing /tmp
Step 1.1: Backup your fstab file

cp /etc/fstab /etc/fstab.bak

Step 1.2: Creating tmpmnt partition file (Around 1Gb in size)

cd /var
dd if=/dev/zero of=tmpMnt bs=1024 count=1048576

Step 1.3: Format the new partition

mkfs.ext3 -j /var/tmpMnt

Press Y when asked
Step 1.4: Making backup of old /tmp

cp -Rp /tmp /tmp_backup

Step 1.5: Mount the tmp filesystem

mount -o loop,noexec,nosuid,rw /var/tmpMnt /tmp

Step 1.6: Set the right permissions

chmod 0777 /tmp

Step 1.7: Copy the files back to new tmp folder

cp -Rp /tmp_backup/* /tmp/

Step 1.8: Adding new /tmp filesystem to fstab

echo "/var/tmpMnt /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0" >> /etc/fstab

Step 2: No need for 2 tmp filesystems, so we symlink /var/tmp to /tmp

rm -rf /var/tmp/
ln -s /tmp/ /var/tmp

Tuesday, January 25, 2011

install vi, vim and components

yum install vim-X11 vim-common vim-enhanced vim-minimal

http://nixcraft.com/linux-software/434-how-install-vim.html

change centos hostname

command

vi /etc/sysconfig/network

edit hostname. enter i to edit

Sunday, November 25, 2007

Ez2reload Website Still Disabled

Testing my clipmark post function..
clipped from www.ez2reload.com

Quick Order Disabled

We're disabling quick order (autopay) system at this time due to maintenance schedule. New reload cards will be available after maintenance process is completed.
Sorry for inconvinience caused.

Ez2reload's Members still able to buy cards. Please login/register first.

Reason disabled:
Database error..
Powered by: egold m2u bcb
Copyright © 2005-2007 (v3.08) www.ez2reload.com.
All right reserved
blog it

Thursday, May 26, 2005

Interesting Linux Gadget

1. ntop.. status: installed (OK)
2. Webmin.. status: downloaded but cannot run at this momment.. hehe

more tool next time lah..
Related Posts Plugin for WordPress, Blogger...