Building LAMP on Ubunta Part 3
Posted on 18. Aug, 2009 by joshhrob in Server, Web Servers
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.

Press Yes to accept your server’s key

enter your username and password to log in

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.

Press Yes to accept your server’s key

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

Apache Web Server
To verify that apache is running, at the command line type:
ps -ef | grep apache

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

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

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

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

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

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

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

In the file enter the following code and save:
<?
phpinfo();
?>

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

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

You will see mysql process running

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

To manage MySQL database, I recommend installing either PhpMyAdmin or Webmin.
See Installing Webmin on Ubuntu 9.04
Print This Post
|









Leave a reply