image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X Server

Reply
 
Thread Tools
  #1  
Old November 2nd, 2005, 12:14 PM
Registered User
 
Join Date: May 2005
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
eliezer is on a distinguished road
How do I make my computer a web server?

Hi,

I have a G5 1.6Ghz, is it possible for me to host my website on my own computer?
__________________
1.6 ghz G5, 80GB hard disk, 512mb RAM, 17 inch moniter, os x 10.4.4

dual 2 ghz G5, 19 inch moniter, os x 10.4.4
Reply With Quote
  #2  
Old November 2nd, 2005, 02:14 PM
BjarneDM's Avatar
Registered User
 
Join Date: Oct 2005
Location: København ; Danmark ; Europa
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
BjarneDM is on a distinguished road
Yes, but you must of course the be prepared to have it running 24/7.

To enable the built-in Apache you'll just have to turn on 'Personal websharing' in the 'Sharing' prefPane in the 'System Preferences'.

Now, PHP *isn't turned on by default. To do that, you'll have to mess around in a *nix configuration file called httpd.conf. Information on what to change is here: http://dk2.php.net/manual/en/faq.ins...ion.processing

You'll have to be root to edit httpd.conf. There are three user-friendly ways of doing that
1) using BBEdit http://www.versiontracker.com/dyn/moreinfo/macosx/603
2) using Pseudo http://www.versiontracker.com/dyn/moreinfo/macosx/9608 to launch TextEdit
3) using Terminal to launch TextEdit as root : http://www.macosxhints.com/article.p...30330175504453

in case 1) you can then execute 'bbedit /private/etc/httpd/httpd.conf' in Terminal
in case 2) and 3) execute 'open -e /private/etc/httpd/httpd.conf' in Terminal
__________________
Bjarne D Mathiesen
København ; Danmark ; Europa
Reply With Quote
  #3  
Old November 2nd, 2005, 03:00 PM
Lt Major Burns's Avatar
"Dicky" Charlteston-Burns
 
Join Date: Jan 2005
Location: Manchester
Posts: 3,329
Thanks: 0
Thanked 1 Time in 1 Post
Lt Major Burns will become famous soon enough
i turn websharing on, anbd it worked, and i put my web page there, and it worked, but why won't dot tk accept it as a web address? it says it's being redirected already?
__________________
Dual 1.8GHz G5 2GB, 1TB, Radeon 9600XT 128MB, 10.5
20" Apple Cinema Display + Dell 2005FPW 20" dual-head
iBook G3 700MHz
640MB, 40GB, Rage128 16MB, 10.4, dying battery
Reply With Quote
  #4  
Old November 2nd, 2005, 03:14 PM
BjarneDM's Avatar
Registered User
 
Join Date: Oct 2005
Location: København ; Danmark ; Europa
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
BjarneDM is on a distinguished road
Quote:
Originally Posted by Lt Major Burns
i turn websharing on, anbd it worked, and i put my web page there, and it worked, but why won't dot tk accept it as a web address? it says it's being redirected already?
More information, please.
__________________
Bjarne D Mathiesen
København ; Danmark ; Europa
Reply With Quote
  #5  
Old November 2nd, 2005, 06:26 PM
Registered User
 
Join Date: May 2005
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
eliezer is on a distinguished road
ye. more details.

if i turn on presonal web sharing, that means my computer can only be accessed by others on my network doesn't it.

how do you make it so that when someone types in your ip address, from anywhere in the world, they connect to your web site?
__________________
1.6 ghz G5, 80GB hard disk, 512mb RAM, 17 inch moniter, os x 10.4.4

dual 2 ghz G5, 19 inch moniter, os x 10.4.4
Reply With Quote
  #6  
Old November 2nd, 2005, 06:47 PM
Registered User
 
Join Date: May 2005
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
eliezer is on a distinguished road
i've downloaded Pseudo (no. 3 didn't work) and i opened text edit with it, but then when i type in 'open -e /private/etc/httpd/httpd.conf', it doesn't give let me save it and says i have to be root. what do i do?
__________________
1.6 ghz G5, 80GB hard disk, 512mb RAM, 17 inch moniter, os x 10.4.4

dual 2 ghz G5, 19 inch moniter, os x 10.4.4
Reply With Quote
  #7  
Old November 2nd, 2005, 10:34 PM
BjarneDM's Avatar
Registered User
 
Join Date: Oct 2005
Location: København ; Danmark ; Europa
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
BjarneDM is on a distinguished road
prefix with sudo then:
sudo open -e /private/etc/httpd/httpd.conf
and enter admin password when prompted

That should hopefully work - I'm usually using 1)

Good Luck
__________________
Bjarne D Mathiesen
København ; Danmark ; Europa
Reply With Quote
  #8  
Old November 3rd, 2005, 09:54 PM
Michael Dhaliwal, ACSA
 
Join Date: Mar 2003
Location: Chicago, IL
Posts: 1,057
Thanks: 0
Thanked 2 Times in 2 Posts
Go3iverson is on a distinguished road
Quote:
Originally Posted by eliezer
ye. more details.

if i turn on presonal web sharing, that means my computer can only be accessed by others on my network doesn't it.

how do you make it so that when someone types in your ip address, from anywhere in the world, they connect to your web site?
You need to have an externally viewable IP and something to bridge that external IP to the internal IP you are using. You can do this with a basic router.
__________________
Michael Dhaliwal
ACSA, Xsan Certified, etc, etc...
District13 Computing
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 04:41 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.