Archive for the ‘ Miscellaneous ’ Category

Adding IP addresses through shell if the server has Two Ethernet Cards and not able to do it through WHM

#cd /etc/sysconfig/network-scripts/
#cp ifcfg-eth1 ifcfg-eth1:1
#vi ifcfg-eth1:1
Now, you can add the IP

Change device to DEVICE=eth1 and IP address

ifup ifcfg-eth1:1

Setting up 10_Mbps using mii-tools command

mii-tool -F 10baseT-FD
vi /etc/sysconfig/network-scripts/ifcfg-eth0
ETHTOOL_OPTS=”autoneg off speed 10 duplex full”

If you are not able to add them through WHM, then you need to verify the file /etc/wwwacct.conf and check ETHDEV and mention the ethernet drive. The reason behind mentioning ethernet drive is to set a IP as default for setting up for new accounts.

To reset MySql root password on Ubuntu, you can use following commands.

1. Stop MySql Service on server

sudo /etc/init.d/mysql stop

2. Now configure mysqld

sudo mysqld –skip-grant-tables &

3. Login into MySql as root

mysql -u root mysql

4. Reset old password with new

UPDATE user SET Password=PASSWORD(‘NewPassword’) WHERE User=’root’; FLUSH PRIVILEGES; exit;

Note :: Replace NewPassword with required mysql root password.

100% Customer Satisfaction