Skip navigation
Currently Being Moderated

Apache port 80 in use error

Jun 2, 2011 12:26 PM

Win 32 XP Pro SP3

 

Followed David Powers article and installede Xampp and at the end got an error "port 80 or 443(ssl) already in use. Installing Apache 2.2 service failed"

 

Looked in Xampp .apache/logs but there is no error file

 
Replies
  • Currently Being Moderated
    Jun 2, 2011 2:03 PM   in reply to gbotour

    Just a wild guess, but do you have IIS running?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 2, 2011 3:48 PM   in reply to gbotour

    gbotour wrote:

     

    I click on "Start" Apache svc" and in the lower panel it states "Apache service started"

    Yes, it might have started, but the question is whether it's still running. Unless you see the "Running" label, as shown in the following screenshot, it ain't running:

     

    xampp_console.jpg

    If it fails to start, read the Apache error log.If you installed in the default location, it's at C:\xampp\apache\logs\error.log.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 3, 2011 5:23 AM   in reply to gbotour

    Yes, I saw that in your original post. If you uninstalled and reinstalled, it should have created a error log.

     

    The most common conflict with port 80 comes from Skype. If you have Skype installed, go to Tools > Options and select Advanced > Connection. Deselect the checkbox labelled "Use port 80 and 443 as alternatives for incoming connections".

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 3, 2011 8:25 AM   in reply to gbotour

    gbotour wrote:

     

    Don't know if it's relevant but during the Xampp set up I don't get a dos window as you describe in your online article "Setting up a PHP development environment for Dreamweaver" so I didn't get the opportunity to change or confirm anything.

    I think that XAMPP has recently made some changes in its installation setup. I installed XAMPP 1.7.4 to help someone troubleshoot a problem the other day, and I seem to remember that there were no command prompts at the end, but I wasn't sure if that was because I was upgrading from a previous version. The latest version of XAMPP seems to have some bugs. For example, on a 64-bit system, it displays an error message every time you start the XAMPP control panel. Also, if you turn off short open tags, as recommended in my book, the XAMPP setup screen won't display. It might be worth uninstalling and trying XAMPP 1.7.3 instead.

     

    However, before doing so, try this:

    1. Open a command prompt window.
    2. Type netstat -o -n -a | findstr 0.0:80 and press Enter.
    3. If you get a result that looks like this: TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 8704, it means that process 8704 is using port 80.
    4. Press Ctrl-Alt-Del and open the Task Manager.
    5. Check the name of the program that has PID 8704 (or whatever the number happens to be).
    6. That's the culprit.

    To change the port used by Apache, you need to edit the Apache configuration file, httpd.conf, which should be in xampp\apache\conf. Open the file in Notepad, and search for the line that reads: Listen 80. Change it to Listen 8888.

     

    A few lines further down, you'll find a line that begins with ServerName and ends with :80. Change :80 to :8888.

     

    Save httpd.conf and start Apache. After changing the port number, you need to add :8888 to localhost in your URLs: http://localhost:8888/.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2011 5:58 AM   in reply to gbotour

    I don't know what Kservice.exe does, but see if you can change its configuration to use a different port. Otherwise, you need to change the Apache port as described earlier.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2011 9:58 AM   in reply to gbotour

    gbotour wrote:

     

    Web URL http://localhost8888/

    There should be a colon between localhost and the port number: localhost:8888.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2011 1:15 AM   in reply to gbotour

    gbotour wrote:

     

    I entered http://localhost:8888/MySQL in IE8 and got "object not found"

    I'm not surprised. It should be http://localhost:8888/phpmyadmin/.

     

    By the way, I see that you're using C:\xampp\htdocs as your Web URL. It's more normal to create the testing server for different sites in subfolders of htdocs.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2011 5:18 PM   in reply to gbotour

    I am using Mr. Power's book to learn PHP for Dreamweaver CS5.  I'm on a Windows 7 pro system.  I followed the directions to install XAMPP but couldn't install b/c port 80 is being used by "NT Kernel & System".  I changed the port from 80 to 88 both places in C:\xampp\apache\conf\httpd.conf (using the Apache Friends forums) which then worked.

     

    When trying to finish up the exercise at http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html#articl econtentAdobe_numberedheader_2, everything works great using http://localhost:88/php_test/ until the end.  I can't get the MySQL to work. 

     

    I set everything according to the directions on http://localhost:88/phpmyadmin .  I've set up a user account called 'testUser'@'localhost:88' with the password 'xyz'.  I put in the information as:

     

    Connection Name: connTest

    MySQL Server:      localhost:88

    User Name:           testUser

    Password:             xyz

    Database:             php_test

     

    When I either click on "select" (for the database) or click "test", the "File Activity - localhost" box comes up and goes to "(Not Responding)" status within a few seconds.  The box is white the entire time, the text I'm coping comes from the header bar.  After a minute or two, a box comes up saying "a server timeout has occured. Possible reasons: 1. Make sure web server is up and running 2.verify ODBC DSN exists on test server".  Not sure what to do from there.  (If I've clicked on the "select" button by database, Dreamweaver will lock up so I have to shut down and restart b/c it keeps going back to the "File Activity" box.)

     

    I've also tried having MySQL Server: "localhost".  Then I get a MySQL error #1045 Access denied for user 'testUser' @ 'localhost' (using password:YES) - but I know the user name & password are correct.  I've tried retyping both 10+ times!  This is very frustrating for me, any help is much appreciated.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2011 5:28 PM   in reply to myshlp

    I forgot to add the XAMPP is running in the background and shows Apache and MySQL running.

     

    Also, when I set up the user name 'testUser'  for php_test, on the "host", I selected "local" then defined the name as 'localhost:88'

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 5, 2011 5:04 AM   in reply to gbotour

    Hello Sir,

    I had installed wamp server on one window with port 8080......and it worked fine on that window......but now i'm having a great problem in  installing the php on my another window in E drive.....I hav tried both Wamp as well as Xampp ......   and changed their ports to 8888 and 8080 respectively.......but of no use....

    The moment I write "http://localhost:8080/phpmyadmin" or "htt://localhost:8888/" ...... it takes a long time to load the page...and at the end it says Unable to open the page......as the server isn't responding................................please help me .....Here's my XAMPP  panel.....

     

     

     

    Capture.PNG

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points