|
#1
| |||
| |||
| 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 |
|
#2
| ||||
| ||||
| 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 |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| Quote:
__________________ Bjarne D Mathiesen København ; Danmark ; Europa |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| ||||
| ||||
| 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 |
|
#8
| |||
| |||
| Quote:
|