10.6 Build Problems 
10 FAQ : Foire Aux Questions 
 Manuel PHP 
 . 
      I got the latest version of PHP using the anonymous CVS service, 
      but there's no configure script!
      . 
      I'm having problems configuring PHP to work with Apache. 
      It says it can't find  . 
      While configuring PHP ( . 
      When I try to start Apache, I get the the following
      message:
      . 
      When I run configure, it says that it can't find the 
      include files or library for GD, gdbm, or some other package!
      . 
      When it is compiling the file  . 
      When I run  . 
      When linking PHP, it complains about a number of undefined references.
      ->
      I can't figure out how to build PHP with Apache 1.3.
      . 
      I have followed all the steps to install the Apache module version on 
      UNIX, and my PHP scripts show up in my browser or I am being asked to 
      save the file.
      . 
      It says to use:  . 
      When I try to build Apache with PHP as a static module using 
       . 
      When I try to build PHP using  . 
      During  . 
      When compiling PHP with MySQL, configure runs fine but during
       . 
      I want to upgrade my PHP. Where can I find the  . 
      When building PHP with the GD library it either gives strange compile errors
      or segfaults on execution.
      . 
      When compiling PHP I seemingly get random errors, like it hangs.
      I'm using Solaris if that matters.
     
 
  | 
 
  10.6.9 
      I can't figure out how to build PHP with Apache 1.3.
      
 
      This is actually quite easy.  Follow these steps carefully:
       
 
- 
         Grab the latest Apache 1.3 distribution from 
          http://www.apache.org/dist/httpd/ .
        
 
- 
         Ungzip and untar it somewhere, for example 
          
/usr/local/src/apache-1.3
 .
        
 
- 
         Compile PHP by first running 
          
./configure --with-apache=/<path>/apache-1.3
 
         (substitute <path> for the actual path to your apache-1.3 directory.
        
 
- 
         Type  
make
  followed by  
make install
 
         to build PHP and copy the necessary files to the Apache distribution tree.
        
 
- 
         Change directories into to your  
/<path>/apache-1.3/src
 
         directory and edit the  
Configuration
  file. 
         Add to the file: 
          
AddModule modules/php4/libphp4.a
 .
        
 
- 
         Type:  
./configure
  followed by  
make
 .
        
 
- 
         You should now have a PHP-enabled httpd binary!
        
 
 
Note:
  You can also use the new Apache 
       
./configure
  script. See the instructions in 
      the  
README.configure
  file which is part of 
      your Apache distribution.  Also have a look at the  
INSTALL
  
      file in the PHP distribution.
      
 |