Friday, September 10, 2010

Can't mount: /vz/root/100 /vz/private/100: No such file or directory

When you start a VPS, you may got this error:
Can't mount: /vz/root/100 /vz/private/100: No such file or directory


[root@testpc ~]# vzctl start 100
Starting container ...
Can't mount: /vz/root/100 /vz/private/100: No such file or directory


To fix this using


# umount /vz/root/100


then,


# vzctl start 100






.

Wednesday, September 8, 2010

-bash: ./sc_serv: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

[root@testpc ~]# ./sc_serv sc_serv.conf
-bash: ./sc_serv: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory




when you try ot run " ./sc_serv ", you may got the error like this '-bash: ./sc_serv: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory'




To solve this error, you need to install glibc 32 bit


[root@testpc ~]# yum install glibc.i686


[root@testpc ~]# rpm -qf /lib/ld-linux.so.2
glibc-2.11.90-15.i686


[root@testpc ~]#./sc_serv
*******************************************************************************
** SHOUTcast Distributed Network Audio Server
** Copyright (C) 1998-2004 Nullsoft, Inc.  All Rights Reserved.
** Use "sc_serv filename.ini" to specify an ini file.
*******************************************************************************
......
.......
.........
............
...............
.................


:)



Friday, September 3, 2010

HOw to install WordPress(Centos):

HOw to install  WordPress :


Before installing wordpress you have to install httpd,php and mysql..



# yum -y install httpd*  php*  mysql-server
# chkconfig httpd on
# chkconfig mysqld on
# /etc/init.d/mysqld start
# /etc/init.d/httpd start



Create wordpress database:

# mysql -u root -p
mysql> CREATE DATABASE Databasename;
(eg: CREATE DATABASE wordpressdb;)
mysql> show databases;
mysql> exit

Download and configure wordpress:

wget http://wordpress.org/latest.zip
unzip latest.zip
cd wordpress
cp -a * /var/www/html
cd /var/www/html
mv wp-config-sample.php wp-config.php

# vi wp-config.php

--edit in this line--

define('DB_NAME', 'wordpressdb');
define('DB_USER', 'root');
define('DB_PASSWORD', 'mysqlrootpass');

Server configuraion is completed.. now you have to do the online confiuration..

http://{ip or hostname}/wp-admin/install.php


Enjoy....... :)