Archive for the ‘Unix’ Category

How to install AMP (Apache, PHP and MySQL)in centos

April 27th, 2009 by @HKw@! | 1 Comment | Filed in centos, Unix

I just learn to setup AMP on centos. Below are the steps

  • Download a copy of CentOS Linux and install it
  • Once your CentOS is installed. type yum install httpd to install apache web server
  • type yum install php to install PHP
  • Once PHP installed successfully, type yum install mysql-server mysql
  • Once everything finish, type service httpd start to start your apache web server, screen will show you if web server service successfully started
  • type service mysqld start to start your mysql server
  • Once both services is running, you can point your browser to http://localhost and you should see a welcome page from CentOS
  • To test php is running properly, go to /var/www/html and create an index.php file with the content below
Share

Logon On As Different User In Linux In Same Terminal Window

April 20th, 2009 by @HKw@! | No Comments | Filed in Unix

In Unix, how do I quickly changing users on Linux without having to logout while you are using bash or any other command line interface.

The su command

Using the su command we can quickly change users in a bash terminal for that type the following command;

su – username

To login as a root user

su -s

Share

How do I remove a full directory in Linux?

April 16th, 2009 by @HKw@! | No Comments | Filed in Unix

To remove a directory that is full with other files and/or other directories, use the below command.

$ rm -rf directory

rmdir command can use to remove the empty DIRECTORY(ies)

$ rmdir directory

Share
BlogCatalog