XAMPP: Mac - mhulse/mhulse.github.io GitHub Wiki

I needed a simple way to test some demo pages, so I installed XAMPP:

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start.

Once you've installed XAMPP, navigate to and open:

/Applications/XAMPP/xamppfiles/etc/httpd.conf

... and un-comment the vhosts line:

# Virtual hosts
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf

Next, navigate to and open:

/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf 

Now, comment-out the existing virtual host containers and add:

# this keeps http://localhost working
<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/xxx/USERNAME/github"
    ServerName git.local
    ServerAlias www.git.local 
    ErrorLog "logs/git.local-error.log"
    CustomLog "logs/git.local-access.log" combined
    DirectoryIndex index.html index.php
    <Directory "/xxx/USERNAME/github">
        IndexOptions +FancyIndexing NameWidth=*
        Options Includes FollowSymLinks Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

This setup assumes that you have a github folder located here:

~/github

(That's your home directory /github).

Here's the complete file:

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

#<VirtualHost *:80>
#    ServerAdmin [email protected]
#    DocumentRoot "/Applications/XAMPP/xamppfiles/docs/dummy-host.example.com"
#    ServerName dummy-host.example.com
#    ServerAlias www.dummy-host.example.com
#    ErrorLog "logs/dummy-host.example.com-error_log"
#    CustomLog "logs/dummy-host.example.com-access_log" common
#</VirtualHost>

#<VirtualHost *:80>
#    ServerAdmin [email protected]
#    DocumentRoot "/Applications/XAMPP/xamppfiles/docs/dummy-host2.example.com"
#    ServerName dummy-host2.example.com
#    ErrorLog "logs/dummy-host2.example.com-error_log"
#    CustomLog "logs/dummy-host2.example.com-access_log" common
#</VirtualHost>

# this keeps http://localhost working
<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/xxx/USERNAME/github"
    ServerName git.local
    ServerAlias www.git.local 
    ErrorLog "logs/git.local-error.log"
    CustomLog "logs/git.local-access.log" combined
    DirectoryIndex index.html index.php
    <Directory "/xxx/USERNAME/github">
        IndexOptions +FancyIndexing NameWidth=*
        Options Includes FollowSymLinks Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Spoof:

Lastly, we need to spoof a URL. Do this by adding a few lines to your hosts file:

/private/etc/hosts

Open the above file and add:

helpful article for save permission issues

127.0.0.1	git.local

Or, this is how I do it, download and install:

Hosts is a system preference pane to manage your hosts file.

Once installed, navigate to your System Preferences >> Other: Hosts. Add 127.0.0.1 as an "ip" and git.local as your "hostname".

Now, start-up (or restart) Apache via XAMPP control panel, open a browser and visit:

http://git.local

Here's a good blog post on this topic:

Configuring VirtualHosts in XAMPP on Mac


Problems:

I started getting this error:

HostnameError001

HostnameError001Description

After a bit of Googling, I ended up changing my computer's host name to mhulse.local:

System Preferences >> Sharing: Below the "Computer Name" field, hit "Edit..." and type the desired host name (I chose "mhulse").

Next, I added this to my /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf file:

# this keeps http://mhulse.local working
<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
    ServerName mhulse.local
</VirtualHost>

From there, I added 127.0.0.1 to my hosts file and pointed it toward mhulse.local endpoint.

I stopped Apache and MySQL and restarted my computer.

WOOT! No more HostnameError001Description errors!


PROBLEM: Setting up a <VirtualHost> on an existing OS folder, like ~/Documents/Dropbox/, gives me:

Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

SOLUTION: Easy! Just change the default httpd User/Group.

For me, I just modified the existing code in /Applications/XAMPP/xamppfiles/etc/httpd.conf.

<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
# Default values:
#User nobody
#Group nogroup
#
# My values:
User mhulse
Group staff
</IfModule>
</IfModule>

... where mhulse is my user and staff is the group used on my machine.

Don't forget to stop/start Apache.

Change XAMPP's htdocs web root folder to another one

May 2014 UPDATE:

I just upgraded to XAMPP 1.8.3-4, and had to adjust a few thingys.

First, I backed up my 1.7.3-beta1 httpd.conf and httpd-vhosts.conf to ~/Dropbox/xampp/.

To avoid any losses, I rename my Applications/XAMPP folder to XAMPP.bak.

Next, I install a new version of XAMPP.

After installation, I edit /Applications/XAMPP/xamppfiles/etc/httpd.conf … Before I do anything, I remove all comments:

  • Find: #.*\n
  • Replace: "" (nothing)

I clean up the indentation and tweak a few values. The end result looks like:

ServerRoot "/Applications/XAMPP/xamppfiles"

Listen 80

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_socache_module modules/mod_authn_socache.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_dbd_module modules/mod_authz_dbd.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_form_module modules/mod_auth_form.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule socache_dbm_module modules/mod_socache_dbm.so
LoadModule socache_memcache_module modules/mod_socache_memcache.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule bucketeer_module modules/mod_bucketeer.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule echo_module modules/mod_echo.so
LoadModule case_filter_module modules/mod_case_filter.so
LoadModule case_filter_in_module modules/mod_case_filter_in.so
LoadModule buffer_module modules/mod_buffer.so
LoadModule ratelimit_module modules/mod_ratelimit.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule request_module modules/mod_request.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule sed_module modules/mod_sed.so
LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule mime_module modules/mod_mime.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule log_debug_module modules/mod_log_debug.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule remoteip_module modules/mod_remoteip.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_express_module modules/mod_proxy_express.so
LoadModule session_module modules/mod_session.so
LoadModule session_cookie_module modules/mod_session_cookie.so
LoadModule session_dbd_module modules/mod_session_dbd.so
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so

<IfDefine JUSTTOMAKEAPXSHAPPY>
	LoadModule php4_module modules/libphp4.so
	LoadModule php5_module modules/libphp5.so
</IfDefine>

ServerName localhost

<Directory />
	AllowOverride none
	Require all denied
</Directory>

DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
<Directory "/Applications/XAMPP/xamppfiles/htdocs">
	Options Indexes FollowSymLinks ExecCGI Includes
	AllowOverride All
	Require all granted
</Directory>

<IfModule dir_module>
	DirectoryIndex index.html index.html.var index.php index.php3 index.php4
</IfModule>

<Files ".ht*">
	Require all denied
</Files>

ErrorLog "logs/error_log"

LogLevel warn

<IfModule log_config_module>
	LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
	LogFormat "%h %l %u %t \"%r\" %>s %b" common
	<IfModule logio_module>
		LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
	</IfModule>
	CustomLog "logs/access_log" common
</IfModule>

<IfModule alias_module>
	ScriptAlias /cgi-bin/ "/Applications/XAMPP/xamppfiles/cgi-bin/"
</IfModule>

<Directory "/Applications/XAMPP/xamppfiles/cgi-bin">
	AllowOverride None
	Options None
	Require all granted
</Directory>

<IfModule mime_module>
	TypesConfig etc/mime.types
	AddType application/x-compress .Z
	AddType application/x-gzip .gz .tgz
	AddHandler cgi-script .cgi .pl
	AddType text/html .shtml
	AddOutputFilter INCLUDES .shtml
</IfModule>

EnableMMAP off
EnableSendfile off

Include etc/extra/httpd-multilang-errordoc.conf
Include etc/extra/httpd-autoindex.conf
Include etc/extra/httpd-default.conf

<IfModule proxy_html_module>
	Include etc/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
	<IfDefine SSL>
		Include etc/extra/httpd-ssl.conf
	</IfDefine>
</IfModule>

<IfModule ssl_module>
	SSLRandomSeed startup builtin
	SSLRandomSeed connect builtin
</IfModule>

Include etc/extra/httpd-xampp.conf

########################################################################

ServerAdmin [email protected]

<Directory "/Applications/XAMPP/xamppfiles/phpmyadmin">
	AllowOverride None
	Options None 
	Order allow,deny
	Allow from all
</Directory>

<IfModule unixd_module>
	User mhulse
	Group staff
</IfModule>

Include "/Users/mhulse/Dropbox/xampp/httpd-vhosts.1.8.3-4.conf"

Note that I Include my httpd-vhosts.1.8.3-4.conf file from my Dropbox folder.

Here's what my vhosts file looks like:

<VirtualHost *:80>
	DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
	ServerName localhost
</VirtualHost>

<VirtualHost *:80>
	DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
	ServerName micky.local
</VirtualHost>

<VirtualHost *:80>
	DocumentRoot "/Users/mhulse/github"
	ServerName git.local
	ServerAlias www.git.local 
	ErrorLog "logs/git.local-error.log"
	CustomLog "logs/git.local-access.log" combined
	#DirectoryIndex index.html
	<Directory "/Users/mhulse/github">
		IndexOptions +FancyIndexing NameWidth=*
		Options +Includes +FollowSymLinks +Indexes
		AllowOverride All
		Order allow,deny
		Allow from all
		Require all granted
	</Directory>
</VirtualHost>

<VirtualHost *:80>
	DocumentRoot "/Users/mhulse/Dropbox"
	ServerName dropbox.local
	ServerAlias www.dropbox.local 
	ErrorLog "logs/dropbox.local-error.log"
	CustomLog "logs/dropbox.local-access.log" combined
	#DirectoryIndex index.html
	<Directory "/Users/mhulse/Dropbox">
		IndexOptions +FancyIndexing NameWidth=*
		Options +Includes +FollowSymLinks +Indexes
		AllowOverride All
		Order allow,deny
		Allow from all
		Require all granted
	</Directory>
</VirtualHost>

Now I can sync my vhosts between machines. Nice.

Don't forget to change the timezone setting in /Applications/XAMPP/xamppfiles/etc/php.ini:

date.timezone=America/Los_Angeles

Note: If you have your home directory not on your main drive, then you might need to symlink your user folder:

$ sudo ln -s /Volumes/Foo/mhulse mhulse

… so that your vhosts can work on different machines (even though drive names may be different); the only requirement is that your user name is the same between machines.

Done!


December 2015 update

Here’s my XAMPP 5.6.15 httpd.conf file (same changes as above apply):

ServerRoot "/Applications/XAMPP/xamppfiles"

Listen 80

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_socache_module modules/mod_authn_socache.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_dbd_module modules/mod_authz_dbd.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_form_module modules/mod_auth_form.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule socache_dbm_module modules/mod_socache_dbm.so
LoadModule socache_memcache_module modules/mod_socache_memcache.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule bucketeer_module modules/mod_bucketeer.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule echo_module modules/mod_echo.so
LoadModule case_filter_module modules/mod_case_filter.so
LoadModule case_filter_in_module modules/mod_case_filter_in.so
LoadModule buffer_module modules/mod_buffer.so
LoadModule ratelimit_module modules/mod_ratelimit.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule request_module modules/mod_request.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule sed_module modules/mod_sed.so
LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule mime_module modules/mod_mime.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule log_debug_module modules/mod_log_debug.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule remoteip_module modules/mod_remoteip.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_express_module modules/mod_proxy_express.so
LoadModule session_module modules/mod_session.so
LoadModule session_cookie_module modules/mod_session_cookie.so
LoadModule session_dbd_module modules/mod_session_dbd.so
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so

<IfDefine JUSTTOMAKEAPXSHAPPY>
	LoadModule php4_module modules/libphp4.so
	LoadModule php5_module modules/libphp5.so
</IfDefine>

ServerName localhost

<Directory />
	AllowOverride none
	Require all denied
</Directory>

DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"

<Directory "/Applications/XAMPP/xamppfiles/htdocs">
	Options Indexes FollowSymLinks ExecCGI Includes
	AllowOverride All
	Require all granted
</Directory>

<IfModule dir_module>
	DirectoryIndex index.html index.html.var index.php index.php3 index.php4
</IfModule>

<Files ".ht*">
	Require all denied
</Files>

ErrorLog "logs/error_log"

LogLevel warn

<IfModule log_config_module>
	LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
	LogFormat "%h %l %u %t \"%r\" %>s %b" common
	<IfModule logio_module>
		LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
	</IfModule>
	CustomLog "logs/access_log" common
</IfModule>

<IfModule alias_module>
	ScriptAlias /cgi-bin/ "/Applications/XAMPP/xamppfiles/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/Applications/XAMPP/xamppfiles/cgi-bin">
	AllowOverride None
	Options None
	Require all granted
</Directory>

<IfModule mime_module>
	TypesConfig etc/mime.types
	AddType application/x-compress .Z
	AddType application/x-gzip .gz .tgz
	AddHandler cgi-script .cgi .pl
	AddType text/html .shtml
	AddOutputFilter INCLUDES .shtml
</IfModule>

EnableMMAP off
EnableSendfile off

Include etc/extra/httpd-multilang-errordoc.conf

Include etc/extra/httpd-autoindex.conf

Include etc/extra/httpd-default.conf

<IfModule proxy_html_module>
	Include etc/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
	<IfDefine SSL>
		Include etc/extra/httpd-ssl.conf
	</IfDefine>
</IfModule>

<IfModule ssl_module>
	SSLRandomSeed startup builtin
	SSLRandomSeed connect builtin
</IfModule>

Include etc/extra/httpd-xampp.conf
Include "/Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf"

########################################################################

ServerAdmin [email protected]

<Directory "/Applications/XAMPP/xamppfiles/phpmyadmin">
	AllowOverride None
	Options None
	Order allow,deny
	Allow from all
</Directory>

<IfModule unixd_module>
	User mhulse
	Group staff
</IfModule>

Include "/Users/mhulse/Dropbox/xampp/httpd-vhosts.5.6.15.conf"

PHPmyAdmin

Hide default databases in PHPmyAdmin.

In /Applications/XAMPP/xamppfiles/phpmyadmin/config.inc.php, add this line right above the End of servers configuration comment:

$cfg['Servers'][$i]['hide_db']='^(information_schema|performance_schema|mysql|phpmyadmin|test|webauth)$';

/**
 * End of servers configuration
 */

Before:

screenshot 2015-12-14 14 48 10

After:

screenshot 2015-12-14 14 48 20

Next, don’t forget to setup the PHP timezone and install Hosts.prefpane for Mac (see above).

Linkages:


That's all folks!

⚠️ **GitHub.com Fallback** ⚠️