PDA

Click to See Complete Forum and Search --> : PHP on my Mac?


04-07-2004, 08:34 PM
I know this hasn't even been asked and I figure why not maybe one of you know.

How do I set up my Mac for a PHP based site? I'm running OSX 10.3.3. so does anybody have an idea?

I'm going to check the apple site for some info on this but if anyone can run me through an English translation of this I'd be one happy sun of a gun.

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

Ryan8720
04-07-2004, 09:37 PM
http://www.entropy.ch/software/macosx/php/

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

C:\DOS
C:\DOS\RUN
RUN DOS RUN

04-07-2004, 11:49 PM
Thank you good man!

I installed it and I'm going to check it out now. Thanks!

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

04-08-2004, 01:02 AM
OMG! Ryan what have you done?


So I installed the PHP extension for Apache and enabled Apache to on my Mac. Which is pretty cool cause all you have to do is type my IP after the http:// moniker in your address bar. The thing is I can't find what I installed and I don't know how to use Unix.

I think I might have to take this to a new forum. But Ryan you and axoi have been faithfully helping me so anything I learn I'll post here for your intrest or any others intrested.

Now I completely understand what you meant when you said we needed a bigger Web Design Section. As a Mod I'm going to fight the good fight for you and other web developers out there. Although I don't think we can really compete cause Site Point has a forum and there are a bunch of sites that touch on Web Issues.

This forum is strong when it comes to print knowledge and Print design issues. What I need is some hard core developers in here giving this noob a hand.

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

Ryan8720
04-08-2004, 01:34 AM
I would be able help you more if you were setting this up on Windows. I have a server and PHP installed on my PC.

Not sure what you mean by 'can't find what I installed'. I don't see why you would need to know Unix. Make a page with a .php extention and put

<? phpinfo(); ?>

in it and place it in the server root. Then run the server and bring up that page. It should give you a bunch of info if you have PHP installed correctly.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

C:\DOS
C:\DOS\RUN
RUN DOS RUN

04-08-2004, 11:11 PM
I can't find the server root. That is probably the main problem right now.

But once I installed the PHP it was supposed to create a sub folder named uses/php


I can't find this.

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

Ryan8720
04-08-2004, 11:18 PM
For a Mac it should be /Library/WebServer/Documents/. Try that.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

C:\DOS
C:\DOS\RUN
RUN DOS RUN

axoi
04-08-2004, 11:19 PM
Benjo,

Check out /etc/conf/httpd.conf or /etc/conf/access.conf

Those are where apache normally stores its configuration files. Your looking for DocumentRoot in one of those files.

If you still can't find it then use this command:

find / -name httpd.conf -print

exaclty as I typed it with all the spaces. It will probably give you a bunch of permission denied and stuff but it should eventually find the directory where this is located. ( You might also want to check /var/www as sometimes the conf files get stuck in there also)

Oh you don't have to type your ip address. You can use the reserved work localhost like so:

http://localhost <----------- this is always your machine unless some has messed something up big time.

The /Library/WebServer....is just an alias to the real directory.

- Bill

Post Edited (axoi) : 4/8/2004 6:22:14 PM GMT

04-09-2004, 12:42 AM
Bill where do I type all those things. Man I'm so lost I need a noob crash corse on Apache.

I feel really overwelmed with this stuff.

All I need it to be able to go into the root directory make a DNS point to my test site and run some test and a couple of tutorials on PHP.

I've gone one whole day and know nothing more than I knew yesterday. That is fustrating. I have about two months of time to finish this before the print work starts to take away web time. Is there any where I can go to learn Apache like that W3schools site teaches CSS?

Thanks for all your help but I'll be asking very basic questions unless I get a referance to go by for starters.

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

Ryan8720
04-09-2004, 12:54 AM
You would type that in the Unix prompt.

You can read the Apache manual that comes with it.

When you have the server running, you should be able to open up a browser and view you page by typing http://localhost/ .

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

C:\DOS
C:\DOS\RUN
RUN DOS RUN

04-09-2004, 01:02 AM
Bill I got it.

Well at least I found how to surf my Sites folder.

I'll be back with more info I found an article on webmonkey.com with the perfect info to get me up and running. Thanks!!!

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

axoi
04-09-2004, 01:13 AM
Benjo,

Nothing learned is ever worthless. Experience comes from having the hard times..not the easy times. You learn nothing if its easy.

I would take back your line about not learning anything today. I think you've learn how to install and use Apache. That's saying something.

- Bill

04-09-2004, 07:05 PM
axoi said...
Benjo,

Nothing learned is ever worthless. Experience comes from having the hard times..not the easy times. You learn nothing if its easy.

I would take back your line about not learning anything today. I think you've learn how to install and use Apache. That's saying something.

- Bill

Your 100% right and if it wasn't for me getting rear ened by a Dodge Ram and have some neck pain, speaking to lawyers, doctors, insurance agencies etc. I would probably be alot more optimistc right now.

Oh and it happend on the highway he had to be going at least 40 cause I was going above sixty when I stoped and I noticed he wasn't paying attention cause he flew into my rear end.

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

04-12-2004, 08:21 PM
Okay guys I have everything running let me know if you can see my site.

10.49.81.157/~benCortes/cbcamericaTest/index.htm (http://10.49.81.157/~benCortes/cbcamericaTest/index.htm)

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

ecsyle
04-12-2004, 11:57 PM
I cannot connect to it. Are you behind a router? You might have to forward port 80 to your mac.

http://www.ecsyle.com/pictures/forum/3.jpg
Art Forums (http://www.artformsdesign.com) | Ecsyle.Com (http://www.ecsyle.com)

04-13-2004, 12:29 AM
Dam you can't see it?

Hey I'm behind the company firewall how do I forward port 80 on my mac?

http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'

ecsyle
04-13-2004, 12:50 AM
Do you have access to the firewall? If it is just a router, you could go to the admin panel and do it there, or if its a *nix box, you might have to mod some iptables config. I am not too familiar with IPTables, so I cannot help you there, my script was just copied from someone elses setup.

If it is just a router, you can go to http://192.168.0.1 (or whatever the address is, ) put in the username & password. There should be a section for port forwarding. You want to forward port 80 to your machines lcoal IP address.

http://www.ecsyle.com/pictures/forum/3.jpg
Art Forums (http://www.artformsdesign.com) | Ecsyle.Com (http://www.ecsyle.com)