PHP Module

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers PHP Module
# 1  
Old 02-10-2001
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

# 2  
Old 02-10-2001
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

(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 ?


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

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

# 4  
Old 02-10-2001
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

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?

# 6  
Old 02-11-2001
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

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

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Solaris install php as an apache module

Hi, I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10. Please any help is wellcome. Some aditional info: /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs bash-3.2# g++ -v Reading specs from... (1 Reply)
Discussion started by: lbslbs
1 Replies

2. Solaris

Compile PHP as an Apache module on Solaris

Hi, I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10. Please any help is wellcome. Some aditional info: /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs bash-3.2# g++ -v Reading specs from... (0 Replies)
Discussion started by: lbslbs
0 Replies

3. Solaris

Installing ZIP module for PHP

Hi Guys, I am using SOLARIS 10 and I want to install ZIP module for PHP. I went to this link and I choose zip-1.12.3.tgz, the latest "stable" release, and then transferred it to my server. Then I went to my path /usr/local/apache2/conf then untar the... (1 Reply)
Discussion started by: Phuti
1 Replies

4. Red Hat

PAM module pam_passwdqc module

Hello friends Today i have changed my passwd policy for strong password Everything is working correctly but when i changed my password , it did not ask me my old password my /etc/pam.d/system-auth file is (only module line) password required retry=3... (0 Replies)
Discussion started by: rink
0 Replies

5. Solaris

mcrypt module is not initially loaded with php

Hi I'm trying to do an upgrade for one application and whenever I run the upgradre the program shows the error that mcrypt module is not initially loaded with php. My server is running xampp 0.9 and I know this library of mcrypt is already installed. I changed the php.ini file in order to... (0 Replies)
Discussion started by: dahr
0 Replies

6. Shell Programming and Scripting

Perl Module

Hi, Please help me!! Im wondering if anyone can help me with a problem i have with some perl modules. My problem is: I'm trying to connect remote host to a unix box from a windows machine. So i'm developing an application to do this. I'm programming it in perl with tcl/tk Gui interface.... (13 Replies)
Discussion started by: Phi01
13 Replies

7. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies

8. UNIX for Dummies Questions & Answers

get error while compiling apache with php module

hi, i'm compiling apache with php module after i finish compile mysql-4.0.0-alpha. i do it as the follow steps after untar'ed them in the same directory, 1) cd apache_1.3.22 ./configure 2) cd php-4.0.6 ./configure --with-mysql=/usr/local/mysql \ --with-apache=../apache_1.3.22 \... (2 Replies)
Discussion started by: jApHEth
2 Replies
Login or Register to Ask a Question