Forum Moderators: phranque

Message Too Old, No Replies

Apache and Norton

         

Maedhros

4:38 am on Jun 28, 2004 (gmt 0)

10+ Year Member



I've installed Apache but have yet to get it to work. When I type in localhost in my browser it tells me the page can not be displayed. I've changed the port it's listening on and disconnected from the router and still can't fix it. I've also tried disabling Norton Firewall but still nothing. I've noticed that once Norton decides to block something it will continue blocking it even while disabled. Is there anyway to configure it to let Apache work while it's running? Thanks

mack

4:45 am on Jun 28, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You will almost certainly have to open port 80 on your firewall to let traffic in. Port 80 is the http port.

I have not used Norton firewall but you should be able to do this through the admin area.

Because you are not able to access localhost this makes me wonder if Apache is running. The firewall should not block internal traffic. It only acts as a safety net to incoming hits.

Mack.

willybfriendly

5:33 am on Jun 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For whatever reason, on a win box Norton and Zonealarm both will block traffic to/from the same machine it is running on. Go figure...

On ZoneAlarm you can assign Apache to the trusted zone and get it to work.

NIS does not have an easy way to do this that I have found. You can manually configure it.

WBF

Maedhros

3:44 pm on Jun 28, 2004 (gmt 0)

10+ Year Member



I checked and port 80 and 8080 are open on Norton. I've also tried adding localhost and 127.0.0.1 to the accepted sites list and still got nothing. If I have a computer not running and Norton and not connected to the internet I should be able to test Apache and make sure it's working right?

outrun

4:14 pm on Jun 28, 2004 (gmt 0)

10+ Year Member



To setup programs in NPF NIS, NPF configuration [service1.symantec.com].

On the other hand you may not have apache setup properly if you disable norton firewall and it still doesn't work.

regards,
Mark

chudz

4:19 pm on Jul 10, 2004 (gmt 0)

10+ Year Member



I have got the same problem but i got tow DOS error screen just after i installed saying that port 80 maybe be in use. BUT IIS isnt on my system i check in services and also i behind a router :S can you help please

gergoe

10:36 pm on Jul 10, 2004 (gmt 0)

10+ Year Member



If it claims that the port is in use, then it is in use. Either it is the apache running as a service, either the iis (check the "world wide web publishing service" and the "iis admin service" services in the services panel), or an other sort of software is listening on the port 80 (port forwarders, p2p clients, etc). If you're in doubt close all of the running programs, also from the system tray, turn off the security programs like norton internet security and try starting the apache again.

chudz

11:48 pm on Jul 10, 2004 (gmt 0)

10+ Year Member



ok ive done that now it works but now i get some other errors. Sorry I am really new to this! thank you for the help :)
error when doing apache test
can not load C:\PHP\sapi\php4apache.dll into server

error when starting apache server
no installed service "apache2"

gergoe

1:47 am on Jul 11, 2004 (gmt 0)

10+ Year Member



If you're running apache 2 then you need to load the php4apache2.dll, not the other one (that's for the apache 1.3.x)
If still not working then try/check the following:
  1. Check that the C:\PHP\sapi\php4apache2.dll file exists
  2. Copy all the dll files from the C:\PHP\dll directory to the c:\windows\system32 (or if you're running win9x or winme then c:\windows\system)
  3. Copy the C:\PHP\php.ini-dist file to c:\windows\php.ini
  4. Check the php.ini file (in the windows dir) and change all the settings you'd like, and pay attention to the extension_dir entry which should point to one of the C:\PHP\extensions or C:\PHP\ext directories (depending on which php you installed)
If all of the above are correct the php should work, therefore the apache has to start up properly.

chudz

1:31 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



I'm getting ANOTHER error. In this book it tell me to change the default dir for apache and i did everything it tells me to:

1. Locate the section of the file that resembles this text:
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot “C:/Program Files/Apache Group/Apache2/htdocs”
2. Change the last line of this section to:
DocumentRoot “C:/Program Files/Apache Group/Apache2/test”
Notice that this uses forward slashes instead of backslashes.
3. Locate the section of the file that resembles this text:
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something’s not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory “C:/Program Files/Apache Group/Apache2/htdocs”>
4. Change the last line of this section to:
<Directory “C:/Program Files/Apache Group/Apache2/test”>
5. Save your file and restart Apache so it can recognize the changes you made to the config file.
Now create a small “test” program to make sure Apache can find your directory.
Open Notepad and type the following:
<HTML>
<HEAD>
<TITLE>Apache testing</TITLE>
</HEAD>
<BODY>
If this works, we did it!
</BODY>
</HTML>
Save this as index.html in the “test” directory you created. Now open your browser, and type
[localhost...]

I do all this and restart Apache and it says there is an error. Am i missing somthing!?

gergoe

1:54 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



Can you post the error message please?

chudz

2:34 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



This is my error log:

[Sun Jul 11 01:40:08 2004] [notice] Parent: Created child process 2108
[Sun Jul 11 01:40:08 2004] [notice] Child 2108: Child process is running
[Sun Jul 11 01:40:08 2004] [notice] Child 2108: Acquired the start mutex.
[Sun Jul 11 01:40:08 2004] [notice] Child 2108: Starting 250 worker threads.
[Sun Jul 11 02:00:04 2004] [notice] Parent: Created child process 2772
[Sun Jul 11 02:00:04 2004] [notice] Child 2772: Child process is running
[Sun Jul 11 02:00:04 2004] [notice] Child 2772: Acquired the start mutex.
[Sun Jul 11 02:00:04 2004] [notice] Child 2772: Starting 250 worker threads.
[Sun Jul 11 02:10:06 2004] [notice] Parent: Created child process 1836
[Sun Jul 11 02:10:07 2004] [notice] Child 1836: Child process is running
[Sun Jul 11 02:10:07 2004] [notice] Child 1836: Acquired the start mutex.
[Sun Jul 11 02:10:07 2004] [notice] Child 1836: Starting 250 worker threads.
[Sun Jul 11 04:18:56 2004] [error] [client 24.62.178.243] request failed: URI too long (longer than 8190)

When i type [localhost...] into my browser it just comes up with the normal sucess screen! I did change the dir i'll show you this is what the httpd.conf looks like now:

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Group/Apache2/test"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/Apache Group/Apache2/test">

gergoe

2:59 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



So if in understand well you changed the DocumentRoot, and when you tried to restart the apache you got an error. But you can still access your server and instead of the directory you've created you still got the original page? If so then you have some problems in the configuration, i'd suggest you to uninstall and reinstall apache following the instructions available on the apache httpd website [httpd.apache.org]. If you need php installed then follow the instructions on the php website [php.net].

chudz

1:57 am on Jul 12, 2004 (gmt 0)

10+ Year Member



ok kool thanks i fixed it all now but i have encounter another problem i got the test/index.html to work but now i have done a phptest.php which wont work! ill make a new thread
please help if you can!