Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2004, 09:49 AM
Authorized User
 
Join Date: Jun 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache2

I have installed Apache to test my site but I can't get it to work. I've followed all the steps in the book but I think my problem is my firewall. I am connected to the internet through a router and I have Norton Firewall running. Any ideas? Thanks

 
Old June 23rd, 2004, 02:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Turn your proxy settings off, if its a windows machine you r working on, stop IIS if it is running. This should resolve the problem.

Regards

Ankur Verma
.Net and C++ Specialist
Wiley Tech Support
 
Old June 23rd, 2004, 02:18 PM
Authorized User
 
Join Date: Jun 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Where do I turn off IIS?

 
Old June 24th, 2004, 01:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Start->Settings->Control Panel->Administrative Tools->Internet Information Services

In the tree right click on
Internet Information Services->YourComputerName(Local Computer)->Web Sites->Default Web Site and select Stop


Ankur Verma
.Net and C++ Specialist
Wiley Tech Support
 
Old June 24th, 2004, 10:11 AM
Authorized User
 
Join Date: Jun 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I checked and I don't have IIS installed at all.

 
Old June 25th, 2004, 08:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

I guess I have explored every other possibility regarding your problem and I think we should go back to where we started. I dont have the same firewall as yours with me but every firewall gives you a log of what it has blocked. try to run apache and see if new entries get added to your firewall's log.

This will give you an idea if your firewall is acutally blocking Apache and if it is, you should be able to use your firewall's options to allow/unblock apache or its services.

You may also consider going through Apache's installation process once again, that helps when nothing else seems to work.

Ankur
 
Old June 25th, 2004, 06:36 PM
Authorized User
 
Join Date: Jun 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I disconnected from the router and disabled my Norton Firewall and managed to get it to work once, but it won't work again. If it is my Norton Firewall that is creating the problems does anyone have a suggestions for fixing it?

 
Old June 28th, 2004, 09:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry to come in late on this one, and I may have missed some of the conversation, if it's been shifted in here from somewhere else... but, what response do you get when you ask for:

apache –k restart

At the command line?

Dan
 
Old June 28th, 2004, 10:53 AM
Authorized User
 
Join Date: Jun 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[error] <os 2>The system cannot find the file specified. : No installed service named "Apache2".

Maybe that will shed some light on things. I also tried

apache -k start
apache -k stop

and got the same message.

 
Old June 29th, 2004, 05:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sounds like the service wasn't installed during the installation of the database. ("netstat -a" will also tell you if there's anything already hogging port 80). Is this XP Home edition? If so, that may be the problem. Most of the self-extracting packages are designed with one of the "Server" or "Professional" (aka. "rank amature"?) versions in mind. Try looking in your "Services" tab (which is found under - oh, God, where is it found under? Thinking back to my WierdOS days, I think it was somewhere like Settings > Control Panel > Services, or maybe Progarm Files > Acessories > System Tools > Information, or somewhere like that :).

Anyway, see if Apache is listed and, if not, install the service by cd'ing your way to: "C:\Program Files\Apache Group\Apache2\bin\" (or somewhere very similar) and running:

apache.exe -k install -n "Apache2" (addd a " -D SSL" argument, if your intend to use Secure Sockets Layer).

There's probably a pointy-clicky way of installing the service, too.

Best of luck.
Take it easy,
Dan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 + Tomcat5 + SSL (13)Permission denied mk1336 Apache Tomcat 0 August 29th, 2008 08:24 PM
file cannot load with apache2.00.55 GOUR CHANDRA PAUL PHP How-To 1 February 12th, 2006 06:22 PM
Problem with PHP on Apache2 OS X gwb2004 Beginning PHP 1 April 25th, 2005 10:55 AM
Help with setting up PHP with apache2 on windows mfowler Beginning PHP 3 November 5th, 2003 09:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.