School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,486 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,768 people online right now. Registration is fast and FREE... Join Now!




Debian Etch as a webserver

 
Reply to this topicStart new topic

> Debian Etch as a webserver

MattyG
Group Icon



post 20 Jan, 2009 - 08:37 AM
Post #1


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

CODE
# 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.

CODE
# nano /var/www/phpinfo.php


Add the following

CODE
<?php
phpinfo():
?>


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

Next we install Mysql5.

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


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


Install PhpMyAdmin:

CODE
# apt-get install phpmyadmin


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

CODE
Include /etc/phpmyadmin/apache.conf


Restart apache

CODE
# /etc/init.d/apache2 restart


The final piece is to install Proftpd.

CODE
# apt-get install proftpd


Open the configuration file for Proftpd

CODE
# 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.

Go to the top of the page
+Quote Post


Register to Make This Ad Go Away!


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 11/8/09 04:10AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month