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 > I can't seem to get Apache and PHP working on 10.4

I can't seem to get Apache and PHP working on 10.4
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2004
Location: Tucson
Status: Offline
Reply With Quote
May 4, 2005, 02:30 PM
 
Ok... Here's what I've done thus far...
I started by trying to enable php via /etc/httpd/conf/httpd.conf. This causes an error telling me the php4 library is already loaded. The second part of this problem is that when going to the test.php (which just runs phpinfo()) it tells me it's an application and that I need to download it.
The other part is that on panther I'd upgraded apache and php to the newest (stable) versions but the ones in tiger are older.
So anyway I redownloaded them, built them and ran the make install. But it does not install.. I did it from a superuser terminal so it should have installed, but after building and installing, php -V (or is it -v) anyway, it shows the same version as before, same when I go to the terminal and type httpd -v. (I also built and installed apache also)
Has any one else experienced this or, maybe better yet does any one know how to make php and apache work on tiger?
BTW I've already gone through the httpd.conf file so if your going to tell me to activate it there, please include the line of text to enter that activates it since uncommenting the loadmodule line does nothing.
Currently, when I go to the test page I get an html page which has a tag in it that say generated by cocoa html or something like that, any way, it shows the line <? phpinfo(); ?> and thats all thats on the page. This is totaly beyond me. I cannot figure out why this is happening. Why is it taking the content of the php script and turning it into an html page?



April.
P.S. With all the problems I've had with tiger would it just be better to go pack to the stable and trustworthy panther?
     
Mac Elite
Join Date: Feb 2003
Location: columbus, oh
Status: Offline
Reply With Quote
May 4, 2005, 04:28 PM
 
"Another classic science-fiction show cancelled before its time" ~ Bender

15.2" PowerBook 1.25GHz, 80GB HD, 768MB RAM, SuperDrive
     
Fresh-Faced Recruit
Join Date: Dec 2004
Location: Tucson
Status: Offline
Reply With Quote
May 4, 2005, 05:09 PM
 
Originally Posted by OptimusG4
Have you tried this build? http://www.entropy.ch/software/macosx/php/
Thanks for the reply,
Yeah, I sure did. That was the... Lets see... Third attempt at an install that I've made. This one is a package install and I really thought it would work.

April.
     
Mac Elite
Join Date: Feb 2003
Location: columbus, oh
Status: Offline
Reply With Quote
May 4, 2005, 06:15 PM
 
Wow, odd cause it worked for me :/ Sorry I couldn't help further!
"Another classic science-fiction show cancelled before its time" ~ Bender

15.2" PowerBook 1.25GHz, 80GB HD, 768MB RAM, SuperDrive
     
Fresh-Faced Recruit
Join Date: Dec 2004
Location: Tucson
Status: Offline
Reply With Quote
May 5, 2005, 12:58 PM
 
Originally Posted by OptimusG4
Wow, odd cause it worked for me :/ Sorry I couldn't help further!
Aha!
Ok, I did an archive and install of Tiger. My best guess here is that something about me downloading and building php and apache on panther had an effect on the Tiger install. Everything works just fine now. As I had said before I had upgraded php to 5.0.4 and apache to 2.0.39 I think, while I was still on panther.


April.
     
   
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 07:29 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