If you see "iptables: Resource temporarily unavailable" error when restarting Advanced Policy Firewall (APF) on your Linux server, then take the following steps:
1. Add up some more RAM memory to your box
2. Reload your iptables:
service iptables restart
To reset your MySQL root password in SSH, simply run the following sequence of commands:
/etc/init.d/mysqld stop mysqld_safe --skip-grant-tables & mysql -u root use mysql; update user set password=PASSWORD("newrootpassword") where User='root'; flush privileges; quit /etc/init.d/mysqld stop /etc/init.d/mysqld start
On Fedora 7.x based systems, which come with MariaDB instead of MySQL, run:
systemctl stop mariadb
mysqld_safe --skip-grant-tables &
mysql -u root
update user set password=PASSWORD("newrootpassword") where User='root';?>
At Tag1 Consulting we do a lot of work on increasing web site performance, especially around Drupal sites. One of the common tools we use is memcached combined with the Drupal Memcache module. In Drupal, there are a number of different caches which are stored in the (typically MySQL) database by default. This is good for performance as it cuts down on potentially large/slow SQL queries and PHP execution needed to display content on a site.
At times we often forget the webmin password for a given user, say root, or after repeated failed login attempts webmin locks the account and one cannot login anymore. In this case you need to wait for couple, three minutes and you will be able to try to login again. However, if you've forgotten your password and need to change it, then login to the server via ssh and run the following command:
/usr/libexec/webmin/changepass.pl /etc/webmin root NEWPASSWORD
/usr/share/webmin/changepass.pl /etc/webmin root NEWPASSWORD
To install the current stable version of git just launch simple command:
yum install git
Probably you could compile even newer version of git from the source. However, the purpose of this tutorial is to show how to install the latest version of git available in the repositories.
Install RPMforge repository following instructions on http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0...
You need EPEL repo to install php-mcrypt:
yum -y install http://mirror.us.leaseweb.net/epel/6/x86_64/epel-release-6-7.noarch.rpm yum -y install php-mcrypt
Here is the code for installing EPEL repository on CentOS 6.4:
rpm -Uvh http://fedora.mirrors.pair.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
Various instructions in Internet on the subject did not give any joy, so compiling my own sequence, which did the trick:
yum install php-pear php-devel httpd-devel gcc pcre-devel apc nano /etc/php.d/apc.ini
Put the following in apc.ini:
; Enable apc extension module extension=apc.so apc.enabled=1 apc.shm_segments=1 apc.shm_size=256 apc.stat=0
Then copy apc.php to public_html directory of your website:
cp /usr/share/pear/apc.php /home/username/public_html service httpd restart
How do you go about increasing KVM virtual machine guest's disk space from the command line if you initially set insufficient amount of disk space?
mv mykvm.img mykvm.img.bak
qemu-img create -f raw addon.raw 30G
cat mykvm.img.bak addon.raw >> mykvm.img
% fdisk /dev/vda ...
While reviewing the partion layout on one of my hard drives, I noticed a number of “Partition X does not end on cylinder boundary” messages in the fdisk output:
$ fdisk /dev/sda Command (m for help): p !> Disk /dev/sda: 80.0 GB, 80000000000 bytes 255 heads, 63 sectors/track, 9726 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xac42ac42 Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary.
virt-manager keymaps on OS X
Published on Wed, 17 Nov 2010 20:12:26 +0000 in Uncategorized. 13 Comments