Mac OS Mojave XAMMP 7.3.3.1: Having trouble with localhost

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

Mac OS Mojave XAMMP 7.3.3.1: Having trouble with localhost

Postby drtyrell » 16. April 2019 07:40

I'm a bit confused because XAMPP was installed here:

Code: Select all
/Users/[user]/.bitnami/stackman/machines/xampp/volumes/root/htdocs/larablog


But all the instructions are saying to use this:

Code: Select all
<VirtualHost *:80>
    ServerAdmin webmaster@localhost.laravel.com
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/larablog/public"
    <Directory "/Applications/XAMPP/xamppfiles/htdocs/larablog/public">
        Options Indexes FollowSymLinks Includes execCGI
        AllowOverride All
        Require all granted
    </Directory>
    ServerName localhost.laravel.com
    ServerAlias www.localhost.laravel.com
    ErrorLog "logs/localhost.laravel.com-error_log"
    CustomLog "logs/localhost.laravel.com-access_log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@localhost.laravel.com
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/"
    ServerName localhost
    ErrorLog "logs/dummy-host2.example.com-error_log"
    CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>


I have the v-host enabled:

Code: Select all
# Virtual hosts
Include etc/extra/httpd-vhosts.conf


My host file reads:

Code: Select all
127.0.0.1   localbost
255.255.255.255   broadcasthost
::1             localhost
#fe80::1%lo0   localhost
127.0.0.1   localhost.laravel.com


When I go to localhost I get a dead socket. Going to the IP works. When I go to the alias, it doesn't work.

Is the path correct? :shock:
drtyrell
 
Posts: 2
Joined: 16. April 2019 07:26
XAMPP version: 7.3.3.1
Operating System: OSX Mojave

Re: Mac OS Mojave XAMMP 7.3.3.1: Having trouble with localho

Postby Altrea » 16. April 2019 08:06

XAMPP for MAC OS X VM Verson
/Users/[user]/.bitnami/stackman/machines/xampp/volumes/root/htdocs/
http://localhost:8080/

XAMPP for MAC OS X not VM version
/Applications/XAMPP/xamppfiles/htdocs/
http://localhost/
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: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Mac OS Mojave XAMMP 7.3.3.1: Having trouble with localho

Postby drtyrell » 16. April 2019 10:35

THAT was it! Thank you! I had the wrong version of XAMPP installed. Everything is working great.
drtyrell
 
Posts: 2
Joined: 16. April 2019 07:26
XAMPP version: 7.3.3.1
Operating System: OSX Mojave


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 87 guests