Skip to content

Mount WebDav Server on macOS

Seamus Brady edited this page Aug 7, 2017 · 1 revision

InstantWP comes with a built-in WebDav server.

You can mount this creating the files outlined below in macOS and then running them from the Terminal.

Alternatively you can use the Finder menu Go->Connect to Server with the following:

http://iwp:iwp@127.0.0.1:10080/webdav/iwpserver.php

Create a file mountWebDav.scpt:

tell application "Finder"
    try
        mount volume "http://iwp:iwp@127.0.0.1:10080/webdav/iwpserver.php"
    end try
end tell

Create a file unmountWebDav.scpt:

tell application "Finder"
    eject disk "iwpserver.php"
end tell

Create a bash shell file to mount - mountIWP.sh:

#!/bin/sh

echo "Mounting IWPServer WebDav Volume..."
cd "$(dirname "$0")" 
osascript ./mountWebDav.scpt

Create bash shell file to unmount - unmountIWP.sh:

#!/bin/sh
echo "Unmounting IWPServer WebDav Volume..."
cd "$(dirname "$0")"
osascript ./unmountWebDav.scpt

Clone this wiki locally