It is currently Sun May 19, 2024 7:15 pm

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

Roundcube: MySQL to SQLite

cPanel 11.25 introduces a new feature: The ability to have RoundCube use SQLite instead of MySQL. After benchmarking resource usage and performance, I’ve come to the conclusion that SQLite is definitely the best way to go for Roundcube. Having trouble making the decision? This article may help clear things up for you.

Here are the pro’s for running Roundcube over SQLite:

* SQLite is generally faster than MySQL
* Since the SQLite databases are stored ...
Read more : Roundcube: MySQL to SQLite | Views : 3230 | Replies : 0 | Forum : Server Side Actions


Roundcube backup/logs location

Roundcube backups and logs can be found at the following directory on the cPanel-based server:
Code: Select all
ls -la /var/cpanel/roundcube

Simple way to list all the available backups in this directory is:
Code: Select all
find /var/cpanel/roundcube -maxdepth 1 -type f -name "roundcube.backup.sql*"


Via root SSH access, the following command may be used to monitor the Roundcube logs while sending a test message in attempt to trigger the issue (and to see the resulting error details that are logged):
tail ...
Read more : Roundcube backup/logs location | Views : 2757 | Replies : 0 | Forum : Server Side Actions


Re-Install Auxiliary cPanel Software scripts

Cpanel has a lot of supporting software that you may be using on your server. In case something goes amiss, here is a list of scripts that reinstall cpanel-provided software on your system. For most all of these, you can pass a –force as an argument to force a reinstall of the application.

cPanel
Code: Select all
/scripts/upcp

MySQL
Code: Select all
/scripts/mysqlup

PostgreSQL
Code: Select all
/scripts/installpostgres

Roundcube
Code: Select all
/usr/local/cpanel/bin/update-roundcube

Horde
Code: Select all
/usr/local/cpanel/bin/update-horde

Squirrelmail
Code: Select all
/usr/local/cpanel/bin/update-squirrelmail

phpMyAdmin
Code: Select all
/usr/local/cpanel/bin/updatephpmyadmin

pureFTP
Code: Select all
/scripts/ftpup

Exim
Code: Select all
/scripts/eximup

Courier IMAP
Code: Select all
/scripts/courierup

Dovecot ...
Read more : Re-Install Auxiliary cPanel Software scripts | Views : 2746 | Replies : 0 | Forum : Server Side Actions


Bash alias for nice vzlist output

For nice vzlist output on the carrier server following bash alias should be set:

File /root/.bashrc
Code: Select all
alias vzlist="vzlist -o veid,ip,hostname,numproc,numfile,numflock,numtcpsock,kmemsize,physpages,laverage -a"

Special thanks to Vladimir B.
Read more : Bash alias for nice vzlist output | Views : 2483 | Replies : 0 | Forum : OpenVZ related


OpenVZ VPS fake SWAP inside it

In case if we need swap for running some specific software, we can do the following inside VPS:

1) Create the fake-swap.sh shell-script:
Code: Select all
#!/bin/bash

SWAP="${1:-512}"

NEW="$[SWAP*1024]"; TEMP="${NEW//?/ }"; OLD="${TEMP:1}0"

umount /proc/meminfo 2> /dev/null
sed "/^Swap\(Total\|Free\):/s,$OLD,$NEW," /proc/meminfo > /etc/fake_meminfo
mount --bind /etc/fake_meminfo /proc/meminfo

free -m

2) Make script executable;
As you can see from script's code the default size of swap will be 512Mb, but if you need more bigger swap you may run ...
Read more : OpenVZ VPS fake SWAP inside it | Views : 6389 | Replies : 1 | Forum : OpenVZ related


Unpack/modify initrd image (TODO)

Code: Select all
file /boot/initrd-2.6.18-194.8.1.el5.img
#/boot/initrd-2.6.18-194.8.1.el5.img: gzip compressed data, from Unix, last modified: Tue Jul 13 18:30:50 2010, max compression

Rename it to end in .gz and uncompress:
Code: Select all
gzip -d initrd-2.6.18-194.8.1.el5.img.gz
file initrd-2.6.18-194.8.1.el5.img
#initrd-2.6.18-194.8.1.el5.img: ASCII cpio archive (SVR4 with no CRC)

Let's open the compress cpio file:
Code: Select all
mkdir initrd_uncompressed
cd initrd_uncompressed
cpio -dumi < ../initrd-2.6.18-194.8.1.el5.img

To pack modified content back into initrd image do the following:
Code: Select all
find . |cpio -H newc -ov |gzip -c - > ../initrd-2.6.18-194.8.1.el5.img


...
Read more : Unpack/modify initrd image (TODO) | Views : 2802 | Replies : 0 | Forum : Linux specific




FreeDBS - check port dependencies (raw)

If you intend to check whether all library dependencies are satisfied or not, you might be interested in the pkg_libchk utility from sysutils/bsdadminscripts.

If you mean "which port depends on which ports", either run pkg_info -rR <portglob> for an installed port, or run make build-depends-list && make run-depends-list in a port directory under /usr/ports.

Finally: if you wonder which dependencies you still need to install for a port, run make missing in a port directory ...
Read more : FreeDBS - check port dependencies (raw) | Views : 2903 | Replies : 0 | Forum : FreeBSD specific


partprobe(8) - Linux man page

Name
partprobe - inform the OS of partition table changes

Synopsis
partprobe

Description
partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition table.

Options
This program uses short UNIX style options.

-d
Don't update the kernel.
-s
Show a summary of devices and their partitions.
-h
Show summary of options.
-v
Show version of program.
Read more : partprobe(8) - Linux man page | Views : 2446 | Replies : 0 | Forum : Linux specific


Nagios XI

Nagios XI

Free License For Small Environments

Have a small environment you need monitored? Nagios XI will monitor up to seven (7) hosts/nodes with unlimited services free of charge! Just select the free license in the XI administration interface. Perfect for SOHO and personal use. Support services are not included when using a free license.

Pricing

Pricing for XI licenses is determined by the number of hosts (nodes) you intend to monitor. There are no ...
Read more : Nagios XI | Views : 3114 | Replies : 0 | Forum : Monitoring


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22