Building LAMP on Ubunta Part 3

Posted on 18. Aug, 2009 by in Server, Web Servers

Print This Post Print This Post

VN:F [1.6.3_896]
Rating: 10.0/10 (1 vote cast)

This is part 3 of Building LAMP on Ubuntu.  This sections is intended to help you get acquainted with the Ubunta LAMP server.

See previous sections:

Installing Ubuntu Operating System

Basic Ubuntu Server Configuration

Putty

Putty is a free SSH client used to log in to remotely manage your server. It can be downloaded from: here

To connect to your server open putty and enter your server’s IP address.

TVERSITY-2009-08-18-14-16-02

Press Yes to accept your server’s key

TVERSITY-2009-08-18-14-16-17

enter your username and password to log in

TVERSITY-2009-08-18-14-20-12

WinSCP

WinSCP is a Secure FTP (ftp over ssh) client used for file transfer. It can be downloaded from: here

To connect to your server open WinSCP and enter your server’s IP address, your username and password.

TVERSITY-2009-08-18-14-17-26

Press Yes to accept your server’s key

TVERSITY-2009-08-18-14-17-38

Use the GUI controls to navigate directories and drag and drop files

TVERSITY-2009-08-18-14-17-55

Apache Web Server

To verify that apache is running, at the command line type:

ps -ef | grep apache

TVERSITY-2009-08-18-21-23-47

If apache is running you will see a number of apache processes running

TVERSITY-2009-08-18-21-23-53

To make sure the apache server is accessible open your browser and enter your server’s IP address.

TVERSITY-2009-08-18-21-18-30

The default web home directory is: /var/www. This where web content and php files will be placed.

TVERSITY-2009-08-18-21-16-19

Apache log files are written to the directory: /var/log/apache2/

TVERSITY-2009-08-18-21-29-19

The Apache Configuration file apache2.conf is located in the directory: /etc/apache2/

TVERSITY-2009-08-18-21-19-42

PHP

The PHP configuration file php.ini is located in the directory: /etc/php5/apache2/

TVERSITY-2009-08-18-21-20-16

To find out details about this PHP build, we will use WinSCP to create a new file in the apache home directory named info.php. Navigate to the folder /var/www and right click inside the right file window. Select New and File

TVERSITY-2009-08-18-21-17-10

In the file enter the following code and save:

<?

phpinfo();

?>

TVERSITY-2009-08-18-21-17-40

Open your web browser and enter your ip address followed by /info.php

TVERSITY-2009-08-18-21-18-42

MySQL

To verify MySQL is running type ps -ef | grep mysqld

TVERSITY-2009-08-18-21-24-32

You will see mysql process running

TVERSITY-2009-08-18-21-24-42

The MySQL configuration file my.cnf is located in the directory: /etc/mysql

TVERSITY-2009-08-18-21-23-01

To manage MySQL database, I recommend installing either PhpMyAdmin or Webmin.

See Installing Webmin on Ubuntu 9.04

VN:F [1.6.3_896]
Rating: 10.0/10 (1 vote cast)

Tags: , ,

Print This Post Print This Post

Leave a reply