 |
 |
Ok, so what I would need?
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2000
Location: POLAND
Status:
Offline
|
|
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
|
|
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.
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2000
Location: POLAND
Status:
Offline
|
|
Thanks!
Offcourse I am running 10.2.4, not 10.0.4...
Regards,
Kamil
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2000
Location: POLAND
Status:
Offline
|
|
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
|
|
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 
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|