Author |
|
michaeln
Joined: 25 Jan 2008 Posts: 5
|
Posted: Fri 25 Jan '08 18:21 Post subject: Minimal Apache files |
|
|
What is the absolute minimum required to get apache to run (as far as apache binaries go)? I want to create an installer to combine subversion and apache, and create a little windows app to manage everything. For apache, I'll need logging and the ability to have integrated security.
I've looked around and can't really find an answer to my question.
Thanks in advance
Cheers |
|
Back to top |
|
Xing Moderator
Joined: 26 Oct 2005 Posts: 49
|
|
Back to top |
|
michaeln
Joined: 25 Jan 2008 Posts: 5
|
Posted: Fri 25 Jan '08 22:49 Post subject: |
|
|
Thanks for your reply.
What about the minimal binaries, modules, etc..? I'm doing some research and testing to try to figure it out, but if someone else has already done it (or know of a micro-distribution for windows) why duplicate the effort.
Cheers. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 25 Jan '08 22:51 Post subject: Re: Minimal Apache files |
|
|
michaeln wrote: | What is the absolute minimum required to get apache to run (as far as apache binaries go) |
/bin (all)
/logs
/conf
/modules (all)
I think |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 25 Jan '08 23:58 Post subject: Re: Minimal Apache files |
|
|
glsmith wrote: |
/bin (all)
/logs
/conf
/modules (all)
I think |
In the bin folder the iconv can also be deleted if you don't need the files for any third party module. |
|
Back to top |
|
michaeln
Joined: 25 Jan 2008 Posts: 5
|
Posted: Sat 26 Jan '08 4:42 Post subject: |
|
|
Thanks for your replies
I'll give it a shot and post back with the results. |
|
Back to top |
|
PipoDeClown
Joined: 20 Dec 2005 Posts: 77
|
Posted: Sat 26 Jan '08 21:35 Post subject: mini |
|
|
my minimal apache config with mod_fcgid/php-cgi,
unpacked 7,98 MB, packed 2,30 MB
dir:
Code: | C:\www\bin
C:\www\etc
C:\www\lib
C:\www\logs
C:\www\sites
C:\www\tmp
C:\www\var
C:\www\readme.txt
C:\www\startwww.cmd
C:\www\stopwww.cmd
C:\www\bin\ab.exe
C:\www\bin\debugclient.exe
C:\www\bin\httpd.exe
C:\www\bin\libapr-1.dll
C:\www\bin\libapriconv-1.dll
C:\www\bin\libaprutil-1.dll
C:\www\bin\libhttpd.dll
C:\www\bin\php5ts.dll
C:\www\bin\php-cgi.exe
C:\www\bin\sqlite3.dll
C:\www\etc\httpd.conf
C:\www\etc\php-cgi.ini
C:\www\lib\ext
C:\www\lib\modules
C:\www\lib\ext\php_mbstring.dll
C:\www\lib\ext\php_pdo.dll
C:\www\lib\ext\php_pdo_sqlite_external.dll
C:\www\lib\ext\php_xdebug.dll
C:\www\lib\modules\mod_authz_host.so
C:\www\lib\modules\mod_dir.so
C:\www\lib\modules\mod_fcgid.so
C:\www\sites\_
C:\www\sites\_\counter
C:\www\sites\_\index.html
C:\www\sites\_\info.php
C:\www\sites\_\style.css
C:\www\sites\_\counter\index.php
C:\www\var\data
C:\www\var\session
C:\www\var\upload |
httpd.conf:
Code: | # minimal httpd.conf
serverroot "c:\www\etc"
maxrequestsperchild 10000
threadsperchild 15
serversignature on
loadmodule authz_host_module c:\www\lib\modules\mod_authz_host.so
loadmodule dir_module c:\www\lib\modules\mod_dir.so
loadmodule fcgid_module c:\www\lib\modules\mod_fcgid.so
#loadmodule mime_module c:\www\lib\modules\mod_mime.so
pidfile "c:\www\logs\httpd.pid"
errorlog "c:\www\logs\httpd-error.log"
loglevel debug
#transferlog "c:\www\logs\default-access.log"
defaulttype none
<ifmodule mime_module>
typesconfig c:\www\etc\mime.types
addhandler fcgid-script .php
</ifmodule>
defaultinitenv systemdrive "c:"
defaultinitenv systemroot "c:\windows"
defaultinitenv path "c:\windows\system32;c:\windows;c:\www\bin"
defaultinitenv tmp "c:\www\tmp"
defaultinitenv temp "c:\www\tmp"
defaultinitenv phprc "c:\www\etc"
#defaultinitenv magick_home "c:\www\opt\imagemagick"
maxprocesscount 20
maxrequestsperprocess 400
php_fix_pathinfo_enable 0
listen 80
serveradmin admin@localhost
<directory />
options followsymlinks
allowoverride none
order deny,allow
deny from all
</directory>
<filesmatch "^\.ht|\.~">
order allow,deny
deny from all
satisfy all
</filesmatch>
documentroot "c:\www\sites\_"
<directory "c:\www\sites\_">
options execcgi indexes followsymlinks
allowoverride none
order allow,deny
allow from all
directoryindex index.html index.php
<filesmatch \.php$>
#addhandler fcgid-script .php
sethandler fcgid-script
fcgiwrapper "c:\www\bin\php-cgi.exe -c c:\www\etc\php-cgi.ini" .php
</filesmatch>
</directory> |
|
|
Back to top |
|
michaeln
Joined: 25 Jan 2008 Posts: 5
|
Posted: Sat 26 Jan '08 21:56 Post subject: |
|
|
That's pretty tight!
I'll give it a shot for win32.
Cheers. |
|
Back to top |
|
michaeln
Joined: 25 Jan 2008 Posts: 5
|
Posted: Sat 26 Jan '08 21:57 Post subject: |
|
|
hehe. That is win32 |
|
Back to top |
|