Problems compiling Perl & PHP into Apache

Problems compiling Perl & PHP into Apache

Post by Matt Starne » Tue, 21 Sep 1999 04:00:00



Aargh,

This is really frustrating.  Okay, I can get PHP to compile into Apache
no problem.  I can compile Perl into Apache no problem.  But for the
life of me, I can't get both of them to compile in.

Example:
If I compile PHP into Apache and do a ./httpd -l it will show mod_php3.
No if I compile Perl into the same Apache source structure and do
./httpd -l, it will show mod_perl, but not mod_php.

It does the same thing if I compile Peril first and then PHP except that

Perl won't show up this time.  I am using the vanilla Installation
instructions included with the PHP and Perl distributions.  If anybody
can help me I would be greatly appreciative.  And I can stop beating my
head against my desk.

Matt Starnes

 
 
 

1. How to compile Apache & Modules PHP PERL SSL Solution

Well,
    I have read I don't know how many countless posts on people trying to
accomplish compiling modperl modssl and modphp.  And after reading bits here
and there, I have wrote just a small routine for those of you who are having
trouble.  This was compiled on a Sun Solaris 2.8 box with Sun Forte's
compiler, but I imagine it should work on just about all platforms.

    If you want to download the exact specific versions of the Modules and

http://ThinkShells.com/howtocompileapache.php

--Compile Order--

tar xf apache_1.3.22.tar
tar xf mod_ssl-2.8.5-1.3.22.tar
tar xf modperl_20011121051928.tar
tar xf openssl-0.9.6b.tar
tar xf php-4.0.6.tar

cd apache_1.3.22
./configure --prefix=/usr/local/apache

cd ../openssl-0.9.6b # (Please note 64bit support did not work when trying
to compile as a static module in Apache, so compile this in 32bit)
./config
make
make install

cd ../mod_ssl-2.8.5-1.3.22
./configure --with-apache=../apache_1.3.22 --with-ssl=../openssl-0.9.6b

cd ../php-4.0.6
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22 --e
nable-track-vars
make
make install

cd ../modperl
perl Makefile.PL USE_APACI=1 EVERYTHING=1 SSL_BASE=/usr/local/ssl
APACI_ARGS=--enable-module=rewrite,--enable-module=ssl,--activate-module=src
/modules/php4/libphp4.a
make
make install

# On one server this worked the other I received an error when trying to
compile the modphp.  If you get this error do the following
* cd ../php-4.0.6
* make install

# then proceed back to modperl
cd ../modperl
make
make install

cd ../apache_1.3.22
make
make install

Verify all modules compiled in correctly by issuing the following command:
/usr/local/apache/bin/httpd -l

The results should look something like this:

/usr/local/apache/bin/httpd -l

Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_access.c
  mod_auth.c
  mod_setenvif.c
  mod_ssl.c
  mod_perl.c
  mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

You can see the last three modules are ssl, perl, and php!  Congradulations,
you now have SSL, Perl, and PHP modules compiled in Apache ready for a full
E-Commerce website!

--
ThinkShells.com
Internet Service with a personal touch
http://ThinkShells.com

2. The kernel won't compile no matter what I do!!!!

3. Apache, PHP, Perl, compile problems

4. Looking for HTML Viewer

5. Apache compile & Php & mysql

6. Programmatically refer to the end of line character in Unix

7. apache/php/perl compiling ?

8. Has anybody tried to compile GIMP on a PPC?

9. PERL && mod_perl && FreeBSD && Apache

10. compile Apache & PHP - who knows?

11. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

12. Solaris - PHP- Apache- Oracle : Problem getting PHP installed

13. Problems compiling apache with both mod_perl and php!