Problems with the Windows version of XAMPP, questions, comments, and anything related.
by alpha » 25. June 2023 22:05
I can't seem to find up to date instructions on how to configure Apache to be able to access wordpress on another computer under the same wifi.
-
alpha
-
- Posts: 2
- Joined: 25. June 2023 20:52
- XAMPP version: 3.3.0
- Operating System: windows 11
by Altrea » 27. June 2023 10:21
localhost always points to your very own computers network loopback adapter. You cannot use localhost for requests from another computer.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!It's like porn for programmers
-
Altrea
- AF Moderator
-
- Posts: 11952
- Joined: 17. August 2009 13:05
- XAMPP version: several
- Operating System: Windows 11 Pro x64
by Nobbie » 27. June 2023 11:03
Enter the LAN IP (instead of localhost) of Xampp Server in your browser to access Xampp. No modification in Apache necessary.
If you already installed WordPress, edit wp-config.php and replace all occurences of "localhost" by the LAN IP as well.
-
Nobbie
-
- Posts: 13214
- Joined: 09. March 2008 13:04
by alpha » 27. June 2023 21:53
I tried making changes to the wp-config.php file but when trying to access wordpress i was prompted with "Error establishing a database connection".
-
alpha
-
- Posts: 2
- Joined: 25. June 2023 20:52
- XAMPP version: 3.3.0
- Operating System: windows 11
by Altrea » 27. June 2023 21:59
Then you probably changed the DB_HoST variable from localhost to something else. That is not the setting you need to touch.
You need to tell us much more in detail what you are doing exactly.
If it is an option for you, you should install wordpress fresh by using the LAN IP. That is the easiest way to get a working wordpress configuration.
Or google for "Change Wordpress base url" or "wordpress migration from localhost to server"
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!It's like porn for programmers
-
Altrea
- AF Moderator
-
- Posts: 11952
- Joined: 17. August 2009 13:05
- XAMPP version: several
- Operating System: Windows 11 Pro x64
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 133 guests