configure: error: C++ compiler cannot create executables

April 28th, 2008 admin Posted in Apache for Linux No Comments »

If you happen to encounter this configure: error: C++ compiler cannot create executables after you run # ./configure…

Try to install the package which adds C++ supports the GNU compiler collection -gcc-c++.

# yum install gcc-c++ autoconf automake


Existing lock /var/run/yum.pid: another copy is running. Aborting.

April 28th, 2008 admin Posted in Apache for Linux No Comments »

This yum error occurs if two yum processes are running at the same time. So to fix the yum error, Existing lock /var/run/yum.pid: another copy is running. Aborting.

Login as root then delete the yum.pid file:
#/var/run/yum.pid           -to remove the lock on the yum process.


Apache web server installation or httpd installation

April 25th, 2008 admin Posted in Apache for Linux No Comments »

Below are easy steps to install and launch apache web server or httpd.

First login as root.

Check previous installation of apache web server or httpd :

# rpm –qa|grep httpd

# yum remove httpd

Compile apache web server or httpd :

# tar zxvf httpd-2.2.3.tar.gz -go to the directory where the was downloaded.

# cd httpd-2.2.3.tar.gz

# ./configure –prefix=/usr/local/apache2 –enable-rewrite –enable-module=all –enable-shared=max

# make

# make install

Read the rest of this entry »


History Command

March 9th, 2008 admin Posted in Linux No Comments »

To view the list of previously typed commands you can use the bash built-in command history.

[root@localhost~]#history

You can recall commands using up and down arrow keys on your keyboard.

Read the rest of this entry »


Echo command

March 9th, 2008 admin Posted in Linux No Comments »

The bash shell uses the “echo” command to print text to the screen.

[root@localhost~]# echo “welcome to linux”