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 > PHP in 10.1

PHP in 10.1
Thread Tools
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Oct 22, 2001, 04:24 PM
 
I am interested in coding in PHP and possibly MySQL. But for right now I would like to inquire about PHP functionality in MacOS 10.1.

I downloaded, ./configured, and made PHP 4.0.6, and uncommented the 3 lines in /etc/httpd/httpd.conf regarding PHP functionality in Apache. I believe the lines were something about AddModule and LoadModule...

I save changes to the file, then sudo apachectl restart... Then I fire up pico, construct a simple php test page:

<?php
phpinfo();
?>

save it as phpinfo.php, then load up a browser and load the page. I get plain text, rather than the phpinfo page, which is supposed to come up.

I've tried to compile PHP by myself, download via fink, and use packaged installers from macosx.forked.net... all to no avail.

I don't know what I'm misconfiguring, doing wrong, or simply not doing.

Thank you.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
Oct 22, 2001, 06:13 PM
 
Originally posted by [APi]TheMan:
<STRONG>then load up a browser and load the page.</STRONG>
do you load it via "open file..." or do you actually start apache and open it via "http://127.0.0.1/&lt;path to the document"?

just opening won't do the trick since it'll have to be processed by apache. my php works flawlessly.
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Oct 23, 2001, 08:41 AM
 
Originally posted by seb2:
<STRONG>

do you load it via "open file..." or do you actually start apache and open it via "http://127.0.0.1/&lt;path to the document"?

just opening won't do the trick since it'll have to be processed by apache. my php works flawlessly.</STRONG>
I don't know what was done to make it work, but it works now. My friend logged onto my box via a remote ssh session and changed something in httpd.conf.

But thanks for the advice.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
   
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 12:32 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