The Apache server is available on Mac by deploying your html pages to:
/Library/WebServer/Documents/
uki:Documents uki$ ls -alt /Library/WebServer/Documents/
total 80
...
-rw-r--r-- 1 root wheel 3726 Aug 24 2012 PoweredByMacOSX.gif
-rw-r--r-- 1 root wheel 31958 Aug 24 2012 PoweredByMacOSXLarge.gif
uki:Documents uki$
You start the Apache server by:
$ sudo apachectl start
Re-deploying your code:
remove old:
$ sudo rm -r /Library/WebServer/Documents/my_project
Make directory:
$ sudo mkdir /Library/WebServer/Documents/my_project
copy new code in:
$ sudo cp -r /Users/uki/Documents/workspaces/.../my_project/* /Library/WebServer/Documents/my_project
you can view your local server at:
http://localhost/
As an Amazon Associate I earn from qualifying purchases.
Apache Server on Mac OS 10.8
The Apache server is available on Mac by deploying your html pages to:
/Library/WebServer/Documents/
uki:Documents uki$ ls -alt /Library/WebServer/Documents/
total 80
...
-rw-r--r-- 1 root wheel 3726 Aug 24 2012 PoweredByMacOSX.gif
-rw-r--r-- 1 root wheel 31958 Aug 24 2012 PoweredByMacOSXLarge.gif
uki:Documents uki$
You start the Apache server by:
$ sudo apachectl start
Re-deploying your code:
remove old:
$ sudo rm -r /Library/WebServer/Documents/my_project
Make directory:
$ sudo mkdir /Library/WebServer/Documents/my_project
copy new code in:
$ sudo cp -r /Users/uki/Documents/workspaces/.../my_project/* /Library/WebServer/Documents/my_project
you can view your local server at:
http://localhost/
/Library/WebServer/Documents/
uki:Documents uki$ ls -alt /Library/WebServer/Documents/
total 80
...
-rw-r--r-- 1 root wheel 3726 Aug 24 2012 PoweredByMacOSX.gif
-rw-r--r-- 1 root wheel 31958 Aug 24 2012 PoweredByMacOSXLarge.gif
uki:Documents uki$
You start the Apache server by:
$ sudo apachectl start
Re-deploying your code:
remove old:
$ sudo rm -r /Library/WebServer/Documents/my_project
Make directory:
$ sudo mkdir /Library/WebServer/Documents/my_project
copy new code in:
$ sudo cp -r /Users/uki/Documents/workspaces/.../my_project/* /Library/WebServer/Documents/my_project
you can view your local server at:
http://localhost/
find similar posts:
Apache,
Linux/Unix,
macOS
0
comments
Setting JAVA_HOME variable on Mac
$ edit ~/.profile
add line
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
SAVE
re-open Terminal
$ echo $JAVA_HOME
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
$
Please note that the most current version (1.6) is loading when 1.7 is missing.
add line
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
SAVE
re-open Terminal
$ echo $JAVA_HOME
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
$
Please note that the most current version (1.6) is loading when 1.7 is missing.
find similar posts:
Java,
Mac
0
comments
Setting JAVA_HOME variable on Mac
$ edit ~/.profile
add line
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
SAVE
re-open Terminal
$ echo $JAVA_HOME
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
$
Please note that the most current version (1.6) is loading when 1.7 is missing.
add line
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
SAVE
re-open Terminal
$ echo $JAVA_HOME
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
$
Please note that the most current version (1.6) is loading when 1.7 is missing.
find similar posts:
Java,
macOS
0
comments
ChildrenTV - CyberWalkAbout.com Now in the Top 300 Entertainment Apps for Mac!
find similar posts:
ChildrenTV
0
comments
Subscribe to:
Posts (Atom)
apt quotation..
“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.” by Robert A. Heinlein (author, aeronautical engineer, and naval officer)
