Page 1 of 1

Broke Image and Plugin When Local Client Access XAMPP

PostPosted: 18. October 2021 02:13
by cybernak168
Dear Community of XAMPP,

I have move XAMPP 7.3... include Wordpress directories and database to my local server after that I configuration to let my client PC connect to XAMPP using Local Network (IP Adress 192.168.x.x) and successfully connected. Unfortunately, My client has the problem they can't see the image like logo image that I configuration in WOffice Theme and when I log in to admin user in client PC most of my plugin is broke.

What is that problem?
Does it is incorrect to give permission to my client's pc?

Note: Firewall Turnoff, Browser using chrome, my network no internet connection (100% intranet)

Re: Broke Image and Plugin When Local Client Access XAMPP

PostPosted: 18. October 2021 06:43
by Altrea
Hi,

the problem is most common that your wordpress is installed for a specific domain your client pc cannot reach (like localhost).

Re: Broke Image and Plugin When Local Client Access XAMPP

PostPosted: 18. October 2021 09:21
by cybernak168
Thank you Altrea, Should I configuration on vhost XAMPP ?

Re: Broke Image and Plugin When Local Client Access XAMPP

PostPosted: 18. October 2021 12:55
by Altrea
This is one option. You could define a vhost for the "fake" domain and resolve the domain by your client hosts file or a DNS server.

Re: Broke Image and Plugin When Local Client Access XAMPP

PostPosted: 19. October 2021 11:30
by cybernak168
2 days of trying :
I. Move the xampp folder I already created with my website to my server:
1-I change the xampp port 8080 to default port 80 (Service Setting and httpd.conf).
2-I tried to change siteurl and home from https://localhost:8080/acu2 (the old port from my computer, I use port 8080) to https://localhost/acu2 (the new port for my server I use default local port 80).
3-I change wp_option (siteurl,home) from https://localhost:8080/acu2 to https://localhost/acu2
4-After I got the same problem as my client PC does (Broke images and some plugins).

I found out some of URL is incorrect in the database thus I use the plugin (velvet blues update URLS and Better Search Replace) to solve the problem. Result "Failed" not working, the website still the same not show some images and plugin error.
.
Note* I did not yet connected the share website to my client's PC I want to make sure the problem is URL or Port before sharing the website to my client's PC.