little step by step on how to configure Apache on your MACBOOK. Why configure and not install? because MAC OS X has already installed in an Apache Server.
Before I start I want to say that I’m a MAC newbie after years of Windows and LINUX, so don’t be scared, if I did it you can do it as well btw, here what you need to do:
- open “System Preferences…”
- open “Sharing”
- tick “Web Sharing”
- if you have Sleep mode set, it will ask you to configure it because it says that if your computer is in sleep mode other users will not be able to connect on your webservice and bla bla bla…. so it’s up to you
- then you’ve finished, you’ll see 2 links
1 – Your computer’s website http://xxx.xxx.xxx.xxx/
2 – Your personal website http://xxx.xxx.xxx.xxx/~yourusername
and if you click on one of the 2 links it will open your default web browser and shows you the apache welcome page for the first one and your default index page for the second link.
ok but which is the root folder for my website? where can I copy my files to see them online?
simple, the folder is in your home folder, named “Sites” you’ll find the default index.html file and an images folder.
another question I asked myself was: Which version of Apache am I using?
this because I didn’t need to download it from the web and than “make” it, but I’ve found it already installed on the system but like always I wanted to know everything about the software on my machine, so here is how to check it:
(I bet there are other ways to do that)
- open the
Terminal window ( Finder -> Go -> Utilities -> Terminal )
- press Enter
- type httpd -v
and the output will be like:
Server version: Apache/2.2.6 (Unix)
Server built: Sep 23 2007 18:07:19
that’s it!!
I wrote it while I was setting up my apache on my MacBook and it worked for me, but it’s possible that I’ve made some mistakes writing this so feel free to leave a comment, suggestions or just improvements for it
Apache on your MACBOOK
little step by step on how to configure Apache on your MACBOOK. Why configure and not install? because MAC OS X has already installed in an Apache Server.
Before I start I want to say that I’m a MAC newbie after years of Windows and LINUX, so don’t be scared, if I did it you can do it as well
btw, here what you need to do:
- open “System Preferences…”
- open “Sharing”
- tick “Web Sharing”
- if you have Sleep mode set, it will ask you to configure it because it says that if your computer is in sleep mode other users will not be able to connect on your webservice and bla bla bla…. so it’s up to you
- then you’ve finished, you’ll see 2 links
and if you click on one of the 2 links it will open your default web browser and shows you the apache welcome page for the first one and your default index page for the second link.
ok but which is the root folder for my website?
where can I copy my files to see them online?
simple, the folder is in your home folder, named “Sites” you’ll find the default index.html file and an images folder.
another question I asked myself was:
Which version of Apache am I using?
this because I didn’t need to download it from the web and than “make” it, but I’ve found it already installed on the system but like always I wanted to know everything about the software on my machine, so here is how to check it:
(I bet there are other ways to do that)
- open the
Terminal window ( Finder -> Go -> Utilities -> Terminal )
- press Enter
- type httpd -v
and the output will be like:
that’s it!!
I wrote it while I was setting up my apache on my MacBook and it worked for me, but it’s possible that I’ve made some mistakes writing this so feel free to leave a comment, suggestions or just improvements for it
If you want to enable PHP look here Enable PHP on Mac OS X (Apache default webserver)