NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Compiling Built in Modules with Apache2
Topic: Web   Posted:2005-07-29
Printer Friendly: Print

spacerspacer
If you know exactly what modules you plan to use with a website, and you are sure you don't need the flexibility of adding in those modules later, you can compile Apache with the modules built in. Here is the configuration statement for a minimal Apache compile with server side includes. This was for an Apache 2 server (2.0.54-2.0.58):

./configure --prefix=/path/to/apache2 --disable-actions --disable-asis --disable-charset-lite --disable-env --disable-imap --disable-status --disable-cgi --disable-cgid --disable-userdir --enable-include

Here is a slightly more feature rich version that includes ssl, and could be used to add PHP support to:

./configure --prefix=/path/to/apache2super --disable-actions --disable-asis --disable-charset-lite --disable-env --disable-imap --disable-include --disable-status --disable-cgi --disable-cgid --disable-userdir --enable-ssl --enable-module=so

To add PHP support as a module to the above, you could use:

./configure --with-apxs2=/path/to/apache/bin/apxs

If you need mysql support:

./configure --with-apxs2=/path/to/apache/bin/apxs --with-mysql

If you need mysql and zlib support (works with Joomla)::

./configure --with-apxs2=/path/to/apache/bin/apxs --with-mysql --with-zlib
This is done in the root of the php source.

For more information on configuring Apache2, see this doc:
Configure the source tree




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS