Switch to Apache not working

Issue Summary

When switching to Apache not working, but nginx works just fine.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    All sites.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes, but only running on nginx.

Replication

Any site that switches from nginx to apache will cause the issue.

System Details

  • Which version of Local is being used?
    6.7.0

  • What Operating System (OS) and OS version is being used?
    Windows 10 Home

  • Attach the Local Log. See this Help Doc for instructions on how to do so:

Security Reminder

Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @tajenli

If you create a new, blank site using Apache does that work normally?

On sites that are currently NGINX, after you change them to Apache if you stop/start them or restart Local do they work normally?

Hi Nick,

Thank you for the reply.

  1. If you create a new, blank site using Apache does that work normally?
    No, not working. I got a “Service Unavailable” error message.

  2. On sites that are currently NGINX, after you change them to Apache if you stop/start them or restart Local do they work normally?
    Yes, I tried to stop/start the site and also tried to restart the Local, all not working.

Darren

Hi @tajenli

If you change your Router Mode to Site Domains does that work?

HI Nick,
I am using Site Domains from the beginning, which is not working.

Hi @tajenli

Got it, thank you. Are you running other developer applications simultaneously? Apps like MAMP, XAMPP, or Docker for example.

If you check your port connections are there any other applications running? Details for checking that are in the document I shared above.

TY for the reply.

No, I stopped using XAMPP a while ago, no port conflicts. If it’s port conflicts, the Nginx won’t work as well.

May I know where the Local store Apache server program files? I think Local can’t link to the Apache program files properly in my case.

Thanks

I’m seeing this also.

Hi @tajenli. To answer your question, the location might be one of these two:

  1. Apache Configuration - Each site using Apache has a config file that is in the site’s files. ~Local Sites/{site name}/app/conf/apache

  2. Apache itself - This is the software running it all in the background. That lives in the lightning services directory which is %APPDATA%\Roaming\Local\lightning-services\apache-2.4.43

If you’re still having trouble can you send a fresh Local Log? We can take a look at it to compare and see if anything has changed.

Hi @arecian! Happy to help you with this as well.

Can you provide your OS, Local Version, and a Local Log?

Do you have any other details to share as far as replication or troubleshooting steps you’ve tried other than what’s been mentioned above?

Keep us posted and we’d be happy to help further!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.