APACHE

To install Apache

#yum install httpd

To automatically start Apache on startup

#chkconfig –levels 235 httpd on

To start  and stop Apache

#/etc/init.d/httpd start

#/etc/init.d/httpd stop

PHP

To install PHP

#yum install php

MYSQL

To install MySQL

#yum install mysql mysql-server

To automatically start MySQL on startup

#chkconfig –levels 235 mysqld on

To set root password for mysql

#mysql_secure_installation

or

#mysqladmin -u root password rootpassword

To start or stop MySQL

#/etc/init.d/mysqld start

#/etc/init.d/mysqld start

To install phpMyAdmin

if php version is 5.1.x, use phpMyAdmin 2.x.x version.

Download the package from the following phpMyAdmin website using wget command.

http://www.phpmyadmin.net/home_page/downloads.php

#wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/2.11.11.3/phpMyAdmin-2.11.11.3-english.tar.gz

Then, extract contents.

#tar xvfz phpMyAdmin-2.11.11.3-english.tar.gz

#mv phpMyAdmin-2.11.11.3-english/* /usr/share/phpmyadmin

Download the file and extract it to /usr/share folder.

#cp config.sample.inc.php config.inc.php

Edit the config.inc.php file, modify the line below .
$cfg['blowfish_secret'] = ‘TypeAnything_for_Secure’;

Append a line into the /etc/httpd/conf.d/php.conf file (type the following from command line!)
# echo “Alias /phpMyAdmin /usr/share/phpmyadmin” >> /etc/httpd/conf.d/php.conf

# yum install php-mysql

restart apache server

To show line number

: set number

or

: set nu

To go to a particular line number

: line number

eg. “: 20 ” will take you to line 20

Installing the Linux Guest Additions

The VirtualBox Guest Additions for Linux are provided on the same virtual CD-ROM file as the Guest Additions for Windows described above. They also come with an installation program guiding you through the setup process, although, due to the significant differences between Linux distributions, installation may be slightly more complex.

Installation generally involves the following steps:

  1. Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules. This works similarly as described in the section called “The VirtualBox kernel module”, except that this step must now be performed in your Linux guest instead of on a Linux host system, as described there.

    Again, as with Linux hosts, we recommend using DKMS if it is available for the guest system. If it is not installed, use this command for Ubuntu/Debian systems:

    sudo apt-get install dkms

    or for Fedora systems:

    yum install dkms

    Be sure to install DKMS before installing the Linux Guest Additions. If DKMS is not available or not installed, the guest kernel modules will need to be recreated manually whenever the guest kernel is updated using the command

    /etc/init.d/vboxadd setup

    as root.

  2. Insert the VBoxGuestAdditions.iso CD file into your Linux guest’s virtual CD-ROM drive, exactly the same way as described for a Windows guest in the section called “Installation”.
  3. Change to the directory where your CD-ROM drive is mounted and execute as root:
    sh ./VBoxLinuxAdditions.run
Fedora
  1. In order to fully update your guest system, open a terminal and run
    yum update

    as root.

  2. Install DKMS and the GNU C compiler using
    yum install dkms

    followed by

    yum install gcc

Reboot your guest system in order to activate the updates and then proceed as described above.

 

DKMS

Before installing Guest Additions, you are supposed to install dkms.

DKMS stands for Dynamic Kernel Module Support.

 

FTP Client: Cyberduck (This seems to be the most popular FTP client)

Virtual Machine: Virtual Box

Torrent Client: uTorrent

Cent OS : A popular Linux server for hosting

 

 

 

CentOS

Apache Server Related Commands

To start

/sbin/service httpd start

or

apachectl start

To stop

/sbin/service httpd start

or

apachectl stop

To restart

/sbin/service httpd restart

or

apachectl restart

To show the status of httpd server

/sbin/service httpd status

or

apachectl status

 

Network Related Commands

To restart network service

/sbin/service network restart

or

/etc/init.d/network restart

 

To start network service

/sbin/service network start

To stop network service

/sbin/service network stop

Follow

Get every new post delivered to your Inbox.