Installing HTTP Server on Debian

This tutorial about installing HTTP Server on Debian Linux.

Installing Apache HTTP Server for HTTP (Web) Server Service

apt-get install apache2

Testing HTTP Server:
Open a web browser and enter http://localhost or its IP Address http://ip-address.

Installing PHP for Apache HTTP Server

apt-get install php4
/etc/init.d/apache2 restart
vi /var/www/testphp.php

Insert this following line into testphp.php file.

<?php phpinfo(); ?>

Save this new file.

Open a web browser and enter http://IP-Address/testphp.php .

Install PostgreSQL for Apache HTTP Server

apt-get install libapache2-mod-auth-pgsql
apt-get install php4-pgsql
/etc/init.d/apache2 restart

Mapping URLs to folders outside /var/www/

vi /etc/apache2/conf.d/alias

Insert this following line into the new file.

Alias /URL-path /location_of_folder/

<directory /location_of_folder/>
   Options Indexes FollowSymLinks
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>

Save a new file.

/etc/init.d/apache2 restart

Open a web browser and enter http://IP-Address/URL-path .

Done.. Good Luck…

Link

Share and Enjoy:

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Facebook
  • BlinkList
  • BlogMemes
  • co.mments
  • description
  • Furl
  • Ma.gnolia
  • NewsVine
  • RawSugar
  • Shadows
  • Simpy
  • Slashdot
  • Spurl
  • Technorati
  • YahooMyWeb
  • Google
 

Related Posts


2 Responses to “Installing HTTP Server on Debian”  

  1. a gravatar 1 nuriman

    mas bisa bantu saya ga??????????
    saya buat server debian. saat saya mengistall HTTP server, say mengetes httpnya di cleint, tapi ga bisa, yang bisa hanya menggunakan IP si server itu sendiri. jika saya ketikkan http://www.localdomain.com di debian, ia muncul. tapi di windows ga bisa . bisa tolong?????????????
    (balas)

  2. a gravatar 2 didik

    mohon bantuan instalasi nya di windows

Posting Your Comment
Please Wait

Yes, leave a comment here!

There was an error with your comment, please try again.