| Author | 
  | 
digg
 
 
  Joined: 26 Jul 2007 Posts: 3
 
  | 
 Posted: Thu 26 Jul '07 8:41    Post subject: Static IP No Longer Works In Listen Directive | 
     | 
 
  | 
 
I have a static ip that was just working before installing PHP. It also worked after installing PHP. 
 
 
After installing PHP, I reset the server and the Apache2 service wouldn't start. After uninstalling PHP and Apache and then reinstalling Apache I found what was causing the service to not start: 
 
 
When I remove my static ip from the Listen directive and just leave it set to "80" the service starts fine. It also start when I user 127.0.0.1. 
 
 
What went wrong and how can I fix it?
 
 
Thanks! | 
 
  | 
| Back to top | 
 | 
digg
 
 
  Joined: 26 Jul 2007 Posts: 3
 
  | 
 Posted: Thu 26 Jul '07 9:19    Post subject:  | 
     | 
 
  | 
 
Forgot to mention:
 
 
Althought I stopped the IIS service and set it to "Manual" I didn't disable it initially.
 
 
When I restarted the server the IIS service started so I just disabled it and restarted again. Still, the Apache service didn't start. Keep in mind, localhost:80 works fine. | 
 
  | 
| Back to top | 
 | 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Thu 26 Jul '07 10:14    Post subject:  | 
     | 
 
  | 
 
| try on the console (cmd) netstat -nb to see which program is listen on Port 80. Or maybe a firewall is blocking apache. | 
 
  | 
| Back to top | 
 | 
digg
 
 
  Joined: 26 Jul 2007 Posts: 3
 
  | 
 Posted: Thu 26 Jul '07 16:42    Post subject:  | 
     | 
 
  | 
 
Hi.
 
 
I tried that and I don't see anything listening to port 80.  I also checked the firewall settings within the router and it's set to forward traffic from port 80. It was working fine before installing PHP and restarting.
 
 
Any other ideas? | 
 
  | 
| Back to top | 
 | 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Sun 29 Jul '07 16:40    Post subject:  | 
     | 
 
  | 
 
| anything in your error log or PHP error log?? Sure that PHP is working correct? What if you disable PHP in httpd.conf? | 
 
  | 
| Back to top | 
 |