UNIX BLOG
Blog for NIX system based administrators
Linux Administration
как установить mpm_itk на centos 5 (ISPMANAGER)
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm yum install –enablerepo=webtatic httpd-itk service httpd stop изменим строчку HTTPD в файле /etc/sysconfig/httpd на HTTPD=/usr/sbin/httpd.itk в каждом VirtualHost нужно прпоисать AssignUserId vhost-user vhost-group это можно сделать скиптом. perl -p -i -e ‘s/SuexecUserGroup/AssignUserID/g’ /etc/httpd/conf/httpd.conf в /etc/httpd/conf.d/php.conf добавляем LoadModule php5_module modules/libphp5.so в /etc/httpd/conf/httpd.conf добавляем StartServers 1 MinSpareServers 1 MaxSpareServers 5 ServerLimit 110 MaxClients 100 […]
Tags: centos, ispmanager, mod_itk, mpm_itk
Posted in Linux Administration | No Comments »
How to change Forgotten Mysql root Password
To reset forgotten root password in Linux(Ubuntu,Kubuntu,debian,redhat,centos,fedora) you need to do the following things: mysqld_safe –skip-grant-tables mysql –user=root mysql update user set Password=PASSWORD(‘new-password’) where user=’root'; flush privileges; exit;
Tags: change mysql password, forgotten password, linux root, mysql, reset
Posted in Linux Administration | No Comments »
install apache php and mysql on gentoo
USE=”php mysql php5 status security mod_rpaf rpaf cgi SSL INFO ssl gzip openssl mod_php” emerge apache apr apr-util apache-tools openssl php mysql
Posted in Linux Administration | No Comments »
Gentoo emake failed
Gentoo emake failed nano /etc/make.conf find safe cflags http://en.gentoo-wiki.com/wiki/Safe_Cflags and emerge gentoo-tools revdep-rebuilt emerge your package
Tags: cflags, emake failed, emerge, gentoo
Posted in Linux Administration | No Comments »
Create a username in linux with home directory
useradd -b /home/username/ -d /home/username -p yourpassword -m username
Posted in Linux Administration | No Comments »
How to install gentoo on xen vps
This article will show how to create a xen gentoo vps. mkdir /tmp/gentoo && cd /tmp/gentoo links http://www.gentoo.org/main/en/mirrors.xml Choose your mirror and download stage3 file – latest release something like stage3-amd64-20120308.tar.bz2 <code>tar xvjpf stage3-*.tar.bz2</code> One more time choose a mirror <code>links http://www.gentoo.org/main/en/mirrors.xml</code> Get the latest portage from snapshots and untar it. ( usually it's snapshots/portage-latest.tar.bz2 […]
Tags: gentoo xen vps
Posted in Linux Administration, Xen administration | 1 Comment »
Disable ipv6 on centos 5 6 or other system like debian ubuntu
Usually it’s very important to disable ipv6 feature , anyway on the most virtual servers it’s not in use, also it’s interfere in the work of commands like netstat -n or iptables. In this article I will show how to disable ipv6 definitivly from the server. first of all echo “options ipv6 disable=1″ > /etc/modprobe.d/disable-ipv6 […]
Tags: centos, debian, disable, ifconfig, ipv6, ipv6 disable, ipv6 turn off, turn off, ubuntu
Posted in Linux Administration, Xen administration | No Comments »