Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Ok, so what I would need?

Ok, so what I would need?
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2000
Location: POLAND
Status: Offline
Reply With Quote
Feb 25, 2003, 06:43 AM
 
Hi.

I'm working currently on a web portal which is foused on the Japan url]www.japonia.org.pl[/url]). It uses php & mysql and is Apache based. I would like to work on this also at home, but I don't have an internet connection. I think that I need kind of a virtual server, and then place all of my stuff on my home computer so that it will be visible from the standard web browser (from my "localhost" directory)... but I really don't know what software I would need to install on my G4 to work with php, sql and such kind of things. I am using MacOS 10.0.4.

Best Regards,
Kamil
www.japonia.org.pl
     
Mac Elite
Join Date: Mar 2001
Location: England
Status: Offline
Reply With Quote
Feb 25, 2003, 07:32 AM
 
10.0.4? I'd really suggest you upgrade!

MacOS X comes with Apache installled, and PHP installed but not running. You have to edit your httpd.conf (I think) file to enable it - there should be instructions somewhere if you search this forum.

Go here to get yourself a copy of MySQL.


Amorya
What the nerd community most often fail to realize is that all features aren't equal. A well implemented and well integrated feature in a convenient interface is worth way more than the same feature implemented crappy, or accessed through a annoying interface.
     
kamil  (op)
Fresh-Faced Recruit
Join Date: Oct 2000
Location: POLAND
Status: Offline
Reply With Quote
Feb 25, 2003, 07:58 AM
 
Thanks!

Offcourse I am running 10.2.4, not 10.0.4...


Regards,
Kamil
     
kamil  (op)
Fresh-Faced Recruit
Join Date: Oct 2000
Location: POLAND
Status: Offline
Reply With Quote
Mar 1, 2003, 09:47 AM
 
Ok, so I finally tracked down the file (httpd.conf), but I do not know what I should really change to make the php and apache working. Any help...?

Regards,
Kamil
     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Mar 1, 2003, 10:44 AM
 
Originally posted by kamil:
Ok, so I finally tracked down the file (httpd.conf), but I do not know what I should really change to make the php and apache working. Any help...?

Regards,
Kamil
Copy it to the desktop... Open it with TextEdit and then do a search for "PHP" the first line it finds will be commented, to uncomment it, remove the "# " from in front of it. Then do command-g to continue searching, the next line it finds will also be commented, use the above steps to uncomment it. Then at the very bottom of your httpd.conf add:

AddType application/x-httpd-php .php

Then save, launch the Terminal (/Applications/Utilities/Terminal.app). Enter in the following line:

sudo cp ~/Desktop/httpd.conf /etc/httpd/httpd.conf

That will prompt you for your password, you won't see yourself typing, but it is registering what you type. Then press return, and then type:

sudo apachectl restart

It may or may not prompt you for a password again, if it does, use the steps above. Hope this helps
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 08:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2