Kroko Just another WordPress weblog

February 9, 2013

How to enable second-level quota on openvz VPS – Tutorial for SolusVM

Filed under: Cpanel,Linux — admin @ 8:10 pm

if you have cpanel installed in a vps and quota is not working then this solution is for you:

1. shutdown vps

2. run: vzctl set <veid> –quotaugidlimit 500 –save

(500 is number of users/groups that will be accounted. i think 500 is enough for most users)

3. start vps

now in ssh console run

/scripts/fixquotas

that’s all.

 

May 22, 2012

Install centos 6 on 3TB hdd

Filed under: Linux — admin @ 8:51 pm

yesterday i tried to install CentOS 6 on Server
I noticed that Anaconda Installer is not handling 3TB harddrives

the SOLUTION is:

Before starting the centos 6 installation on a clean server:

a) Start Server in Rescue mode
b) parted /dev/sda
c) mklabel gpt ( Answer YES )
d) q
e) parted /dev/sdb
f) mklabel gpt ( Answer YES )
g) q

Now go back and start the Centos6 installation

Kroko

September 5, 2011

Drop all tables in a MySQL database

Filed under: Linux — admin @ 3:06 pm

mysqldump -u[USERNAME] -p[PASSWORD] –add-drop-table –no-data [DATABASE] | grep ^DROP

| mysql -u[USERNAME] -p[PASSWORD] [DATABASE]

[USERNAME][PASSWORD] & [DATABASE] are all the details for your database.

« Newer PostsOlder Posts »

Powered by WordPress