Installed Apache then XAMPP

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

Installed Apache then XAMPP

Postby waxb18 » 09. January 2018 23:15

Hi All,

Complete newb here so bear with me please.

I had installed Apache 2.4 followed XAMPP only to realise that XAMPP has its own Apache folder that comes as part of it.

The issue that i have is when starting apache via xampp i get no confirmation that the service has started just simply:
"Attempting to start Apache service..."

When i look at the services.msc i can see that the Apache2.4 service is running.

visiting localhost in my browser works fine, but when i attempt to goto localhost\myPhpAdmin (lower case as well) i get a URL not found error message.

When i check the logs in the C:\Apache folder i can see that the logs are being written to
In the C:\XAMPP\apache\logs directory there is nothing being written.

I assume that the issue here is that I should not have installed Apache 2.4 at all, so the question then becomes, how i can i remove the Apache2.4 instance with affecting XAMPP.

Forgive me I'm new
waxb18
 
Posts: 7
Joined: 09. January 2018 23:01
XAMPP version: 3.2.2
Operating System: Windows

Re: Installed Apache then XAMPP

Postby Altrea » 09. January 2018 23:56

Hi,

Use your default Windows Uninstall program dialog to uninstall Apache 2.4.
Thats all.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9262
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Installed Apache then XAMPP

Postby waxb18 » 10. January 2018 12:45

Thanks Altrea, unfortunately in add/remove programs list Apache is not listed.

I've had a look online and there is a method to remove in cmd using "httpd -k uninstall" command, but I assume that this would be the service rather than Apache itself.
waxb18
 
Posts: 7
Joined: 09. January 2018 23:01
XAMPP version: 3.2.2
Operating System: Windows

Re: Installed Apache then XAMPP

Postby waxb18 » 11. January 2018 12:34

I had found the issue and resolved the Uninstall.

The version of Apache i DL'd was ApacheHaus for some reason this version did not come with an uninstaller.
To resolve I ran the the commands in cmd in the order below.

httpd -k stop
httpd -k shutdown
httpd -k uninstall

I uninstalled XAMPP - reinstalled - and now getting:

6:50:26 [Apache] Error: Apache shutdown unexpectedly.
16:50:26 [Apache] This may be due to a blocked port, missing dependencies,
16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method.
16:50:26 [Apache] Press the Logs button to view error logs and check
16:50:26 [Apache] the Windows Event Viewer for more clues
16:50:26 [Apache] If you need more help, copy and post this
16:50:26 [Apache] entire log window on the forums

I have checked the ports skype is using and have made sure that 80 and 443 are free.

Later today I will change the ports in the conf file to 8080 and 4433 and see how it goes.
waxb18
 
Posts: 7
Joined: 09. January 2018 23:01
XAMPP version: 3.2.2
Operating System: Windows

Re: Installed Apache then XAMPP

Postby Nobbie » 11. January 2018 20:13

waxb18 wrote:Later today I will change the ports in the conf file to 8080 and 4433 and see how it goes.


Dont do that, you wont like it. Instead find out, which process blocks 80 / 443. Probably Windows IIS or similar. But changing HTTP Port 80 to 8080, results in ugly URL http://localhost:8080, as you MUST provide the Port, if it is different to Port 80.
Nobbie
 
Posts: 10445
Joined: 09. March 2008 13:04

Re: Installed Apache then XAMPP

Postby waxb18 » 12. January 2018 15:00

So the frustration continues

@Nobbie When i get around to getting the service started I'll be sure to check the ports arent being used by other processes.

For now though...

I tried running the service and received the same error. Checked the error.log and it was empty.
I checked if the apache service was running and it wasnt listed in any of my services.
I visited localhost and was getting the original localhost (strange seeing as the service isnt running and i deleted the ApacheHaus version)
Deleted my cookies and refreshed and now and met with a not found error which is consistent with not having the service running (correct me if I'm wrong).

I then tried to install the service manually using the install batch file (apache_installservice.bat) and am met with the error message below.

Code: Select all
Installing Apache2.4 as an Service
The system cannot find the path specified.
Now we Start Apache2.4 :)
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

Press any key to continue . . .


Can someone point me to an alternative method if installing the apache service?
Thanks
waxb18
 
Posts: 7
Joined: 09. January 2018 23:01
XAMPP version: 3.2.2
Operating System: Windows

Re: Installed Apache then XAMPP

Postby waxb18 » 12. January 2018 15:06

UPDATE:
I managed to install the service in the cmd window by using the following in cmd:

Code: Select all
CD C:\Xampp\Apache\bin

C:\xampp\apache\bin>httpd -k install
Installing the 'Apache2.4' service
The 'Apache2.4' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd: Syntax error on line 72 of C:/xampp/apache/conf/httpd.conf: Cannot load modules/mod_access_compat.so into server: The specified module could not be found.


Now whats the deal with this module?
waxb18
 
Posts: 7
Joined: 09. January 2018 23:01
XAMPP version: 3.2.2
Operating System: Windows

Re: Installed Apache then XAMPP

Postby waxb18 » 12. January 2018 20:26

I've been strugling for hours to get this working, some help would really be appreciated.

Thanks
waxb18
 
Posts: 7
Joined: 09. January 2018 23:01
XAMPP version: 3.2.2
Operating System: Windows

Re: Installed Apache then XAMPP

Postby waxb18 » 13. January 2018 01:31

Found the bugger!!!

I read a lot of places that Skype and IIS were using the ports, it turns out SQL Server Reporting Services also uses port 80.

I stopped the service and it ran a charm.

Credit Goes to https://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
waxb18
 
Posts: 7
Joined: 09. January 2018 23:01
XAMPP version: 3.2.2
Operating System: Windows


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests