New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

local host


Post Reply New Thread Subscribe

 
Thread Tools
vic one

 
Member Since: Feb 03, 2005
Location: nz
Posts: 20
vic one is on a distinguished road
Mac Specs: powerbook g4, 17", 1gb ram

vic one is offline
hey guys, i'm new here!
i would like to know, how to set up a local host server on my mac, this involves installing php and Apache. And I don't know anything about it.
You see, i am trying to make a web page, but it requires php+mySQL hosting, now since it's the first time i'm actually attempting something as challenging as that, i don't know how long will it take for me to learn how to do the whole thing properly, and i don't want to waste money on hosting, that's why i need to setup a local, offline host on my machine.
can someone please help me with it, i don't know much about web technologies, coding etc.

thanks in advance
QUOTE Thanks
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
Ok, well it's quite simple really. You can turn on apache through the sharing control panel (check the box next to web sharing).

To turn on the version of PHP that comes preinstalled with osx, follow this tutorial: http://the.taoofmac.com/space/HOWTO/...20Mac%20OS%20X

Otherwise if you want a newer version, you can get a package from here: http://www.entropy.ch/software/macosx/php/

To install mySQL the easiest way is to download the official mySQL package from mysql. Download the installer package for your version of the OS. It's 2/3 down the page: http://dev.mysql.com/downloads/mysql/

To run mysql just follow the instructions in the readme file you get with the installer. There are also several GUI mySQL programs you can get if you don't like running it through the command line.

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks
vic one

 
Member Since: Feb 03, 2005
Location: nz
Posts: 20
vic one is on a distinguished road
Mac Specs: powerbook g4, 17", 1gb ram

vic one is offline
hey there, thanks for your post.
ufortunatelly i'm not familiar with open source code operating systems, i've swiched from winxp about half a year ago, if i understand correctly, i need to swich on vi in terminal, but for some reason after imputting :
$ sudo vi /etc/httpd/httpd.conf
it doesnt ask for a pass, in fact it doesnt do anything.
what am i doing wrong?
QUOTE Thanks
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
Try using pico in place of vi, see if that works.

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks
vic one

 
Member Since: Feb 03, 2005
Location: nz
Posts: 20
vic one is on a distinguished road
Mac Specs: powerbook g4, 17", 1gb ram

vic one is offline
ok, i write the line, press return key and it just goes to next line, am i doin smthng wrong?

this line i mean
$ sudo vi /etc/httpd/httpd.conf
QUOTE Thanks
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
You want to write "sudo pico /etc/httpd/httpd.conf". Don't type in the $.

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks
vic one

 
Member Since: Feb 03, 2005
Location: nz
Posts: 20
vic one is on a distinguished road
Mac Specs: powerbook g4, 17", 1gb ram

vic one is offline
hey thnx alot, after running the php test i got the php page fine, the only concern i have is that it has this at the top:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /Users/vic1/Sites/phptest.php on line 7

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /Users/vic1/Sites/phptest.php on line 8
{\rtf1\mac\ansicpg10000\cocoartf102 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww9000\viewh9000\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5 040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural \f0\fs24 \cf0
QUOTE Thanks
vic one

 
Member Since: Feb 03, 2005
Location: nz
Posts: 20
vic one is on a distinguished road
Mac Specs: powerbook g4, 17", 1gb ram

vic one is offline
btw, i've also noticed that everytime i try to download stuff from mirror such as
http://mysql.inspire.net.nz/Download....0-powerpc.dmg
it would skip the download and redirect to some page
QUOTE Thanks
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
I wouldn't worry about those errors on the phpinfo() page you may have made a typo somewhere.

Quite often you'll be redirected all over the place before a download starts - just be patient and keep an eye on the download window (press apple-option-l). If you find that nothing appears in the download window, ctrl-click on the hard link (the link that says 'if nothing happens click here') and choose 'download linked file as...'

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks

Post Reply New Thread Subscribe


« Blogging Confusion? | Free hosting?? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Apple Stores to host after-Thanksgiving music event Murlyn Apple Rumors and Reports 7 11-22-2006 03:53 PM
Local Area Connection Help PMJx2 Apple Notebooks 7 08-24-2004 09:15 AM
Can I use ichat on local networked comps only? how? evangel!st Internet, Networking, and Wireless 1 02-04-2004 12:06 PM
Can I use ichat on local networked comps only? how? evangel!st Internet, Networking, and Wireless 0 02-04-2004 11:44 AM
editing the host file in OSX??? stu_69 OS X - Operating System 8 10-03-2003 01:03 PM

All times are GMT -4. The time now is 07:16 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?