IBM developerWorks
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 15th, 2004, 01:04 AM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Exclamation help with Apache and Perl

Hello there,

I just registered and domain name and also installed Apache web server I just don't know what to do after in order to get .cgi or .pl programs to work. Can somebody give me any advice on what to do from now?

Young

Reply With Quote
  #2  
Old October 15th, 2004, 03:15 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
What kind of server you using? *nix? windows?

Reply With Quote
  #3  
Old October 15th, 2004, 11:30 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
here's some useful guides to get started...

How to Add Perl CGI Script Support to Your Apache Server on Windows
http://www.thesitewizard.com/archive/addcgitoapache.shtml

Running CGI Scripts With Perl, Apache and Win95/98
http://www.visca.com/clueless/perl_apache_win9x.html


I'm pretty sure these guides work in Linux/Unix as well, just change the paths accordingly.

Reply With Quote
  #4  
Old October 17th, 2004, 03:58 PM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
thank you and one more question (sorry)

thanx a trillion everyone!! actually, I got the perl and CGI to work on my
windows Apache server.

here's the problem now. i just registered my domain name last week, and i don't have a
clue what to do next. couple of days ago i just forwarded my domain name, and i don't know
exactly what this does. lemme clearify my question. what do i have to do in other to get these
.pl or .cgi programs (or even .html) programs to load after typing www.mydomainname.com?
If you could give me some hand with this, I would be much appreciated.


Young

Reply With Quote
  #5  
Old October 17th, 2004, 10:06 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
Do you have a server with your files hosted?

Reply With Quote
  #6  
Old October 18th, 2004, 01:07 AM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
hmm..bit confused

hello,

what do you exactly mean by that?

Reply With Quote
  #7  
Old October 18th, 2004, 12:48 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
To have your files online you need to host them on a computer right? Do you have one already setup?

Reply With Quote
  #8  
Old October 18th, 2004, 10:45 PM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
i am not sure

Hello,

I am not sure if I did or not. Can you tell me the procedure of doing what you just mentioned?
Sorry for all the trouble. I am a beginner with these things, and I just don't have a clue what I am doing.


Sincerely,
Young

Reply With Quote
  #9  
Old October 18th, 2004, 10:56 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
Here read this http://www.w3schools.com/hosting/default.asp it has some stuff on it. If you don't understand something just say so.

Just reread your first post you state
Quote:
I just registered and domain name and also installed Apache web serve

Where did you install the Apache web server?

Reply With Quote
  #10  
Old October 19th, 2004, 01:02 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
sounds like Young hopes to run the website from his/her Windows machine... no?
i still recommend reading that turtorial...

I've set this up before, but its fairly unreliable... seeing as your computer has to be on all the time... but if you can't afford hosting, sometimes its the only option... [still involves a fee to a naming service]

Reply With Quote
  #11  
Old October 19th, 2004, 01:36 AM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
installation of Apache web server

hello,

I installed the Apache web server in my labtop, in
C drive. This is the directory :

C:\Program Files\Apache Group\Apache2

and basically in this directory, folders like cgi-bin and and
htdocs are stored

Reply With Quote
  #12  
Old October 19th, 2004, 01:48 AM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
more questions

I have one more question to ask. I just read the documentation, which you
recommended me and was wondering exactly what the documentation meant by
these following lines:

"To publish your work, you must copy your site to a web server."

First of all, does this mean that I must save my web pages in this directory?
"C:\Program Files\Apache Group\Apache2\htdocs"

"Web hosting means storing your web site on a public server"

I cannont understand this line at all. What is a difference between a web server and public server?

Young

Reply With Quote
  #13  
Old October 19th, 2004, 01:54 AM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
yup, that's true

Hello there,

Yes, that is correct. I am trying to run the website from my windows machine (a laptop running windows xp pro). The whole website business is just part of a project, which I planned for couple of months. I am trying to see if the whole plan works out.
Now, as far as turing on my machine for twenty-four hour, this won't happen, since I was planning to set up the "operation-hour" (the time, when I will turn on the machine. This website will not be any sort of e-commerce or anything like it. Just a simple project that will help me learn how the running the web site will be like. Hopefully by the time when I can afford hosting, then I might go into something more serious. Until then, this is just a simple project that I planned out. Anyhow, thanx for asking. I really appreciate it.


Young

Reply With Quote
  #14  
Old October 19th, 2004, 12:08 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
Ok if your just doing this to learn then you don't need a domain it's just a waste of money (unless you want it so no one else can take it). You are doing it correctly put your files in the "C:\Program Files\Apache Group\Apache2\htdocs" directory and you'll be able to see them by going to http://localhost/ You're on the right track.

Quote:
I cannont understand this line at all. What is a difference between a web server and public server?


A public server is a web server, well a public server has a web server running on it, that is on 24/7 and normally hosted on a fast connection and not from your home. Once you go public you definity don't want to have it running off your local computer.

Reply With Quote
  #15  
Old October 19th, 2004, 08:43 PM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
so then what is exactly Apache?

Hello,

So then what type of server is Apache? I know for sure that
it's open source http server.

And when I type in the http://localhost, it shows me the page indicating
that I have successsfully loaded the server, but it doesn't show me anything that
I saved in the htdocs folder.

I still also don't get the reason, why if I type in my registered domain name, it shows
the page indicating that the website cannot be found. Weird.

Young

Reply With Quote
  #16  
Old October 19th, 2004, 09:43 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
Apache is a web server, it's a program that runs on your computer/server that serves up the files for the visitors. When I said "A public server is a web server" I ment that it's a server (i.e a remote computer that hosts files for people that is up 24/7 normally) and on it, it runs Apache/IIS etc... and then it becomes a webserver.

Did you link the files correctly in the htdocs folder? Is there a file called index.html or index.htm? (are you using PHP?)

Your domain name won't take you to your local computer unless you tell it to, just buying a domain won't automaticly take it to your web server. You have to have it point to an IP. You could have it point to your IP (only if it's a static IP) then when you type your domain in it'd take you to your webserver, but localhost is faster .

Reply With Quote
  #17  
Old October 20th, 2004, 12:31 AM
Young Young is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Vancouver, British Columbia
Posts: 53 Young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Possibly the very last question?

Hello there,

Thank you for another helpful tip. I just found out how to link the files correctly in htdocs folder. When I type http://localhost/myfile.html, it shows the file that I created. Whew, one problem down, one problem to go (By the way, I won't be using PHP in this project, only HTML, JavaScript and CGI Perl).

You also have mentioned about pointing my domain to the static IP. Yes, I do have a static IP, but just don't know how to get my domain point to the IP. I think I will try to find out how to do this by myself, although some advice would be appreciated. It will be a good practice for me, as I am trying to understand the whole concept of webserver, domain and such and such. Anyways, thank you very much for your help. I truly appreciate it.

Young

Last edited by Young : October 20th, 2004 at 12:58 AM.