No Internet access From xampp mac server

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

No Internet access From xampp mac server

Postby fraserds » 07. June 2018 23:27

I've started using xampp for macOS version 7.5.2. Mac version High Sierra 10.13.4. I've got my website loaded ok but it can't access the internet. I've looked navigated to the terminal and can ping google ns ok on 8.8.8.8 so the comms are there but all lookups to the domain fail e.g. google.com. Looking at resolve.conf it looks like the below -

cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.10.0.16
search nami

that name server is incorrect but there is no way of changing it as there's no editors included with the server and it's not possible of course to edit /etc folder from the mounted drive /opt/lampp.

Anyone got any idea's on how to resolve this?
fraserds
 
Posts: 2
Joined: 07. June 2018 23:13
XAMPP version: 7.2.5
Operating System: macOS

Re: No Internet access From xampp mac server

Postby Nobbie » 08. June 2018 12:27

You installed Xampp-VM (why??), that is a specialized Version (see the long readme) running in a VirtualMachine. There are a couple of "normal" Xampp installers instead, i would use one of these.
Nobbie
 
Posts: 11145
Joined: 09. March 2008 13:04

Re: No Internet access From xampp mac server

Postby fraserds » 09. June 2018 15:47

That is the default version you are provided with when you click the download link for macs, that's all. It's very strange that DNS resolution isn't possible from the VM, thought there might be a quick fix. Without it hosted websites are not able to access the internet for updates or download content.
fraserds
 
Posts: 2
Joined: 07. June 2018 23:13
XAMPP version: 7.2.5
Operating System: macOS

Re: No Internet access From xampp mac server

Postby Nobbie » 09. June 2018 21:27

fraserds wrote:That is the default version you are provided with when you click the download link for macs, that's all.


No, its not. When i proceed to https://www.apachefriends.org/download.html, i can see 6(!) different downloads for "Xampp OS X" and the first 4(!) of them are NOT VM. There is also an important readme applied to the VM versions.

fraserds wrote:It's very strange that DNS resolution isn't possible from the VM, thought there might be a quick fix.


Why is it strange? Do you know about Virtual Machines and how these are implemented in your network?

fraserds wrote:Without it hosted websites are not able to access the internet for updates or download content.


So what? Xampp is explicitely meant for local development only, NOT for hosted websites. That is clearly stated in the README as well in the dashboard: "XAMPP is meant only for development purposes." So what is the need for a DNS server? Xampp also does not provide any update procedures.
Nobbie
 
Posts: 11145
Joined: 09. March 2008 13:04

Re: No Internet access From xampp mac server

Postby IceMichael » 26. August 2019 14:07

@Nobble
Your arrogance made me register here. This is a perfectly fine question, but you respond as if OP had asked something completely ridiculous. He/she has not.

I came here via Google as you should ALWAYS consider when answering in a forum. At the current point of time, OP is completely right when saying that VM is the default version. XAMPP does not even ask, if you want the VM version or not, there is no obvious choice until you recognize, it is too late. For example:

No, its not.

YES, it is.

If you enter https://www.apachefriends.org/de/index.html (might be not an active URL in the future), you see a few green default buttons for downloading the software. When using MacOS, the filename is: xampp-osx-7.3.8-2.vm.dmg

If you have a download button on the main page, you use it and do not navigate to some sub page. And the starting page says NOTHING about that the default version is the VM version.

Why is it strange? Do you know about Virtual Machines and how these are implemented in your network?

Because you would expect that Internet is forwarded to the host system. If you use some guest operating system via VirtualBox, for example, you always have Internet access by default. So, if you use a VM, you are used to have Internet access. It is fair to say that it IS strange here.

It also makes sense. You might want to run some system locally in that it is not accessible from outside. But why should it not have access to external webpages? For example, I use a LAMP stack and for Laravel projects to be updated, you use composer and composer gets all the packages online. This is one fundamental use case for LAMP systems, so... YES, it is strange that Internet does not work here. (clearly, you can use composer to update by navigating to the mounted path with the host system and use composer here, but why forbid Internet access for the VM?)

Another point: If you use any external service like ReCaptcha, OAuth etc. which might validate data with other Internet services, you need Internet. This is also true if you have a local test system.

So what? Xampp is explicitely meant for local development only, NOT for hosted websites. That is clearly stated in the README as well in the dashboard: "XAMPP is meant only for development purposes."

How does "development purposes" translate directly to "local development [without Internet access]"? It does not and does not make sense as stated with only few examples above.

Perfectly valid question; arrogant, useless and misleading answer.

Indeed, I have the same question as OP and it makes sense. If anyone helpful would like to help OP, I would be glad as well. Thank you (you might consider deleting your answer, so that other users who find this thread do not lose time through you)
IceMichael
 
Posts: 1
Joined: 26. August 2019 13:54
XAMPP version: 7.3.8
Operating System: MacOS

Re: No Internet access From xampp mac server

Postby Nobbie » 27. August 2019 09:26

IceMichael wrote:At the current point of time


many things are different as they have been more than a year ago. When using Google, you always should consider that things may have changed. That would have saved you from appearing here as a smart troll.
Nobbie
 
Posts: 11145
Joined: 09. March 2008 13:04

Re: No Internet access From xampp mac server

Postby Altrea » 27. August 2019 09:53

back in June 2018 the VM version was also the default download option:
https://web.archive.org/web/20180612184 ... index.html
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9798
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: No Internet access From xampp mac server

Postby Nobbie » 27. August 2019 10:43

On your favorites. Not for me: https://web.archive.org/web/20180613101 ... nload.html

The above link is number one hit for Google "Xampp Download". And its also the very first link in the Top Menu "Herunterladen". So what means default?? The problem is that Bitnami offers different links (instead of "one point of control") for the Downloads. And to make it even worse, TODAY they do not show "VM" anymore in the description.

I definately dont support this(!) VM version. If someone wants to use a VirtualMachine (what is ok of course), i would recommend to use VirtualBox, install a Linux distribution of your choice and finally a Xampp Linux version. With VirtualBox you have full control to all ressources.
Nobbie
 
Posts: 11145
Joined: 09. March 2008 13:04


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests