Re: QUICK INSTALL (Static) Vs. (DSO)

From: Date: Mon, 31 Jul 2000 14:33:20 +0000
Subject: Re: QUICK INSTALL (Static) Vs. (DSO)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9167@lists.php.net to get a copy of this message
> I am going through the very same thing. I spent most of yesterday > trying to get it installed and working. I am using Redhat 6.2 and > notice that the instructions on the php site refer to php3, has > anything changed? Is it simply a matter of switching a 4 for 3 in > every case? Is there any difference in the install? Well, I wish they > would change it but I used the instructions found in the php 4 > distribution (php-4.0.1pl2). The INSTALL file shipped with each distribution is always the most accurate. > 1) In the Lasso install on RedHat 6.2 what is the value for "PREFIX" used in > > $ ./configure --prefix=/PREFIX --activate-module=src/modules/php4/libphp4.a > > Is this where Redhat expects the final Apache application to be > installed or is it the location of the source files? Don't use --prefix. For RedHat use --with-layout=RedHat instead. > 2) The quick instructions say: > > "make > (you should now have an httpd binary which you can copy to your Apache bin dir) > > cd ../php-4.0.x > cp php.ini-dist /usr/local/lib/php.ini" > > Is this line showing my how to copy the httpd binary? Is "php.ini" a > httpd binary? If not, how do I copy the httpd binary and where does > it go on RedHat? Not, this is showing you how to copy you php.ini file into place. To copy your httpd binary, use: cp httpd <destination> > 3) As far as I can tell the conf/httpd.conf file requires the > following lines only when I am using the DSO install: > > LoadModule php4_module modules/libphp4.so > AddModule mod_php4.c > > The following line is needed in both cases? > > AddType application/x-httpd-php .php > > Is that correct for static I don't need LoadModule and AddModule? That's correct. But I would suggest you use the dynamic build. You will have less problems upgrading and adding new features, etc. -Rasmus

« previous php.general (#9167) next »