The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Looking for a Python CLI module jjinno Shell Programming and Scripting 1 02-22-2008 05:31 PM
pam module quesion mokkan SUN Solaris 0 12-24-2007 08:02 AM
Custom pam module mhm4 SUN Solaris 1 10-02-2006 03:33 PM
make module for nic auji High Level Programming 0 07-16-2004 12:15 PM
LWP module ? Beto UNIX for Dummies Questions & Answers 4 07-12-2001 05:17 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-10-2001
Registered User
 

Join Date: Jan 2001
Location: Jax, Fl
Posts: 12
Ok..i've installed Apache 1.3.14, and it runs... BUT...I can't figure out how to get the php-4.0.4 module to run, and i've read through the install file and EVERYTYHING, aafter about 10 attempts I pissed myself off enough to goto sleep...Can anyone suggest a place to look for a lil bit more help?
The order of operations is more of what I probably need more then anything, cause I just don't know which one to compile first, And i'm thinking that I should just be able to compile the PHP and then configure the conf file in Apache

~ComTec
Forum Sponsor
  #2  
Old 02-10-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,445
There are a least two ways to add PHP functionality to Apache. One is as a loadable module, the other is as a static extension. I have found that following the instructions for building a static extension is much easier than building a loadable module. So, all my PHP, Apache configs use this later approach.

In this approach, the instructions are clear, but complex. You compile PHP as instructed and then instruct Apache to compile with PHP, the compile Apache. This is somewhat complex and is not something I would expect a newbie to do very easily. There are distributions which combine both PHP and Apache with a script to make it easier. You might consider finding one of these 'combined distros'.

Also, I found that the Wrok PHP book was helpful and used it for my install. (the red ones with the pictures of authors on the front).
  #3  
Old 02-10-2001
Registered User
 

Join Date: Jan 2001
Location: Jax, Fl
Posts: 12
Hmmmmm

Hmm...
(After I install apache and it runs)
then I can make the php module just run with it?:

1)(PHP)./configure --with-apache=home/usr/apache_1.3.14/apache ?

2)make

then goto apache dir:
3)./configure --add-module=home/usr/php-4.0.4/libphp4.a (or whatever)

4)make
5)switch to php directory, MAKE INSTALL
6)switch to Apache directory, MAKE INSTALL
then edit the httpd file.. then it should run?

~ComTec
  #4  
Old 02-10-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,445
You can do the make install for the PHP distro anytime. The trick is to make the PHP module and then to recompile apache to link to the PHP module you created. Then, you install apache (complete with PHP statically linked). The directions in the PHP distro were pretty straight-forward, as I recall. The PHP book just repeats the same info in the PHP distro (again, just relying on memory).
  #5  
Old 02-11-2001
Registered User
 

Join Date: Jan 2001
Location: Jax, Fl
Posts: 12
Sorry...

Hmm, yea i'm kinda stupid when it comes to UNIX but i'm trying to learn how to do this ... And i've gone over the "How-To's for idiots" heh.. and it still won't work..
So what your saying is "./configure THEN MAKE" the apache", then go back to PHP and make / make install that.. then just
go back to apache then re-configure it to --add-module to the php lipphp4.a then MAKE/MAKE INSTALL.. then it should work after I edit the .conf?

-ComTec
  #6  
Old 02-11-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,445
No. What I'm saying is to configure and make PHP, then configure and make apache with PHP, with PHP code linked. The README is very straight forward and describes this in very good detail. If you don't understand the README, then your next best bet is to go get a copy the Wrok PHP book. The book has a nice chapter on installing PHP/Apache. The install is complex and we will not be able to do it over the forum unless you dive into the supporting books and literature, sorry.
  #7  
Old 02-11-2001
Registered User
 

Join Date: Jan 2001
Location: Jax, Fl
Posts: 12
Sorry...

Where can I get that at? Books-a-million is that a order only book? Cause i'm gonna go look on their site..


Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0