Apache wont start with different port

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache wont start with different port

Postby chrisdevelop » 13. July 2014 17:36

I am setting upm y PC so i can make and develop websites offline until their developed fully, i have installed XAMPP and attemtped to start apache, however i know skype is using port 80 which is shown here, I did change the config to use port 2869 but i just got this below error, can anyone help in walking me through what i need to do to get a different port for apache

17:34:04 [Apache] If you need more help, copy and post this
17:34:04 [Apache] entire log window on the forums
17:34:36 [Apache] Checking default ports...
17:34:36 [Apache] Portblocker Detected: Skype.exe
17:34:36 [Apache] Checking for App: c:\xampp\apache\bin\httpd.exe
17:34:36 [Apache] Portblocker Path: C:\Program Files (x86)\Skype\Phone\Skype.exe
17:34:36 [Apache] Portblocker Service Path:
17:34:36 [Apache] Problem detected!
17:34:36 [Apache] Port 443 in use by "C:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 2436!
17:34:36 [Apache] Apache WILL NOT start without the configured ports free!
17:34:36 [Apache] You need to uninstall/disable/reconfigure the blocking application
17:34:36 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
17:34:36 [Apache] Attempting to start Apache app...
17:34:36 [Apache] Executing "c:\xampp\apache\bin\httpd.exe"
17:34:36 [Apache] Return code: 0
17:34:36 [Apache] Status change detected: running
17:34:37 [Apache] Status change detected: stopped
17:34:37 [Apache] Error: Apache shutdown unexpectedly.
17:34:37 [Apache] This may be due to a blocked port, missing dependencies,
17:34:37 [Apache] improper privileges, a crash, or a shutdown by another method.
17:34:37 [Apache] Press the Logs button to view error logs and check
17:34:37 [Apache] the Windows Event Viewer for more clues
17:34:37 [Apache] If you need more help, copy and post this
17:34:37 [Apache] entire log window on the forums
User avatar
chrisdevelop
 
Posts: 5
Joined: 13. July 2014 17:03
Location: Oxford
Operating System: windown 7

Re: Apache wont start with different port

Postby gsmith » 13. July 2014 17:48

chrisdevelop wrote:17:34:36 [Apache] Portblocker Path: C:\Program Files (x86)\Skype\Phone\Skype.exe
17:34:36 [Apache] Portblocker Service Path:
17:34:36 [Apache] Problem detected!
17:34:36 [Apache] Port 443 in use by "C:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 2436!
17:34:36 [Apache] Apache WILL NOT start without the configured ports free!


Best to give xampp ports 80 & 443 and configure skype to use different ports.
http://hemantnemade.wordpress.com/2013/03/29/87/
gsmith
 
Posts: 278
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win 10/2012R VS 14,15,16

Re: Apache wont start with different port

Postby chrisdevelop » 13. July 2014 18:05

Thats what i cannot understand it was port 80 now its 443 i even looked to see what ports were not being used and changed the port number to 5004 for ssl and 5004 for port but all i got was this
18:07:04 [Apache] Checking default ports...
18:07:04 [Apache] Attempting to start Apache app...
18:07:04 [Apache] Executing "c:\xampp\apache\bin\httpd.exe"
18:07:04 [Apache] Return code: 0
18:07:04 [Apache] Status change detected: running
18:07:05 [Apache] Status change detected: stopped
18:07:05 [Apache] Error: Apache shutdown unexpectedly.
18:07:05 [Apache] This may be due to a blocked port, missing dependencies,
18:07:05 [Apache] improper privileges, a crash, or a shutdown by another method.
18:07:05 [Apache] Press the Logs button to view error logs and check
18:07:05 [Apache] the Windows Event Viewer for more clues
18:07:05 [Apache] If you need more help, copy and post this
18:07:05 [Apache] entire log window on the forums
User avatar
chrisdevelop
 
Posts: 5
Joined: 13. July 2014 17:03
Location: Oxford
Operating System: windown 7

Re: Apache wont start with different port

Postby chrisdevelop » 13. July 2014 18:11

OK i changed skype ports and reset back to 80 and 443 and now apache is running.

Does mySql have to have the same port no i.e. 80 in config it shows as
# The following options will be passed to all MySQL clients
[client]
# password = your_password
port = 3306
socket = "C:/xampp/mysql/mysql.sock"


# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port= 3306
socket = "C:/xampp/mysql/mysql.sock"
basedir = "C:/xampp/mysql"
tmpdir = "C:/xampp/tmp"
datadir = "C:/xampp/mysql/data"
pid_file = "mysql.pid"
# enable-named-pipe
key_buffer = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log_error = "mysql_error.log"
User avatar
chrisdevelop
 
Posts: 5
Joined: 13. July 2014 17:03
Location: Oxford
Operating System: windown 7

Re: Apache wont start with different port

Postby gsmith » 13. July 2014 18:48

No, leave mysql at port 3306
gsmith
 
Posts: 278
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win 10/2012R VS 14,15,16

Re: Apache wont start with different port

Postby chrisdevelop » 13. July 2014 19:01

Then i dont know what to do it askes ne to start net service but all i get is this
18:11:18 [mysql] Attempting to start MySQL service...
18:11:18 [mysql] Executing "net start "mysql""
18:11:24 [mysql] Return code: 0
18:11:36 [main] Executing notepad.exe c:\xampp\mysql\bin\my.ini
19:01:52 [mysql] Checking default ports...
19:01:52 [mysql] Attempting to start MySQL service...
19:01:52 [mysql] Executing "net start "mysql""
19:02:00 [mysql] Return code: 0

and it still will not start
User avatar
chrisdevelop
 
Posts: 5
Joined: 13. July 2014 17:03
Location: Oxford
Operating System: windown 7

Re: Apache wont start with different port

Postby gsmith » 13. July 2014 19:39

Check the Windows Logs (Application) in the Event Viewer in administrative tools, it may give you a clue what the problem is and why the service will not start.
Due to the fact it does listen on a socket the firewall could be blocking it, make sure there's an exception in windows firewall for it. Do not forward a port through your router for it however.
gsmith
 
Posts: 278
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win 10/2012R VS 14,15,16


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 131 guests