Debian Linux

Configuring LAMP

 
In Yamouth ... England, that is.
Configuring LAMP
by Lawrence Bean - Monday, 13 October 2008, 7:03 PM
 
How to set up a minimal Debian 40r4a LAMP server (Linux Apache MySQL Perl)

Once the base Debian system is installed, you should connect to it via SSH from the same machine on which you can read this email. All the command-line commands below are on a separate line so you may be simply copy/paste into ssh with no need to re-type.

---------------

INSTALL BASE DEBIAN SYSTEM

---------------

1) See TechSupport->DebianLinux->"Setting Up Basic Debian"

---------------

UPDATE THE SYSTEM

---------------

1) login: [root], password: [password]

2) type the following lines and confirm "Y" to continue when prompted
apt-get install ntpdate
ntpdate 198.82.162.213
apt-get update
apt-get upgrade
You may need to restart and repeat these two steps until no more updates are available. To reboot the system, type
shutdown -r now

---------------

INSTALL APACHE2 FOR WEB SERVER

---------------

1) type the following lines and confirm "Y" to continue when prompted
apt-get install apache2

2) to test, from a remote web browser enter "http://[ipaddress]" to connect and see the "It Works!" web page

---------------

INSTALL MySQL FOR DATABASE
---------------

1) type the following lines and confirm "Y" to continue when prompted.
apt-get install mysql-server
mysqladmin -u root password [password]

2) to test, type
mysql -u root -p
and enter the password when prompted. You should see
Welcome to the MySQL monitor ...
Type "exit" to return to the command prompt

---------------

INSTALL PHP FOR WEB ADMINISTRATION

---------------

1) type the following lines and confirm "Y" to continue when prompted
apt-get install php5 phpmyadmin

2) to test, from a remote web browser enter "http://[ipaddress]/phpmyadmin" to connect and see the phpmyadmin page. Enter username [root] and password [password] to access mysql

---------------