Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-21-2007, 09:54 AM   #1
Registered: Sep 2004
Location: USA
Distribution: red hat, fedora & centos
Posts: 202

Rep: Reputation: 30
Apache & PHP configure options

I have installed both apache2 and php5 using the source code. everything works great.
my question how would I know that the options I selected to configure both apache & php with are the most common/optimum/best setup - I have read the docs on and still I think you need to be a software/programmer to know or understand if you need to include an options/switch in your ./configure line.

My PHP configuration:

'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql' '--prefix=/usr/local/apache2/php' '--with-jpeg' '--with-gd' '--with-zlib' '--with-gettext' '--with-gdbm'

My apache configuration:

core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_deflate mod_log_config mod_env mod_mime_magic mod_usertrack mod_setenvif mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_cgi mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_so mod_php5

Thanks in advance
Old 02-22-2007, 09:52 AM   #2
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Originally Posted by m2azer
my question how would I know that the options I selected to configure both apache & php with are the most common/optimum/best setup
The beauty of manual compilation is that you can customize the configure switches you need and leave out the ones you don't need. So selecting the options that defines/suits your environment is the best/optimum setup for you. The other reason to manually strip down unnecessary dependencies is to eliminate an attack vector if say package X gets compromised. Since you didn't compile php or apache against package X, you are relatively safe.

I don't think you need to be software programmer to decipher the configure options. Some options may be arguably harder to understand but the official documentation or a google search will give you good hints.

Apache documentation, especially, is good at documenting what each module does. Alternatively, you can compile all apache modules and then only use the one you need in httpd.conf.

If you want to check out php options, good place to look is the slackbuild script for php in Slackware. Check the url below.

That should give you a nice set of configure switches.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP & Apache - php files not processing aolong Linux - General 1 12-17-2006 03:09 AM
My Apache and PHP configure options - Did I miss anything? Basel Linux - Software 2 05-19-2006 04:36 AM
configure php with apache varunbihani Linux - Software 1 01-13-2005 05:43 AM
Apache + Php . I can not configure it . Help me :( kernelvn Linux - Software 3 09-17-2004 10:02 AM
Configure Apache and PHP kaustav Linux - Newbie 1 05-26-2003 06:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration