How to compile Apache & Modules PHP PERL SSL Solution

How to compile Apache & Modules PHP PERL SSL Solution

Post by Anthony Coga » Fri, 23 Nov 2001 07:24:30



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

 
 
 

How to compile Apache & Modules PHP PERL SSL Solution

Post by Tweetie Poo » Fri, 23 Nov 2001 20:12:50



comp.infosystems.www.servers.unix on Wed 21 Nov 2001 10:24:30p with

Quote:> 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.

Why not try http://www.apachetoolbox.com

This neat script (or script + baggage) builds apache and most bolt on bits in
a simple to use menu.  Just tag the bits you want and off it goes.

When some package needs extra info it allows you to provide it usually by
editing a good guess config file.

Provisos

There may be some fun to be had on Sun boxes.  It does work but you may need
to fiddle.  I think it is GD that has problems.  Else use gnu ld and then you
have fun with apache itself.

 
 
 

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

Hi,

        I've been assigned the task of building an Apache server with
support for Sybase, PHP4, OpenSSL 0.9.6/mod_ssl ?, and apache 1.3.14.

I followed Israel Denis Jr/Eugene Otto's "The Soothingly Seamless
Setup of Apache, SSL, MySQL, and PHP" at DevShed, but compilation of
apache fails if I add PHP.  The same procedure w/out PHP works OK
(either port 80 or port 443.) As a non-developper, I'm totally in the
dark.

[/home/samba/temp/Apache/apache_1.3.14]# SSL_BASE=../openssl-0.9.6
/configure --enable-module=ssl
--activate-module=src/modules/php4/libphp4.a --enable-module=php4
--prefix=/usr/local/apache

Configuring for Apache, Version 1.3.14
(snip)
-L/home/samba/temp/Apache/openssl-0.9.6  -o helpers/dummy
helpers/dummy.c   -rdynamic -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lresolv -lm -ldl -lcrypt
-lnsl  -lresolv   -lm -lcrypt  -lssl -lcrypto
/usr/bin/ld: cannot find -lmodphp4
collect2: ld returned 1 exit status
make: *** [dummy] Error 1

Any idea?

Thx
FF.

2. Solaris vs. NTAS

3. Problems compiling Perl & PHP into Apache

4. Responding to intrustion attempts

5. Apache + mod_{php,perl,ssl} + MM: shared memory sizing

6. Slow TCP/IP sockets

7. Apache + mod-ssl + PHP or Perl script

8. install dependency lib

9. Apache Port - and SSL, PHP, Perl, FP

10. php, MySQL, SSL, & Perl

11. Apache compile & Php & mysql

12. apache/php/perl compiling ?

13. Apache, PHP, Perl, compile problems