Unable to load Local sites

What issue or error are you experiencing?

In an attempt to add WooCommerce support, I installed composer globally and also upgraded Local after having put it off for some time. However, after doing this following the Digital Ocean tutorial I am no longer able to visit any of my local sites.

Whenever I go to {site_name}.local the Apache2 Ubuntu Default Page is displayed. I have no idea what to do to rectify this.


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc



System Details

  • Local Version:

  • Version 9.0.5+6706

  • Operating System (OS) and OS version:

  • Edition Windows 11 Home
    Version 23H2
    Installed on ‎09/‎01/‎2023
    OS build 22631.3880
    Experience Windows Feature Experience Pack 1000.22700.1020.0


Local Logs

{"class":"Process","level":"warn","message":"2024-07-24T16:29:16.860430Z 0 [System] [MY-010116] [Server] %%userDataPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 24120","process":"mysql","thread":"main","timestamp":"2024-07-24T16:29:20.559Z"}
{"class":"Process","level":"warn","message":"2024-07-24T16:29:16.872263Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2024-07-24T16:29:20.560Z"}
{"class":"Process","level":"warn","message":"2024-07-24T16:29:19.328741Z 0 [System] [MY-010229] [Server] Starting crash recovery...","process":"mysql","thread":"main","timestamp":"2024-07-24T16:29:20.561Z"}
{"class":"Process","level":"warn","message":"2024-07-24T16:29:19.342766Z 0 [System] [MY-010232] [Server] Crash recovery finished.","process":"mysql","thread":"main","timestamp":"2024-07-24T16:29:20.562Z"}
{"class":"Process","level":"warn","message":"2024-07-24T16:29:20.515318Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2024-07-24T16:29:20.562Z"}
{"class":"Process","level":"warn","message":"2024-07-24T16:29:20.559220Z 0 [System] [MY-010931] [Server] %%userDataPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16'  socket: ''  port: 10023  MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2024-07-24T16:29:20.564Z"}


Welcome to the community @kaleshe !

That page is the default page for Apache, which makes sense after following the Digital Ocean tutorial.

Because both Local and that manually-installed version of Apache are trying to use the default HTTP port for your computer, things aren’t going to work.

You have a couple of options:

  1. Stop Apache whenever you want to use Local, and stop Local whenever you want to use the plain Apache server
  2. Keep Apache as it is, and set Local to “localhost” Router Mode under “Preferences > Advanced”

Some more details about that second option and Local’s Router Mode feature can be found in this help doc: What is Router Mode? - Local

But zooming out a bit, you mention wanting to add Composer support. You can definitely add composer like what is outlined in the DigitalOcean doc, but Local also comes bundled with Composer.

Because Local doesn’t want to break other versions of system software, our version of composer is only available when you click the “Open shell” button for a site.

Thanks for the response. I was able to fix it by following your instructions and changing the Router Mode to localhost!

1 Like

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