fixing xampp security checkapache no such file or directory workaround

There is a bug in the XAMPP installation security tool for Mac preventing updates to the .htdocs for the dashboard.

By: Quentin Meulepas

There is a bug in the XAMPP installation security tool for Mac.

Seems like they changed the xampp tools from XAMPP/xamppfiles/htdocs/xampp to XAMPP/xamppfiles/htdocs/dashboard and didn’t update the XAMPP/xamppfiles/share/xampp/checkapache file.

I noticed this when I ran the XAMPP/xamppfiles/xampp security utility and noticed it wasn’t making my xampp pages require a password from the browser.

Turns out the command line dumps the error out and I didn’t notice it. Here’s the output (note the “No such file or directory” messages):


sudo xamppfiles/xampp security
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
/Applications/XAMPP/xamppfiles/share/xampp/checkapache: line 41: /Applications/XAMPP/xamppfiles/htdocs/xampp/.htaccess: No such file or directory
cp: /Applications/XAMPP/xamppfiles/htdocs/xampp/.htaccess: No such file or directory
cp: /Applications/XAMPP/xamppfiles/htdocs/xampp/.htaccess: No such file or directory
chmod: /Applications/XAMPP/xamppfiles/htdocs/xampp/.htaccess: No such file or directory
chmod: /Applications/XAMPP/xamppfiles/htdocs/webalizer/.htaccess: No such file or directory
chmod: /Applications/XAMPP/xamppfiles/phpmyadmin/.htaccess: No such file or directory
XAMPP: Password protection active. Please use 'xampp' as user name!
XAMPP: MySQL is not accessable via network. Good.
XAMPP: MySQL has to run before I can check the security.
XAMPP: MySQL has to run before I can check the security.
XAMPP: MySQL has a root passwort set. Fine! :)
XAMPP: ProFTPD has a new FTP password. Great!
XAMPP: Do you want to change the password anyway? [no]
XAMPP: Done.

It’s easy to work around this.

I just created a soft link called xampp with points to the new dashboard directory. (Just in case, this all goes on one line in Terminal; which is where you’d discover this problem in the first place.)

ln -s /Applications/XAMPP/xamppfiles/htdocs/dashboard /Applications/XAMPP/xamppfiles/htdocs/xampp

Now you can make the security changes and they will be made to dashboard directory by calling it xampp and it will work as expected.

sudo /Applications/XAMPP/xamppfiles/xampp security
Password:
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use 'xampp' as user name!
XAMPP: MySQL is not accessable via network. Good.
XAMPP: MySQL has a root passwort set. Fine! :)
XAMPP: ProFTPD has a new FTP password. Great!
XAMPP: Do you want to change the password anyway? [no]
XAMPP: Done.

No errors this time.

Author: Eric Holsinger

Eric Holsinger is a software professional and photography enthusiast in Southern Maine.

One thought on “fixing xampp security checkapache no such file or directory workaround”

  1. Hi thanks for the solution, though would this be a problem in the future, since they did not notice it some app would still run as before.

Leave a Reply