Page 1 of 1

Debian Etch as a webserver Rate Topic: -----

#1 MattyG   User is offline

  • New D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 18-January 09

Posted 20 January 2009 - 09:37 AM

Debian Etch as a simple webserver

This tutorial is based on Debian Etch, but it might work aswell on Ubuntu. First we install Apache2 and PHP5

# apt-get install apache2 php5 libapache2-mod-php5 php5-gd

After the installation has finished you’ll find the configuration file for Apche in /etc/apache2/ and your default web folder is /var/www.
Now open nano and create a test file in order to see if PHP is working.

# nano /var/www/phpinfo.php

Add the following


Open a browser and point it to your webserver http://ipaddress/test.php. You should now see information about PHP.

Next we install Mysql5.

# apt-get install mysql-server mysql-client php5-mysql

Now we need to set a password for root.
# mysql
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD(‘newpassword’) WHERE user=’root’;
mysql> exit;

Install PhpMyAdmin:

# apt-get install phpmyadmin

Then open the configuration file for Apache and add the following at the bottom of the page

Include /etc/phpmyadmin/apache.conf

Restart apache

# /etc/init.d/apache2 restart

The final piece is to install Proftpd.

# apt-get install proftpd

Open the configuration file for Proftpd

# nano /etc/proftpd/proftpd.conf

Turn off UseIPv6. You can look around in the configuration file to see if there’s anything else you might need. If you have several users connecting you can make Proftpd lock them in their home folder. Also make sure that local users can write to their folders.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1