Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Needed to install Apache 2.0.54 on WinXP

Status
Not open for further replies.

pegazaus

Instructor
Aug 16, 2005
22
0
0
SE
Hello

I'm trying to install apache2.0.54 on winXP. I want to use it to test my own PHP files on my local PC.
During installation I 've choosen :
1- whatevernet.com
2- 3-webmaster@whatevernet.com
then I've choose the option that listens to 8080 (personal use)

I really dunno what I'm doing. When I tried to test with the following commands:
" or " I got an error page like when there is no connection.
In the "Monitor window", when I ticked on the connect button, a popup window asked me to enter a remote computer name. I dunno what to enter.
As you notcie I have no idea about Apache server.

Any suggestions about how Apache should be installed? I only want to use it to test my PHP files om my laptop. My Laptop is stand alone PC (not connected to any network)
I appreciate all kind of help. Thx in advanced.
 
If this is a stand alone machine there is no need to change the port that apache listens on. By default, all http traffic is on port 80. If you change it, then you have to include the new port in the url. It also listens for all addresses by default including the loopback device (127.0.0.1). If apache is not answering to then in is not running. I seem to remember that after you install the apache software, you need to install it as a service. You will need apache's bin directory in your path or you will need to change to that directory and type a command like :

apache -k install

This will install a service called apache2. If you want a differnt name issue this command:

apache -k install -n "ServiceName"

Where "ServiceName" is any name you want without the quotes.

If you want to change the port apache listens on, you will need to edit a file called httpd.conf. You will find it in the directories that were created when installing apache. It should be in a sub-directory called /conf. Once you find it, open it with notepad and look for the "Listen" directive. And change it to "Listen *:80", again without the quotes. Any time you edit this file, you need to restart apache. I'm not sure what the command is on XP but it will be something like "apachectl restart" or "httpd restart" or even "apache restart". One last thought. Your browser may have a problem resolving a made up domain name for your server. It will try to look the name up using dns. It would be best to just use you hostname (machine name)or localhost as the ServerName which is also in httpd.conf. Then in your browser type either the machine name or localhost.
 
try if you're just heading for php...this makes the whole apache-php-mysql-installation-process obsolete, you just start it and have a complete amp on your system.

__________________________________________
a programmer is a tool that converts coffee into code...
aschi666, sthcomputing.de
 
Hi, I am on my way to building a linux web server. Still not sure of the best (free) type of linux for a web server.
And not really sure if Apache would be the best to run on linux either. Hope to build a hosting company one day. But for now a lot of test runs!! Would really appericate any input. Thanks for lookin.[wink]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top