logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: trying to get rid of an old apache service
Author
mathman



Joined: 25 Sep 2015
Posts: 20
Location: worester, usa

PostPosted: Mon 30 Sep '24 18:55    Post subject: trying to get rid of an old apache service Reply with quote

HI,
I am reinstalling apache. I am on a Windows 11 machine. I have tried using sc stop apache24 sc delete apache24. It didn't work. I am at a loss as to how I can get rid of apache24? I am looking for new ideas to get rid of the old apache service. By the way I got rid of the registry line that had apache24 and that didn't work either.

Thanks in advance.

Mark
Back to top
Otomatic



Joined: 01 Sep 2011
Posts: 206
Location: Paris, France, EU

PostPosted: Tue 01 Oct '24 9:43    Post subject: Reply with quote

Hi,

For this to work, the command window must be opened "as administrator", i.e. the word "Administrator" must appear in the title bar of the command window.
Back to top
mathman



Joined: 25 Sep 2015
Posts: 20
Location: worester, usa

PostPosted: Tue 01 Oct '24 15:21    Post subject: I reinstalled windows Reply with quote

HI,
I only use terminal admin. I never use the regular terminal.
My most current problem is the .
PS C:\apache\bin> .\httpd.exe -k start
httpd.exe: Syntax error on line 539 of C:/Apache/conf/httpd.conf: Cannot load C:/php8apache2_4.dll into server: The specified module could not be found.
PS C:\apache\bin> .\httpd.exe -k start
AH00526: Syntax error on line 251 of C:/Apache/conf/httpd.conf:
DocumentRoot 'C:/Apache24/htdocs' is not a directory, or is not readable.
Line 251 is this: DocumentRoot "${SRVROOT}/htdocs"
<Directory "${SRVROOT}/htdocs"> How do I fix this? Do I change srvroot to c:/apache?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Tue 01 Oct '24 15:48    Post subject: Reply with quote

PHP question is not related to deleting the service.

Please make a new topic.


Last edited by admin on Tue 01 Oct '24 15:49; edited 1 time in total
Back to top
mathman



Joined: 25 Sep 2015
Posts: 20
Location: worester, usa

PostPosted: Tue 01 Oct '24 15:48    Post subject: I see the problem Reply with quote

Windows stil is going to apache 24 and not going to apache. I thought that by reinstalling windows 11 that apache24 would go away. It has not. This is frustrating. How do I get apache to be the proper directory? In my services I have apache24. I need to get rid of Apache24.
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 224
Location: Denver, CO USA

PostPosted: Thu 03 Oct '24 3:21    Post subject: Reply with quote

Mathman:

Let's go through the issues you are experiencing one at a time.

1. You are getting the error of "Cannot load C:/php8apache2_4.dll into server: The specified module could not be found." For better performance and stability, it is recommended to use Mod_FCGID instead of the PHP module. In the interim, if there is any reference to php8apache2_4.dll in your HTTPD.CONF file, let's have you comment any and all lines out of your HTTPD.CONF file by placing # in front of it. For reference, here is the location of a "HOW-TO" document on how to configure Mod_FCGID here on this site that will walk you through how to get it installed and Up & Running. https://www.apachelounge.com/viewtopic.php?t=2394

2.You are getting the error of "DocumentRoot C:/Apache24/htdocs is not a directory or is not readable." You state that HTTPD.CONF is specifying your DocumentRoot as "${SRVROOT}/htdocs" which keeps defaulting to C:/Apache24/htdocs.

You also state that you want your htdocs to live at C:/Apache/htdocs.

Let's get that fixed by specifying a location for ${SRVROOT} by typing in these 2 lines at the top of your HTTP.CONF file:
Define SRVROOT "/Apache"
ServerRoot "${SRVROOT}"

After you put these lines in, make sure you do not have any references to C:/Apache24 anywhere in your HTTPD.CONF file. If you do, just change C:/Apache24 to ${SRVROOT}. Be sure to save the changes to your HTTPD.CONF file before you proceed forward.

3. After you make the above changes, open a Command Prompt (try not to use PowerShell) as an administrator and go to C:/Apache/bin and run: httpd -t to check for any syntax errors in your config files.

4. If the results comes back as SYNTAX OK, then you can run httpd -k start and your Apache server should start. If not, then find the offending syntax errors and correct them until you receive SYNTAX OK from running httpd -t to check for syntax errors.

Without knowing your environment / setup and based on what you have posted here, this should get you on the path to success to getting your Apache server up and running.
Back to top


Reply to topic   Topic: trying to get rid of an old apache service View previous topic :: View next topic
Post new topic   Forum Index -> Apache