Saturday, March 17, 2012

[DEBIAN 5] Web Server Configuration

Assalamu'alaikum Wr. Wb.

In this post we'll learn to configurating Web Server in Debian 5.
Why Debian ?
Debian is a stable linux distro to build a web server.

Why I choose to buid a Debian web server?
Because debian has been providing its automatic installation depedency of its packets through the debian's apt-get command.
  • All you need is full version Debian 5 installer.
  • Install php5 -> apt-get install php5 libapache5-mod-php5 php5-cli php5-common php5-cgin .

  • Restart your apache /etc/init.d/apache2 restart .

  • For example, create PHP file named index.php at /var/www/ 
          -> /var/www/index.php
  • Text any text like this:


  • Test it with your browser, text http://localhost/index.php, then your index.php will appear.

No comments:

Post a Comment