Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 20th, 2004, 09:12 AM
Registered User
 
Join Date: Apr 2004
Location: Corona, CA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Having trouble running Apache

Hello,
    I just downloaded and installed Apache (apache_2.0.49-win32-x86-no_ssl.msi) and so far I have been unable to get it to work. I'm currently on page 14; basically the book wants me to test my installation by typing in http://localhost/ to make sure the success page appears. However, I get a Cannot find server / The page cannot be displayed error.

    As far as I can tell the installation went down without a problem. I have the Apache Monitor in my taskbar and when I click it it shows Apache2 with two options: Stop or Restart. I do have Zone Alarm Pro running but I disabled it and tried again to go to http://localhost/ but that didn't help either. I went to C:\Program Files\Apache Group\Apache2\htdocs and made sure there was a file named index.html but that did not fix it either; I then renamed index.html to index.htm hoping that it might have been looking for .htm instead of .html but again that didn't fix it.

    I then went onto http://httpd.apache.org/docs-2.0/platform/windows.html and it suggested for me to use this address http://127.0.0.1/ instead of http://localhost/ but I still haven't seen the success page. I then ran Ipconfig and tried http://MyIpAddresses/ (I have two: one is my Internet IP address and the other is my Local IP address for my network.) but I still did not see the success page. So I'm not really sure what to do...

    I'm currently using Windows XP Pro for my operating system. If you guys could please help me out, I would greatly appreciate it! Also in future books please cover the installation a little more in depth...
Thanks,
Ronnie

Reply With Quote
  #2 (permalink)  
Old April 20th, 2004, 09:15 AM
Registered User
 
Join Date: Apr 2004
Location: Corona, CA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I should also mention that Windows XP basic firewall is disabled! Also I gave the apache server permission from Zone Alarm before I disabled it.

Reply With Quote
  #3 (permalink)  
Old April 20th, 2004, 10:50 AM
Registered User
 
Join Date: Apr 2004
Location: Corona, CA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay I fixed the problem...

"For whom to install Apache Select for All Users, on Port 80, as a Service - Recommended if you'd like your new Apache to listen at port 80 for incoming traffic. It will run as a service (that is, Apache will run even if no one is logged in on the server at the moment) Select only for the Current User, on Port 8080, when started Manually if you'd like to install Apache for your personal experimenting or if you already have another WWW server running on port 80."

I pulled this off Apache's web site and I realized when I first installed it, I chose Current User and Apache therefore listened to port 8080. However, I reinstalled apache and choose All Users but it didnt fix anything... So i checked C:\Program Files\Apache Group\Apache2\conf and realized that I had a file named: httpd.default.conf... Basically when you reinstall apache it keeps your old httpd.conf to prevent you from losing any settings... Anyways I changed it to listen to port 80 and everything is working perfectly...

Hope this helps out anyone else who has the same problem...
Ronnie

Reply With Quote
  #4 (permalink)  
Old April 20th, 2004, 11:21 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Your firewall shouldn't have anything to do with this. I have two firewalls running and have never had a problem.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
Reply With Quote
  #5 (permalink)  
Old April 22nd, 2004, 12:53 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For future reference, you can view the running services on Win 2000/XP from the administration panel. You can view IIS's settings from the Services application.

You can also run netstat from the command shell (Start->Run->"cmd") to get a list of all active, recently active, and listening ports on your system. If your webserver is running properly, you should see that your machine is listening on port 80. If you're using SSL for https connections, you should also be listening on port 443.


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
  #6 (permalink)  
Old June 22nd, 2004, 01:15 PM
Authorized User
 
Join Date: Jun 2004
Location: London, , Canada.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I ran netstat and it shows something using 8080 so anywhere it says 8080 I should change it to just 80? How do I know if I'm using SSL? Thanks. This is all completely new to me so I'm gonna need all the help I can get. lol

Reply With Quote
  #7 (permalink)  
Old June 23rd, 2004, 01:24 AM
Registered User
 
Join Date: Apr 2004
Location: Corona, CA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Maedhros ~V~
 I ran netstat and it shows something using 8080 so anywhere it says 8080 I should change it to just 80? How do I know if I'm using SSL? Thanks. This is all completely new to me so I'm gonna need all the help I can get. lol
I'm not sure how you can tell if your running SSL, if you have simply installed Apache, MySQL, and PHP, you will not have SSL running...

I can help you change the port you are wishing to listen to.
Go to C:\Program Files\Apache Group\Apache2\conf\ and edit the file "httpd.conf" with your favorite text editor, then find the following:

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
<--- Change that # to whatever you would like it to be.

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName asus.mshome.net:80
<--- Change that # to whatever you would like it to be.

That should be all you need to do in order to change the port..
You should be set from there :D
Hope that helps...
Reply With Quote
  #8 (permalink)  
Old June 23rd, 2004, 02:35 PM
Authorized User
 
Join Date: Jun 2004
Location: London, , Canada.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've changed both of those and still nothing. I installed Apache for current user and not for all users. I am running XP and I am on a router as well as behind Norton Firewall. Someone already mentioned they've had no problems with their firewalls though.

Reply With Quote
  #9 (permalink)  
Old July 10th, 2004, 08:21 AM
Authorized User
 
Join Date: Jul 2004
Location: Connah\'s Quay, , United Kingdom.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default

I'm having the same problem once it has installed it comes up with DOS windows which are errors please help someone:( I am also on a router but not behind a firewall.

Maybe if we open the ports 80 on our router it would work?

http://www.uggle.com
http://www.leap2.co.uk
webmaster@leap2.co.uk
andrewjones702@hotmail.com
Reply With Quote
  #10 (permalink)  
Old July 22nd, 2004, 11:53 AM
Authorized User
 
Join Date: Jul 2004
Location: Las Vegas, NV, USA.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Maedhros ~V~
 I ran netstat and it shows something using 8080 so anywhere it says 8080 I should change it to just 80? How do I know if I'm using SSL?
If you installed "apache_2.0.50-win32-x86-no_ssl.msi" or any similar version that has this (no_ssl) in it , you are not running SSL.

Port 8080 is a common secondary HTTP port, it is rarely used for (and should not have) SSL connections running on it. Port 443 is for SSL.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache dpkbahuguna ASP.NET 2.0 Basics 9 May 21st, 2008 11:33 AM
running CGI in Apache-Linux sunilosunil Linux 2 March 29th, 2005 04:51 AM
Apache javaApache BOOK: Professional Apache Tomcat 0 September 22nd, 2004 03:53 AM
Trouble with Apache Install ftmarkle BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 July 22nd, 2004 04:39 AM
Apache Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 July 10th, 2004 08:00 AM



All times are GMT -4. The time now is 12:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.