Re: [PHP] compiling on freebsd

2002-04-25 Thread Christopher Riordan

what are you using for your flags when you do ./configure

normal should be ./configure --with-apxs=/usr/local/apache/bin/apxs

Things like that. if you ran ./configure nothing will compile the libphp4
for you. there is a Install file which will walk you thru the setup also on
the manual on php.net under installation there is a freebsd section.

Christopher Riordan
http://www.hal-9000.net

- Original Message -
From: Larry Brown [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 1:30 AM
Subject: RE: [PHP] compiling on freebsd


 I don't mean to be rude but as I mentioned in my post After running
 ./configure make and make install  Please review my post for the
actual
 problem.

 Larry S. Brown MCSE
 Dimension Networks, Inc.
 Member ICCA
 (727) 723-8388

 -Original Message-
 From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 25, 2002 1:25 AM
 To: Larry Brown; [EMAIL PROTECTED]
 Subject: Re: [PHP] compiling on freebsd

 ./configure
 make
 make install



 On Wednesday 24 April 2002 22:08 pm, you wrote:
  I am trying to get php installed and working on a freebsd server and I'm
  used to using linux where it hasn't failed me before.  After running
  ./configure make and make install there is no libphp4.so anywhere on the
  server.  I ran just ./configure and make and then checked the current
  directories for the file with no positive results.
 
  Larry S. Brown MCSE
  Dimension Networks, Inc.
  Member ICCA
  (727) 723-8388

 --
 Common sense is not so common.

 Voltaire



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] compiling on freebsd

2002-04-24 Thread Evan Nemerson

./configure
make
make install



On Wednesday 24 April 2002 22:08 pm, you wrote:
 I am trying to get php installed and working on a freebsd server and I'm
 used to using linux where it hasn't failed me before.  After running
 ./configure make and make install there is no libphp4.so anywhere on the
 server.  I ran just ./configure and make and then checked the current
 directories for the file with no positive results.

 Larry S. Brown MCSE
 Dimension Networks, Inc.
 Member ICCA
 (727) 723-8388

-- 
Common sense is not so common.

Voltaire

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] compiling on freebsd

2002-04-24 Thread Larry Brown

I don't mean to be rude but as I mentioned in my post After running
./configure make and make install  Please review my post for the actual
problem.

Larry S. Brown MCSE
Dimension Networks, Inc.
Member ICCA
(727) 723-8388

-Original Message-
From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 1:25 AM
To: Larry Brown; [EMAIL PROTECTED]
Subject: Re: [PHP] compiling on freebsd

./configure
make
make install



On Wednesday 24 April 2002 22:08 pm, you wrote:
 I am trying to get php installed and working on a freebsd server and I'm
 used to using linux where it hasn't failed me before.  After running
 ./configure make and make install there is no libphp4.so anywhere on the
 server.  I ran just ./configure and make and then checked the current
 directories for the file with no positive results.

 Larry S. Brown MCSE
 Dimension Networks, Inc.
 Member ICCA
 (727) 723-8388

--
Common sense is not so common.

Voltaire



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] compiling on freebsd

2002-04-24 Thread Rasmus Lerdorf

Please read the INSTALL file.  The default is to make the command line php
binary if you do not provide any ./configure flags, so simply typing
./configure  make  make install should have installed
/usr/local/bin/php and it would not have built a libphp4.so.  For that you
need to add --with-apxs

-Rasmus

On Thu, 25 Apr 2002, Larry Brown wrote:

 I don't mean to be rude but as I mentioned in my post After running
 ./configure make and make install  Please review my post for the actual
 problem.

 Larry S. Brown MCSE
 Dimension Networks, Inc.
 Member ICCA
 (727) 723-8388

 -Original Message-
 From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 25, 2002 1:25 AM
 To: Larry Brown; [EMAIL PROTECTED]
 Subject: Re: [PHP] compiling on freebsd

 ./configure
 make
 make install



 On Wednesday 24 April 2002 22:08 pm, you wrote:
  I am trying to get php installed and working on a freebsd server and I'm
  used to using linux where it hasn't failed me before.  After running
  ./configure make and make install there is no libphp4.so anywhere on the
  server.  I ran just ./configure and make and then checked the current
  directories for the file with no positive results.
 
  Larry S. Brown MCSE
  Dimension Networks, Inc.
  Member ICCA
  (727) 723-8388

 --
 Common sense is not so common.

 Voltaire



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] compiling on freebsd

2002-04-24 Thread Larry Brown

I ended up using a port which eventually worked.  I parsed the INSTALL file
and it didn't mention anything about specifically adding libphp4.so.  It
mentioned checking the flags available with ./configure -help which I ran.
But I had no way of knowing what apxs means.  It mentioned -with-apxs in the
INSTALL description but stated that if I got an error to physically locate
apxs and tell configure where it is.  I did a search for apxs* with no
results.  Anyway, I did get it going.  Thank you for the input.

Larry S. Brown MCSE
Dimension Networks, Inc.
Member ICCA
(727) 723-8388

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 12:40 AM
To: Larry Brown
Cc: PHP List
Subject: RE: [PHP] compiling on freebsd

Please read the INSTALL file.  The default is to make the command line php
binary if you do not provide any ./configure flags, so simply typing
./configure  make  make install should have installed
/usr/local/bin/php and it would not have built a libphp4.so.  For that you
need to add --with-apxs

-Rasmus

On Thu, 25 Apr 2002, Larry Brown wrote:

 I don't mean to be rude but as I mentioned in my post After running
 ./configure make and make install  Please review my post for the
actual
 problem.

 Larry S. Brown MCSE
 Dimension Networks, Inc.
 Member ICCA
 (727) 723-8388

 -Original Message-
 From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 25, 2002 1:25 AM
 To: Larry Brown; [EMAIL PROTECTED]
 Subject: Re: [PHP] compiling on freebsd

 ./configure
 make
 make install



 On Wednesday 24 April 2002 22:08 pm, you wrote:
  I am trying to get php installed and working on a freebsd server and I'm
  used to using linux where it hasn't failed me before.  After running
  ./configure make and make install there is no libphp4.so anywhere on the
  server.  I ran just ./configure and make and then checked the current
  directories for the file with no positive results.
 
  Larry S. Brown MCSE
  Dimension Networks, Inc.
  Member ICCA
  (727) 723-8388

 --
 Common sense is not so common.

 Voltaire



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] compiling on freebsd

2002-04-24 Thread Rasmus Lerdorf

You really are not reading the instructions carefully enough.  Or perhaps
my writing is horrible.  It says:

 ===
   A popular choice is to build the Apache module version.  In order to
   build PHP as a dynamic module for Apache-1.3.x you have to first have
   Apache installed.  Assuming Apache is already installed, make sure
   the shared object module is enabled.  To check this, type: httpd -l
   You should see something like:

 Compiled-in modules:
   http_core.c
   mod_so.c

   You will most likely have a lot more modules than what is shown here.
   As long as mod_so.c shows up in the list, PHP should be happy.

   Now, type: ./configure --with-mysql --with-apxs

   If you get an error telling you that the apxs script could not be
   found, look for it on your system and if you find it, provide the full
   path to it as: --with-apxs=/path/to/apxs

   You might also want other flags on this configure line.  --with-mysql
   is just an example.
 ===

Now why would you assume that you could build the Apache module version
without the --with-apxs flag?

-Rasmus


On Thu, 25 Apr 2002, Larry Brown wrote:

 I ended up using a port which eventually worked.  I parsed the INSTALL file
 and it didn't mention anything about specifically adding libphp4.so.  It
 mentioned checking the flags available with ./configure -help which I ran.
 But I had no way of knowing what apxs means.  It mentioned -with-apxs in the
 INSTALL description but stated that if I got an error to physically locate
 apxs and tell configure where it is.  I did a search for apxs* with no
 results.  Anyway, I did get it going.  Thank you for the input.

 Larry S. Brown MCSE
 Dimension Networks, Inc.
 Member ICCA
 (727) 723-8388

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 25, 2002 12:40 AM
 To: Larry Brown
 Cc: PHP List
 Subject: RE: [PHP] compiling on freebsd

 Please read the INSTALL file.  The default is to make the command line php
 binary if you do not provide any ./configure flags, so simply typing
 ./configure  make  make install should have installed
 /usr/local/bin/php and it would not have built a libphp4.so.  For that you
 need to add --with-apxs

 -Rasmus

 On Thu, 25 Apr 2002, Larry Brown wrote:

  I don't mean to be rude but as I mentioned in my post After running
  ./configure make and make install  Please review my post for the
 actual
  problem.
 
  Larry S. Brown MCSE
  Dimension Networks, Inc.
  Member ICCA
  (727) 723-8388
 
  -Original Message-
  From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 25, 2002 1:25 AM
  To: Larry Brown; [EMAIL PROTECTED]
  Subject: Re: [PHP] compiling on freebsd
 
  ./configure
  make
  make install
 
 
 
  On Wednesday 24 April 2002 22:08 pm, you wrote:
   I am trying to get php installed and working on a freebsd server and I'm
   used to using linux where it hasn't failed me before.  After running
   ./configure make and make install there is no libphp4.so anywhere on the
   server.  I ran just ./configure and make and then checked the current
   directories for the file with no positive results.
  
   Larry S. Brown MCSE
   Dimension Networks, Inc.
   Member ICCA
   (727) 723-8388
 
  --
  Common sense is not so common.
 
  Voltaire
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] compiling on freebsd

2002-04-24 Thread Eugene Lee

On Thu, Apr 25, 2002 at 01:50:17AM -0400, Larry Brown wrote:
: 
: I ended up using a port which eventually worked.  I parsed the INSTALL file
: and it didn't mention anything about specifically adding libphp4.so.  It
: mentioned checking the flags available with ./configure -help which I ran.
: But I had no way of knowing what apxs means.  It mentioned -with-apxs in the
: INSTALL description but stated that if I got an error to physically locate
: apxs and tell configure where it is.  I did a search for apxs* with no
: results.  Anyway, I did get it going.  Thank you for the input.

Here's the relevants bits of INSTALL, with line numbers to boot.

% grep -C1 -n libphp4 php-4.2.0/INSTALL 
102-$ cd ../apache_1.3.x
103:$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
104: (The above line is correct!  Yes, we know libphp4.a does not exist at this
105-  stage.  It isn't supposed to.  It will be created.)
--
226-   ./configure --prefix=/path/apache \
227:   --activate-module=src/modules/php4/libphp4.a
228-   make
--
239-
240:  AddModule modules/php4/libphp4.a
241-
--
248-
249:   For Apache 1.2.x you will also have to look in the libphp4.module file,
250-   which was copied to the src directory. The EXTRA_LIBS line in the Apache
251-   Configuration file needs to be set to use the same libs as specified on
252:   the LIBS line in libphp4.module. You also need to make sure to add
253-   -L. to the beginning of the EXTRA_LIBS line.
--
259-   NOTE: You should not enclose the EXTRA_LIBS line in double-quotes, as it
260:   is in the libphp4.module file.
261-
262:   Also, look at the RULE_WANTHSREGEX setting in the libphp4.module file 
263-   and set the WANTHSREGEX directive accordingly in your Configuration file.
--
282-
283:  LoadModule php4_module libexec/libphp4.so
284-
285:   The actual path before the libphp4.so part might differ slightly.  This
286-   is likely fine.  If you are paranoid you can examine the output from the
287:   make install step to see where the libphp4.so file was actually put and
288-   place the full path to this file on this LoadModule line.


-- 
Eugene Lee
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php