I am facing some issues with apache webserver. The web pages are taking a long time to load especially the images.
The following is the configuration that i have kept in httpd.conf
I am running apache 1.3 and php 4.3.1. is there anything wrong specified in the configuration file.
At runtime apache is loading
Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b
I used Apache jmeter for testing purposes and load time is around
HTTP Request 74 samples 16373 ms(avg) 8312 ms(avg) 40498 ms (max) 45.8/hour (rate)
httpd.conf
========
RLimitMEM 408429909
RLimitCPU 240
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
HostnameLookups Off
UseCanonicalName On
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule expires_module libexec/mod_expires.so
LoadModule php4_module libexec/libphp4.so
LoadModule bwlimited_module libexec/mod_bwlimited.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
#LoadModule jk_module libexec/mod_jk.so
LoadModule gzip_module libexec/mod_gzip.so
LoadModule bandwidth_module libexec/mod_bandwidth.so
php configuration
============
engine = On
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
variables_order = "EGPCS"
register_globals = Off
register_argc_argv = On
post_max_size = 8M
upload_max_filesize = 2M
allow_url_fopen = Off
default_socket_timeout = 60
default_mimetype = "text/html"
doc_root =
user_dir =
extension_dir = /usr/lib/php4
enable_dl = On
file_uploads = On
upload_max_filesize = 2M
allow_url_fopen = Off
default_socket_timeout = 60
[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = localhost
sendmail_from = [EMAIL PROTECTED]
sendmail_path = /usr/sbin/sendmail -t -i
[Java]
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = -1
mysql.trace_mode = Off
[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
thanks,
kailash
{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 RLimitMEM 408429909\par
RLimitCPU 240\par
Alias /bandwidth/ /usr/local/bandmin/htdocs/\par
ServerType standalone\par
ServerRoot /usr/local/apache\par
PidFile /usr/local/apache/logs/httpd.pid\par
ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard\par
Timeout 300\par
KeepAlive Off\par
MaxKeepAliveRequests 100\par
KeepAliveTimeout 15\par
MinSpareServers 5\par
MaxSpareServers 10\par
StartServers 5\par
MaxClients 150\par
MaxRequestsPerChild 0\par
LoadModule rewrite_module libexec/mod_rewrite.so\par
LoadModule expires_module libexec/mod_expires.so\par
LoadModule php4_module libexec/libphp4.so\par
LoadModule bwlimited_module libexec/mod_bwlimited.so\par
LoadModule bytes_log_module libexec/mod_log_bytes.so\par
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so\par
LoadModule gzip_module libexec/mod_gzip.so\par
LoadModule bandwidth_module libexec/mod_bandwidth.so\par
ClearModuleList\par
AddModule mod_env.c\par
AddModule mod_log_config.c\par
AddModule mod_mime.c\par
AddModule mod_negotiation.c\par
AddModule mod_status.c\par
AddModule mod_include.c\par
AddModule mod_autoindex.c\par
AddModule mod_dir.c\par
AddModule mod_cgi.c\par
AddModule mod_asis.c\par
AddModule mod_imap.c\par
AddModule mod_actions.c\par
AddModule mod_userdir.c\par
AddModule mod_alias.c\par
AddModule mod_rewrite.c\par
AddModule mod_access.c\par
AddModule mod_auth.c\par
AddModule mod_expires.c\par
AddModule mod_so.c\par
AddModule mod_setenvif.c\par
<IfDefine SSL>\par
AddModule mod_ssl.c\par
</IfDefine>\par
AddModule mod_frontpage.c\par
AddModule mod_php4.c\par
AddModule mod_bwlimited.c\par
AddModule mod_log_bytes.c\par
AddModule mod_auth_passthrough.c\par
AddModule mod_gzip.c\par
AddModule mod_bandwidth.c\par
BandWidthDataDir "/var/cpanel/apachebw"\par
Port 80\par
<IfDefine SSL>\par
Listen 80\par
Listen 443\par
</IfDefine>\par
User nobody\par
Group nobody\par
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/apache/htdocs\par
<Directory />\par
Options All\par
AllowOverride All\par
</Directory>\par
<Directory "/usr/local/apache/htdocs">\par
Options Indexes FollowSymLinks MultiViews\par
AllowOverride None\par
Order allow,deny\par
Allow from all\par
</Directory>\par
<IfModule mod_userdir.c>\par
UserDir public_html\par
</IfModule>\par
<IfModule mod_dir.c>\par
DirectoryIndex index.php index.html index.htm index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.phtml default.htm default.html home.htm\par
</IfModule>\par
AccessFileName .htaccess\par
<Files ~ "^error_log$">\par
Order allow,deny\par
Deny from all\par
Satisfy All\par
</Files>\par
<Files ~ "^\\.ht">\par
Order allow,deny\par
Deny from all\par
Satisfy All\par
</Files>\par
UseCanonicalName On\par
<IfModule mod_mime.c>\par
TypesConfig /usr/local/apache/conf/mime.types\par
</IfModule>\par
DefaultType text/plain\par
<IfModule mod_mime_magic.c>\par
MIMEMagicFile /usr/local/apache/conf/magic\par
</IfModule>\par
HostnameLookups Off\par
ErrorLog /usr/local/apache/logs/error_log\par
LogLevel warn\par
LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%\{Referer\}i\\" \\"%\{User-Agent\}i\\"" combined\par
LogFormat "%h %l %u %t \\"%r\\" %>s %b" common\par
LogFormat "%\{Referer\}i -> %U" referer\par
LogFormat "%\{User-agent\}i" agent\par
CustomLog /usr/local/apache/logs/access_log common\par
ServerSignature On\par
<IfModule mod_alias.c>\par
#\par
# Note that if you include a trailing / on fakename then the server will\par
# require it to be present in the URL. So "/icons" isn't aliased in this\par
# example, only "/icons/". If the fakename is slash-terminated, then the\par
# realname must also be slash terminated, and if the fakename omits the\par
# trailing slash, the realname must also omit it.\par
#\par
Alias /icons/ "/usr/local/apache/icons/"\par
<Directory "/usr/local/apache/icons">\par
Options Indexes MultiViews\par
AllowOverride None\par
Order allow,deny\par
Allow from all\par
</Directory>\par
# This Alias will project the on-line documentation tree under /manual/\par
# even if you change the DocumentRoot. Comment it if you don't want to\par
# provide access to the on-line documentation.\par
#\par
Alias /manual/ "/usr/local/apache/htdocs/manual/"\par
<Directory "/usr/local/apache/htdocs/manual">\par
Options Indexes FollowSymlinks MultiViews\par
AllowOverride None\par
Order allow,deny\par
Allow from all\par
</Directory>\par
#\par
# ScriptAlias: This controls which directories contain server scripts.\par
# ScriptAliases are essentially the same as Aliases, except that\par
# documents in the realname directory are treated as applications and\par
# run by the server when requested rather than as documents sent to the client.\par
# The same rules about trailing "/" apply to ScriptAlias directives as to\par
# Alias.\par
#\par
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"\par
#\par
# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased\par
# CGI directory exists, if you have that configured.\par
#\par
<Directory "/usr/local/apache/cgi-bin">\par
AllowOverride None\par
Options None\par
Order allow,deny\par
Allow from all\par
</Directory>\par
</IfModule>\par
<IfModule mod_autoindex.c>\par
#\par
# FancyIndexing is whether you want fancy directory indexing or standard\par
#\par
IndexOptions FancyIndexing\par
#\par
# AddIcon* directives tell the server which icon to show for different\par
# files or filename extensions. These are only displayed for\par
# FancyIndexed directories.\par
#\par
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip\par
AddIconByType (TXT,/icons/text.gif) text/*\par
AddIconByType (IMG,/icons/image2.gif) image/*\par
AddIconByType (SND,/icons/sound2.gif) audio/*\par
AddIconByType (VID,/icons/movie.gif) video/*\par
AddIcon /icons/binary.gif .bin .exe\par
AddIcon /icons/binhex.gif .hqx\par
AddIcon /icons/tar.gif .tar\par
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv\par
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip\par
AddIcon /icons/a.gif .ps .ai .eps\par
AddIcon /icons/layout.gif .html .shtml .htm .pdf\par
AddIcon /icons/text.gif .txt\par
AddIcon /icons/c.gif .c\par
AddIcon /icons/p.gif .pl .py\par
AddIcon /icons/f.gif .for\par
AddIcon /icons/dvi.gif .dvi\par
AddIcon /icons/uuencoded.gif .uu\par
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl\par
AddIcon /icons/tex.gif .tex\par
AddIcon /icons/bomb.gif core\par
AddIcon /icons/back.gif ..\par
AddIcon /icons/hand.right.gif README\par
AddIcon /icons/folder.gif ^^DIRECTORY^^\par
AddIcon /icons/blank.gif ^^BLANKICON^^\par
#\par
# DefaultIcon is which icon to show for files which do not have an icon\par
# explicitly set.\par
#\par
DefaultIcon /icons/unknown.gif\par
#\par
# AddDescription allows you to place a short description after a file in\par
# server-generated indexes. These are only displayed for FancyIndexed\par
# directories.\par
# Format: AddDescription "description" filename\par
#\par
#AddDescription "GZIP compressed document" .gz\par
#AddDescription "tar archive" .tar\par
#AddDescription "GZIP compressed tar archive" .tgz\par
#\par
# ReadmeName is the name of the README file the server will look for by\par
# default, and append to directory listings.\par
#\par
# HeaderName is the name of a file which should be prepended to\par
# directory indexes.\par
#\par
ReadmeName README.html\par
HeaderName HEADER.html\par
#\par
#IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t\par
IndexIgnore *\par
</IfModule>\par
<IfModule mod_mime.c>\par
#\par
# AddLanguage allows you to specify the language of a document. You can\par
# then use content negotiation to give a browser a file in a language\par
# it can understand.\par
#\par
# Note 1: The suffix does not have to be the same as the language\par
# keyword --- those with documents in Polish (whose net-standard\par
# language code is pl) may wish to use "AddLanguage pl .po" to\par
# avoid the ambiguity with the common suffix for perl scripts.\par
#\par
# Note 2: The example entries below illustrate that in quite\par
# some cases the two character 'Language' abbreviation is not\par
# identical to the two character 'Country' code for its country,\par
# E.g. 'Danmark/dk' versus 'Danish/da'.\par
#\par
# Note 3: In the case of 'ltz' we violate the RFC by using a three char\par
# specifier. But there is 'work in progress' to fix this and get\par
# the reference data for rfc1766 cleaned up.\par
#\par
# Danish (da) - Dutch (nl) - English (en) - Estonian (ee)\par
# French (fr) - German (de) - Greek-Modern (el)\par
# Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)\par
# Portugese (pt) - Luxembourgeois* (ltz)\par
# Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)\par
# Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)\par
# Russian (ru)\par
#\par
AddLanguage da .dk\par
AddLanguage nl .nl\par
AddLanguage en .en\par
AddLanguage et .ee\par
AddLanguage fr .fr\par
AddLanguage de .de\par
AddLanguage el .el\par
AddLanguage he .he\par
AddCharset ISO-8859-8 .iso8859-8\par
AddLanguage it .it\par
AddLanguage ja .ja\par
AddCharset ISO-2022-JP .jis\par
AddLanguage cs .cz .cs\par
AddLanguage ru .ru\par
AddLanguage zh-TW .zh-tw\par
AddCharset Big5 .Big5 .big5\par
AddCharset WINDOWS-1251 .cp-1251\par
AddCharset CP866 .cp866\par
AddCharset ISO-8859-5 .iso-ru\par
AddCharset KOI8-R .koi8-r\par
AddCharset UCS-2 .ucs2\par
AddCharset UCS-4 .ucs4\par
AddCharset UTF-8 .utf8\par
# LanguagePriority allows you to give precedence to some languages\par
# in case of a tie during content negotiation.\par
#\par
# Just list the languages in decreasing order of preference. We have\par
# more or less alphabetized them here. You probably want to change this.\par
#\par
<IfModule mod_negotiation.c>\par
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw\par
</IfModule>\par
#\par
# AddType allows you to tweak mime.types without actually editing it, or to\par
# make certain files to be certain types.\par
#\par
AddType application/x-tar .tgz\par
#\par
# AddEncoding allows you to have certain browsers uncompress\par
# information on the fly. Note: Not all browsers support this.\par
# Despite the name similarity, the following Add* directives have nothing\par
# to do with the FancyIndexing customization directives above.\par
#\par
AddEncoding x-compress .Z\par
AddEncoding x-gzip .gz .tgz\par
#\par
# If the AddEncoding directives above are commented-out, then you\par
# probably should define those extensions to indicate media types:\par
#\par
#AddType application/x-compress .Z\par
#AddType application/x-gzip .gz .tgz\par
#\par
# AddHandler allows you to map certain file extensions to "handlers",\par
# actions unrelated to filetype. These can be either built into the server\par
# or added with the Action command (see below)\par
# Despite the name similarity, the following Add* directives have nothing\par
# to do with the FancyIndexing customization directives above.\par
#\par
AddEncoding x-compress .Z\par
AddEncoding x-gzip .gz .tgz\par
#\par
# If the AddEncoding directives above are commented-out, then you\par
# probably should define those extensions to indicate media types:\par
#\par
#AddType application/x-compress .Z\par
#AddType application/x-gzip .gz .tgz\par
#\par
# AddHandler allows you to map certain file extensions to "handlers",\par
# actions unrelated to filetype. These can be either built into the server\par
# or added with the Action command (see below)\par
#\par
# If you want to use server side includes, or CGI outside\par
# ScriptAliased directories, uncomment the following lines.\par
#\par
# To use CGI scripts:\par
#\par
AddHandler application/x-httpd-php .php .php4 .php3\par
AddType application/x-httpd-php .php\par
AddType application/x-httpd-php .php4\par
AddType application/x-httpd-php .php3\par
AddType application/x-httpd-php-source .phps\par
AddType application/x-httpd-php .phtml\par
AddHandler cgi-script .cgi .pl\par
AddType text/html .shtml\par
AddType application/x-tar .tgz\par
AddType text/vnd.wap.wml .wml\par
AddType image/vnd.wap.wbmp .wbmp\par
AddType text/vnd.wap.wmlscript .wmls\par
AddType application/vnd.wap.wmlc .wmlc\par
AddType application/vnd.wap.wmlscriptc .wmlsc\par
#\par
# To use server-parsed HTML files\par
#\par
#AddType text/html .shtml\par
AddHandler server-parsed .shtml\par
#\par
# Uncomment the following line to enable Apache's send-asis HTTP file\par
# feature\par
#AddHandler send-as-is asis\par
#\par
# If you wish to use server-parsed imagemap files, use\par
#\par
#AddHandler imap-file map\par
#\par
# To enable type maps, you might want to use\par
#\par
#AddHandler type-map var\par
</IfModule>\par
<IfModule mod_setenvif.c>\par
#\par
# The following directives modify normal HTTP response behavior.\par
# The first directive disables keepalive for Netscape 2.x and browsers that\par
# spoof it. There are known problems with these browser implementations.\par
# The second directive is for Microsoft Internet Explorer 4.0b2\par
# which has a broken HTTP/1.1 implementation and does not properly\par
# support keepalive when it is used on 301 or 302 (redirect) responses.\par
#\par
BrowserMatch "Mozilla/2" nokeepalive\par
BrowserMatch "MSIE 4\\.0b2;" nokeepalive downgrade-1.0 force-response-1.0\par
#\par
# The following directive disables HTTP/1.1 responses to browsers which\par
# are in violation of the HTTP/1.0 spec by not being able to grok a\par
# basic 1.1 response.\par
#\par
BrowserMatch "RealPlayer 4\\.0" force-response-1.0\par
BrowserMatch "Java/1\\.0" force-response-1.0\par
BrowserMatch "JDK/1\\.0" force-response-1.0\par
</IfModule>\par
<IfDefine SSL>\par
AddType application/x-x509-ca-cert .crt\par
AddType application/x-pkcs7-crl .crl\par
</IfDefine>\par
<IfModule mod_ssl.c>\par
SSLPassPhraseDialog builtin\par
SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache\par
SSLSessionCacheTimeout 300\par
SSLMutex file:/usr/local/apache/logs/ssl_mutex\par
SSLRandomSeed startup builtin\par
SSLRandomSeed connect builtin\par
SSLLog /usr/local/apache/logs/ssl_engine_log\par
SSLLogLevel info\par
</IfModule>\par
<IfDefine SSL>\par
</IfDefine>\par
\par
}
{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 [PHP]\par
engine = On\par
short_open_tag = On\par
asp_tags = Off\par
precision = 14\par
y2k_compliance = On\par
output_buffering = Off\par
zlib.output_compression = Off\par
implicit_flush = Off\par
unserialize_callback_func=\par
serialize_precision = 100\par
allow_call_time_pass_reference = On\par
safe_mode = Off\par
safe_mode_gid = Off\par
safe_mode_include_dir =\par
safe_mode_exec_dir =\par
safe_mode_allowed_env_vars = PHP_\par
safe_mode_protected_env_vars = LD_LIBRARY_PATH\par
disable_functions =\par
disable_classes =\par
expose_php = On\par
max_execution_time = 30 ; Maximum execution time of each script, in seconds\par
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data\par
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)\par
error_reporting = E_ALL & ~E_NOTICE\par
display_errors = On\par
display_startup_errors = Off\par
log_errors = Off\par
log_errors_max_len = 1024\par
ignore_repeated_errors = Off\par
ignore_repeated_source = Off\par
report_memleaks = On\par
track_errors = Off\par
variables_order = "EGPCS"\par
register_globals = Off\par
register_argc_argv = On\par
post_max_size = 8M\par
gpc_order = "GPC"\par
magic_quotes_gpc = On\par
magic_quotes_runtime = Off\par
magic_quotes_sybase = Off\par
auto_prepend_file =\par
auto_append_file =\par
pgsql.max_persistent = -1\par
pgsql.max_links = -1\par
pgsql.ignore_notice = 0\par
pgsql.log_notice = 0\par
[Sybase]\par
sybase.allow_persistent = On\par
sybase.max_persistent = -1\par
sybase.max_links = -1\par
sybase.min_error_severity = 10\par
sybase.min_message_severity = 10\par
sybase.compatability_mode = Off\par
[Sybase-CT]\par
sybct.allow_persistent = On\par
sybct.max_persistent = -1\par
sybct.max_links = -1\par
sybct.min_server_severity = 10\par
sybct.min_client_severity = 10\par
[dbx]\par
dbx.colnames_case = "unchanged"\par
[bcmath]\par
bcmath.scale = 0\par
[browscap]\par
[Informix]\par
ifx.default_host =\par
ifx.default_user =\par
ifx.default_password =\par
ifx.allow_persistent = On\par
ifx.max_persistent = -1\par
ifx.max_links = -1\par
ifx.textasvarchar = 0\par
ifx.byteasvarchar = 0\par
ifx.charasvarchar = 0\par
ifx.blobinfile = 0\par
ifx.nullformat = 0\par
[Session]\par
session.save_handler = files\par
session.save_path = /tmp\par
session.use_cookies = 1\par
session.name = PHPSESSID\par
session.auto_start = 0\par
session.cookie_lifetime = 0\par
session.cookie_path = /\par
session.cookie_domain =\par
session.cache_expire = 180\par
session.use_trans_sid = 0\par
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="\par
[MSSQL]\par
mssql.allow_persistent = On\par
mssql.max_persistent = -1\par
mssql.max_links = -1\par
mssql.min_error_severity = 10\par
mssql.min_message_severity = 10\par
mssql.compatability_mode = Off\par
mssql.secure_connection = Off\par
[Assertion]\par
[Ingres II]\par
ingres.allow_persistent = On\par
ingres.max_persistent = -1\par
ingres.max_links = -1\par
ingres.default_database =\par
ingres.default_user =\par
ingres.default_password =\par
[Verisign Payflow Pro]\par
pfpro.defaulthost = "test-payflow.verisign.com"\par
pfpro.defaultport = 443\par
pfpro.defaulttimeout = 30\par
[Sockets]\par
sockets.use_system_read = On\par
[com]\par
[Printer]\par
[mbstring]\par
[FrontBase]\par
[Crack]\par
[exif]\par
}
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
