Installing LAMP On Linux Mint


Cheap reseller Hosting


Installing LAMP (Linux, Apache, MySQL and PHP) On Linux Mint. 

LAMP stands for Linux, Apache, MySQL, PHP. How to install Linux the L of LAMP.

LAMP_ashishkale_in

Install Apache

To start off we will install Apache.

1) Open up the Terminal

(Applications > Accessories > Terminal)

2) Copy/Paste the following line of code into Terminal and then press enter

sudo apt-get install apache2

3) Type you’re password, and then press enter.

The page should display the words

.

.

.

.

“It works!” 

 

Testing Apache

 

To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1) Open up any web browser and then enter the following line.

http://localhost/

2) You should see a folder entitled apache2-default/.

3) Open it and you will see a message saying 

.
.
.
.
“It works!”, congrats to you!

 

Install PHP

PHP is an open source web scripting language that is widely use to build dynamic webpages.

To install PHP

1) Open up the Terminal

(Applications > Accessories > Terminal)

2) Type in this command

sudo apt-get install php5 libapache2-mod-php5

After you answer yes to the prompt twice, PHP will install itself.

3) It may also be useful to add php to the directory index, to serve the relevant php index files

sudo nano /etc/apache2/mods-enabled/dir.conf

 

Test PHP

To ensure there are no issues with PHP let’s give it a quick test run.

1) Open up the Terminal

(Applications > Accessories > Terminal)

2) Type in this command

sudo gedit /var/www/testphp.php

This will open up a file called phptest.php.

3) Copy/Paste this line into the phptest file:

<?php phpinfo(); ?>

4) Save and close the file.

5) Now open you’re web browser and type the following into the web address:

http://localhost/testphp.php

The page should look
.
.
.

Congrats you have now installed both Apache and PHP!

 

Install MySQL

To finish this guide up we will install MySQL. MySQL is a powerful database management system used for organizing and retrieving data

To install MySQL,

1) Open terminal and type in these commands

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

During the installation, MySQL will ask you to set a root password. If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell.

2) Once you have installed MySQL, we should activate it with this command

sudo mysql_install_db

3) Finish up by running the MySQL set up script

sudo /usr/bin/mysql_secure_installation

4) The prompt will ask you for your current root password.

Type it in.

5) Enter current password for root (enter for none)

OK,

.

.

.

successfully used password, moving on…


Cheap web Hosting


SSH Connection Sequence


Cheap reseller Hosting


 

ssh

The following series of events help protect the integrity of SSH communication.

SSH Connection Sequence

1) A cryptographic handshake is made with the server

2) The connection between client and remote server is encrypted using symmetric cipher

3) Client authenticates itself

4) Client can now interact safely with remote server over encrypted connection

 

 


Cheap web Hosting


SSH – Secure Shell – What is it ?


Cheap reseller Hosting


SSH stands for Secure Shell and is a secure method of accessing remote systems. Wit SSH, you can login to your Linux or Unix shell command prompt and execute commands as if you were sitting right in front of the server typing at the console. SSH has a wonderful feature called SSH Port Forwarding, sometimes called SSH Tunneling, which allows you to establish a secure SSH session and then tunnel arbitrary TCP connections through it. Tunnels can be created at any time, with almost no effort and no programming, which makes them very appealing. SSH Port Forwarding can be used for secure communications in a myriad of different ways.

ssh

What is SSH?

1) The Secure Shell

2) It is a protocol not a product

3) Software based approach to network security

4) Encrypts the data sent between the computers

5) Client/Server architecture

6) Comes with all Linux distribution, Mac OS X, AIX, Sun Solaris,OpenBSD and other Unix variants

7) Ported to other operating systems, such as Windows, Palm OS,
Amiga, etc.

8) Other clients, such as, scp, sftp, etc. are also available

9) Replacement for telnet, rlogin, rsh, rcp, ftp, etc

What SSH is Not?

1) It is not a true shell like csh, ksh, sh, etc.

2)It is not a command interpreter

3) It creates secure channel for running commands on remote
computer

4) It is not a complete security solution

5) It will not protect against trojans, viruses, etc

SSH Advantages

1) IP source routing

2) DNS Spoofing

3) Data manipulation at things like routers along the network.

4) Eavesdropping or sniffing of the transmitted data.

5) IP address spoofing

Benefit of SSH Tunneling

There are several benefits to using SSH:

1) Connection to a server from behind a firewall when the server port is blocked.

2) Automatic authentication of users, no passwords sent in plain text to prevent the stealing of passwords.

3) Multiple strong authentication methods that prevent such security threats as spoofing identity.

4) Encryption and compression of data for security and speed.
Secure file transfer.


Cheap web Hosting


1 2