Technology Get the latest on technology, electronics and software…

Trouble installing php on linux

Old Oct 6, 2004 | 09:45 PM
  #1  
VijaySinghisKing's Avatar
Thread Starter
Instructor
 
Joined: Sep 2004
Posts: 130
Likes: 0
From: Everywhere
Trouble installing php on linux

So I got apache working, and then I installed php (./configure, make, make install), but when I save a php doc in htdocs and view it w/ mozilla I get nothing. Anyone know a site that explains it step by step? Or can anyone think what I'm doing wrong? Red Hat 9.

Thanks
Reply
Old Oct 6, 2004 | 10:18 PM
  #2  
CleanCL's Avatar
Suzuka Master
iTrader: (4)
 
Joined: Jun 2004
Posts: 5,679
Likes: 12
From: New York, USA
have you installed php first? i might be confused but you might have to, get back to me and ill go see if i can find some info.
Reply
Old Oct 6, 2004 | 10:31 PM
  #3  
wipe0ut's Avatar
visit me
 
Joined: Feb 2004
Posts: 2,804
Likes: 0
From: N ew Y ork
/pathto/httpd.conf

uncomment this line

AddType application/x-httpd-php .php

restart apache
Reply
Old Oct 6, 2004 | 10:38 PM
  #4  
mattg's Avatar
Senior Moderator
 
Joined: Nov 2001
Posts: 22,909
Likes: 388
From: OR
how's it going mrateb?
Reply
Old Oct 6, 2004 | 10:43 PM
  #5  
Handruin's Avatar
Masshole
 
Joined: Apr 2001
Posts: 1,273
Likes: 1
From: MA
Also verify that you have the following in you httpd.conf:

LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c

In addition to what wipe0ut suggested:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Next, look for:
DirectoryIndex index.html

Change it to:

DirectoryIndex index.html index.php default.php index.htm
Reply
Old Oct 6, 2004 | 10:50 PM
  #6  
wipe0ut's Avatar
visit me
 
Joined: Feb 2004
Posts: 2,804
Likes: 0
From: N ew Y ork
Originally Posted by Handruin
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
lolz. php3 ownz me.
Reply
Old Oct 6, 2004 | 10:53 PM
  #7  
Handruin's Avatar
Masshole
 
Joined: Apr 2001
Posts: 1,273
Likes: 1
From: MA
I think those are the ones needed for linux. I've done primarily windows setups, but it's pretty close in terms of the httpd.conf.
Reply
Old Oct 6, 2004 | 10:54 PM
  #8  
wipe0ut's Avatar
visit me
 
Joined: Feb 2004
Posts: 2,804
Likes: 0
From: N ew Y ork
yeh thats it. he should be all set with what you told him.
Reply
Old Oct 6, 2004 | 11:18 PM
  #9  
Handruin's Avatar
Masshole
 
Joined: Apr 2001
Posts: 1,273
Likes: 1
From: MA
I just thought of something. VijaySinghisKing said he gets nothing when trying to view the php file. Usually if php isn't configured correctly and you try to view a php file, it downloads the file...or displays the actual php code in the browser. Might be something else going on.
Reply
Old Oct 6, 2004 | 11:30 PM
  #10  
Smalls's Avatar
Insert Sarcasm Here
 
Joined: Jul 2003
Posts: 3,552
Likes: 4
From: Gardner, KS
i had sooo much trouble with php on XP
Reply
Old Oct 6, 2004 | 11:48 PM
  #11  
Handruin's Avatar
Masshole
 
Joined: Apr 2001
Posts: 1,273
Likes: 1
From: MA
It's because of their instructions, they are missing a step. I had a hell of a time too, but found out it was a simple placement of two files that were causing me problems.

Where you using php with apache or IIS on XP? I'm using apache 2 and it's been working fine for over a year.
Reply
Old Oct 7, 2004 | 12:13 AM
  #12  
CleanCL's Avatar
Suzuka Master
iTrader: (4)
 
Joined: Jun 2004
Posts: 5,679
Likes: 12
From: New York, USA
gosh darn linux... i havent used php w/ apache in a long time, even after i did get it working i really wasnt sure how i did it
Reply
Old Oct 7, 2004 | 07:31 AM
  #13  
VijaySinghisKing's Avatar
Thread Starter
Instructor
 
Joined: Sep 2004
Posts: 130
Likes: 0
From: Everywhere
Thanks all!

I'll try it and see what happens!
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Kevin Sami
2G TL (1999-2003)
4
Sep 22, 2015 09:59 AM
TxRzrBk
3G TL Problems & Fixes
0
Sep 17, 2015 01:07 PM
Da_Web_Head
3G TL (2004-2008)
1
Sep 11, 2015 06:36 PM
Bahamanurse1
2G TL (1999-2003)
17
Sep 10, 2015 10:05 PM
bshotts
1G RDX Performance Parts & Modifications
0
Aug 30, 2015 02:08 PM



All times are GMT -5. The time now is 11:10 AM.