It is currently Thu May 02, 2024 5:27 am

News News of Lik`s forum

Site map of Lik`s forum » Forum : Lik`s forum

cPanel/WHM/OpenVZ/Xen/Linux/IPMI Lik`s forum

Linux kernel boot time parameters

The Linux kernel accepts certain 'command-line options' or 'boot time parameters' at the moment it is started. In general this is used to supply the kernel with information about hardware parameters that the kernel would not be able to determine on its own, or to avoid/override the values that the kernel would otherwise detect.

Taken from:
Code: Select all
man bootparam

'panic=N'
By default the kernel will not reboot after a panic, but this option will cause ...
Read more : Linux kernel boot time parameters | Views : 3039 | Replies : 0 | Forum : Linux specific


Install Memcached on cPanel server (CentOS)

Memcached - high-performance memory object caching system. It requires LibEvent:
Code: Select all
mkdir ~/memcached
cd ~/memcached
wget "http://monkey.org/~provos/libevent-2.0.12-stable.tar.gz"
tar xvfz libevent-2.0.12-stable.tar.gz
cd libevent-2.0.12-stable
./configure && make && make install

Now we are ready to install Memcached:
Code: Select all
cd ~/memcached
wget "http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz"
tar xvfz memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure --with-lib-event=/usr/local/ && make && make install

Configure dynamic linker run time bindings for LibEvent:
Code: Select all
echo "/usr/local/lib/" > /etc/ld.so.conf.d/libevent.conf
ldconfig

Create init script for Memcached:
Code: Select all
touch /etc/init.d/memcached
chmod +x /etc/init.d/memcached

#!/bin/bash ...
Read more : Install Memcached on cPanel server (CentOS) | Views : 3616 | Replies : 0 | Forum : Linux specific


Debian6: script 'S10vzquota' missing LSB tags and overrides

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594783

OpenVZ generates /etc/init.d/vzquota on every reboot of a container. Since
Debian6/Squeeze makes use of insserv, it's required that all startup scripts include LSB tags.
If you don't this results in the following errors when trying to install software (via apt-get):
insserv: warning: script 'S10vzquota' missing LSB tags and overrides
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script 'vzquota' missing LSB tags and overrides
insserv: There is a loop between service vzquota ...
Read more : Debian6: script 'S10vzquota' missing LSB tags and overrides | Views : 5454 | Replies : 0 | Forum : OpenVZ related


View cPanel version

One can find out the version of installed cPanel with the help of the following command:
/usr/local/cpanel/cpanel -V

Starting from 11.30.x.x cPanel & WHM versioning system and release process has changed CpanelProductVersions.
For comparison, earlier versions:
Code: Select all
11.26.20-STABLE_49708

and "current" versioning system :
Code: Select all
11.30.0 (build 32)

Code: Select all
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/CpUpdateConf
Read more : View cPanel version | Views : 2515 | Replies : 0 | Forum : Server Side Actions


Configuring PHP and suEXEC from the Command Line

Official documentation: WHMDocs/RebuildPhpconf

The rebuild_phpconf script on your server allows you to udpate your server's php.conf file (located at /usr/local/cpanel/bin/rebuild_phpconf). By doing this, you can change Apache’s PHP handler configuration, change the default version of PHP used by your server, and enable or disable the suEXEC feature.

To see a list of all options and arguments for this script, type the following from the command line:
Code: Select all
/usr/local/cpanel/bin/rebuild_phpconf --help

Usage: /usr/local/cpanel/bin/rebuild_phpconf [--dryrun] [--no-restart] [--no-htaccess] [--current|--available] <Default ...
Read more : Configuring PHP and suEXEC from the Command Line | Views : 2848 | Replies : 0 | Forum : Server Side Actions


Pretty output of mount (Linux,FreeBSD)

Show mounted file-systems:
Code: Select all
mount | column -t
Read more : Pretty output of mount (Linux,FreeBSD) | Views : 2648 | Replies : 0 | Forum : Linux specific


OpenVZ quota bug OpenVZ quota bug

Can't find filesystem to check or filesystem not mounted with quota option
http://bugzilla.openvz.org/show_bug.cgi?id=1904

(0) Traditionally, /etc/mtab is a symlink to /proc/mounts in all the templates
we provide. This is for df utility to work.

(1) When quotaugidlimit is set, vzctl used to (via set_ugid_quota.sh dist
script that creates /etc/init.d/vzquota script inside a CT) delink /etc/mtab
and make it a file with grpquota,usrquota options, for quota* utilities to
work.

(2) Newer quota tools (quota-3.17 in Fedora ...
Read more : OpenVZ quota bug | Views : 2950 | Replies : 0 | Forum : OpenVZ related


SSH tunneling notes

Taken from : http://shearer.org/Ssh_tunnelling

-L localhostport:remotehost:remoteport

Specifies that the given localhostport on the local (client) host is
to be forwarded to the given remotehost and remoteport on the remote side.
This works by allocating a socket to listen to localhostport on the local
side, optionally bound to the specified bind_address. Whenever a con-
nection is made to the local port, the connection is forwarded over
the secure channel, and a connection is made to remotehost ...
Read more : SSH tunneling notes | Views : 2533 | Replies : 0 | Forum : Linux specific


Scripts and GUI-like tools for linux tc (htb,cbq,sfq)

TCSS is a bash script used for traffic management on Linux 2.4 and 2.6 kernels. It supports groups, multiport rules, minimun and burst rates, prioritization and can make use of layer7 filtering too.
http://sourceforge.net/projects/tcss/

WebHTB is a software suite that helps simplify the difficult process of bandwidth allocation, for both upload and download traffic: generates and checks configuration files and displays real time traffic overview for each separate client.

https://www.webhtb.ro/

T-HTB FREE web interface, built ...
Read more : Scripts and GUI-like tools for linux tc (htb,cbq,sfq) | Views : 24586 | Replies : 2 | Forum : Linux specific


How to restart SSHd with the default config via WHM

Code: Select all
https://10.10.10.10:2087/scripts2/doautofixer?autofix=safesshrestart
Read more : How to restart SSHd with the default config via WHM | Views : 2572 | Replies : 0 | Forum : Server Side Actions


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22