{= include("docs.util"); start_docs_page(docs.technical_manual.page_titles.webstarv); =}
This chapter was contributed by David Wrubel.
If you choose to run $PRODUCT_NAME in web server mode, run it as a separate webserver application with its own default port number 8988 on the same Mac as WebStar V.
Commandline (bold type = your input) | Comments |
Welcome to Darwin! [localhost:~] davidw% |
When you start the Terminal and choose "New" in the "Shell" menu, you will see this in a new terminal window. |
[localhost:~] davidw% sudo su Password: |
SUDO SU gives you root access. Type your admin password and hit the return key. |
[localhost:/Users/davidw] root# cd /applications/sawmill/ | Navigates you to the "sawmill" folder. Note that the commandline says you are now "root#". |
[localhost:/applications/sawmill] root# ls -ls total 9104 0 drwxrwxr-x 3 davidw admin 58 Apr 21 09:43 Extras 24 -rwxr-xr-x 1 davidw admin 9348 Apr 21 09:43 License.txt 8 -rwxrwxr-x 1 davidw admin 3113 Apr 21 09:43 ReadMe.txt 0 drwxrwxr-x 3 davidw admin 58 Apr 21 09:43 $(PRODUCT_NAME).app 0 drwxrwxr-x 6 davidw admin 160 Apr 21 09:43 Startup 9072 -rwxr-xr-x 1 davidw admin 4641768 Apr 21 09:43 sawmill |
|
[localhost:/applications/sawmill] root# cd.. | Navigate back to the Applications folder. |
[localhost:/applications] root# chown -R webstar sawmill | Now be careful: key the command exactly as shown. This changes the ownership of all files in the sawmill folder including the sawmill folder itself. |
[localhost:/applications] root# cd sawmill | Navigate into the sawmill folder |
[localhost:/applications/sawmill] root# ls -ls total 9104 0 drwxrwxr-x 3 webstar admin 58 Apr 21 09:43 Extras 24 -rwxr-xr-x 1 webstar admin 9348 Apr 21 09:43 License.txt 8 -rwxrwxr-x 1 webstar admin 3113 Apr 21 09:43 ReadMe.txt 0 drwxrwxr-x 3 webstar admin 58 Apr 21 09:43 $(PRODUCT_NAME).app 0 drwxrwxr-x 6 webstar admin 160 Apr 21 09:43 Startup 9072 -rwxr-xr-x 1 webstar admin 4641768 Apr 21 09:43 sawmill |
Let's list the files and folders in the sawmill folder to check that the ownerships have really been changed. Note that the owner is now "webstar" instead of "davidw". |
[localhost:/applications/sawmill] root# exit exit [localhost:~] davidw% |
Log out the root user by typing "exit" and hit the return key. Note that the admin user is returned. |