Question:
How to create own web server?
?
2010-11-19 03:20:37 UTC
I need a web server for business purpose,any body is there to help me.
Five answers:
2010-11-19 03:23:49 UTC
you will want apache, php and mysql most likely

then anything you put in your apache web folder will be accessible from your address (after port fowarding)

all are free
What do you mean its possible?
2010-11-19 03:28:59 UTC
Creating your own web server is an ambitious thing to do. Web servers a very complex softwares that are responsible for making the internet possible. for example the page you are currently viewing this answer from is coming from the yahoo web server to your screen (Browser). If you want to run a business on the net, i assume you want to create a website and then put it on a web server. The job of getting the site designed is yours! hire some one if you cant do it. after that, look for an internet service provider (ISP). you can ask which ones are in your area. the ISP's have the web servers(apache, IIS etc). all you do is give them your website and pay them a small yearly fee and they will put your website on the internet. They will ask you for a domain name of your choice! which basically means the name of your website. you need to find a free one. you can do this by trying to type the website name in your browser. if it pops a website!!!!!!!!!! sorry try again with a different name, if it does not, and brings a blank page or goes to a search engine! you got it.
lashley
2016-11-01 05:20:55 UTC
IIS is thoroughly free. yet, it is in uncomplicated terms accessible in XP professional, 2000, NT 4, and Server 2003 - so once you've ANY of those, there is no more advantageous fee. if you're attempting to run the web website for relaxing, it is high quality - yet when you're doing it for corporation, you may want to be stupid to run it at domicile. an information superhighway hosting corporation in many cases supplies: *Redundant information superhighway connections *Backup means *Guarenteed uptime *administration *protection you may want to get all this at domicile, yet then you actually might want to be paying a approaches, a approaches more advantageous than a $10-$50 month-to-month fee to a hosting corporation. All that suggested, there is not some thing incorrect with Apache both... yet once you've IIS, why not use it?
TechMonkeys
2010-11-19 03:23:37 UTC
You have a couple of options you can learn all about Apache or IIS as your webserver platform, learn how to manually configure setup and update these options.



Or you can install WAMP server which will install Apache Server, PHP and MySQL at the click of a couple of buttons and have your web server functional in 2 minutes.



WAMP server is free and downloadable at the link below
Shaun A
2010-11-19 03:59:21 UTC
I would sugest using Linux, use Ubuntu if you are new th the linux would. It is a lot more reliable then WINDOWZZZZ ever is, but you have to use the command line for a lot of the configuring.

Here are the steps to get you up and running in Linux:



The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.Apache v2 is the next generation of the omnipresent Apache web server. This version - a total rewrite - introduces many new improvements, such as threading, a new API, IPv6 support, request/response filtering, and more.



Install Apache2 in Ubuntu



sudo aptitude install apache2



This will complete the installation.



After installation Type the server’s IP address (or alias if you added the server to your /etc/hosts file) in your browser’s address bar or, if you are browsing on the server itself, type 127.0.0.1 or localhost. If an error occurs, then you will have to edit the apache2.conf file to ensure that Apache can fully resolve the server’s name.If you have any problem then you have to edit the apache2 configuration file using the following command



sudo nano /etc/apache2/apache2.conf



Add the following line somewhere



ServerName localhost



or



ServerName yourserverip



Save and exit the file



Now you need to restart Apache server using the following command.



sudo apache2ctl restart



Change default document root in Apache2



The main configuration file located at /etc/apache2/apche2.conf.If you want to change the default document root you need to edit the /etc/apache2/sites-available/default file and look for this line “DocumentRoot /var/www/” here you can change where ever you want to change.For example if you want to change /home/www the above line looks like this “DocumentRoot /home/www/”.



Save and exit the file



Now you need to restart Apache server using the following command.



sudo apache2ctl restart



Enable PHP support for apache2 webserver



If you want to enable php5 or php4 support to your apache webserver use the following commands to install require packages



For PHP5



sudo aptitiude install php5 libapache2-mod-php5



For PHP4



sudo aptitiude install php4 libapache2-mod-php4



You also make sure the php5 and php4 modules are enabled using the following commands



sudo a2enmod php5



sudo a2enmod php4



After installing php support you need to restart apache webserver using the following command



sudo apache2ctl restart



Test your PHP Support foe apache webserver



To check the status of your PHP installation



sudo nano /var/www/testphp.php



and insert the following line







Save and exit the file



Now open web browser at http://yourserveripaddress/testphp.php and check.



Enable CGI and perl support for apache2 server



You need to install the following package



sudo aptitude install libapache2-mod-perl2



Configure a cgi-bin directory



You need to create a cgi-bin directory using the following command



sudo mkdir /home/www/cgi-bin



Configuring Apache to allow CGI program execution is pretty easy. Create a directory to be used for CGI programs and add the following to the site configuration file (again between the tags).



ScriptAlias /cgi-bin/ /home/www/cgi-bin/





Options ExecCGI

AddHandler cgi-script cgi pl





The first line creates an alias that points to the directory in which CGI scripts are stored. The final line tells Apache that only files that end with the *.cgi and *.pl extensions should be considered CGI programs and executed.



Test your Perl Program



cd /home/www/cgi-bin



sudo nano perltest.pl



Copy and paste the following section save and exit the file.



###Start###



#!/usr/bin/perl -w

print "Content-type: text/html\r\n\r\n";

print "Hello there!
\nJust testing .
\n";



for ($i=0; $i<10; $i++)

{

print $i."
";

}



###End###



make sure you change permissions on it



sudo chmod a+x perltest.pl



Now open your web browser open http://yourserverip/cgi-bin/perltest.pl.It should be working.





After all that is done, go and download webmin from http://www.webmin.com/. This will allow you to access and control your server from a GUI like console.



If you have a dynamic IP address link most people do, you will also need to use something like DynDNS.com to basically watch and update your IP address to your domain name/IP address.



Oh did I mention that all of this was free!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...