Summary: | Output out of order from SSI include virtual | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Leandro Navarro <leandro> |
Component: | mod_include | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | RESOLVED LATER | ||
Severity: | major | CC: | leandro, sf |
Priority: | P2 | Keywords: | MassUpdate |
Version: | 2.2.9 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Leandro Navarro
2008-12-30 03:36:52 UTC
It works correctly with mpm-prefork and mod_php. In what way do you call the php interpreter? Do you have any special output filters configured? What is the output of apache2ctl -M? (In reply to comment #1) > It works correctly with mpm-prefork and mod_php. > > In what way do you call the php interpreter? Fast-cgi, with suexec. AddType application/x-httpd-php .php3 .phtml .php .phps SuexecUserGroup user group Action php-fcgi /fcgi-bin/php-fcgi-wrapper Alias /fcgi-bin/ /home/httpd/fcgi-bin.d/php5-user/ /home/httpd/fcgi-bin.d/php5-user$ more php-fcgi-wrapper #!/bin/sh export PHPRC=/etc/php5/cgi exec /usr/bin/php5-cgi > Do you have any special output filters configured? Only includes: mods-enabled/mime.conf:AddOutputFilter INCLUDES .shtml > What is the output of apache2ctl -M? /usr/sbin/apache2ctl -M [Tue Dec 30 19:38:35 2008] [warn] worker http://xxx.yyyyyyy.org already used by another worker [Tue Dec 30 19:38:36 2008] [warn] worker http://www.xxxxxxxx.org/~zzzz already used by another worker Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_worker_module (static) http_module (static) so_module (static) actions_module (shared) alias_module (shared) auth_basic_module (shared) auth_pam_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgid_module (shared) dav_module (shared) dir_module (shared) env_module (shared) fcgid_module (shared) headers_module (shared) include_module (shared) mime_module (shared) security2_module (shared) negotiation_module (shared) proxy_module (shared) proxy_http_module (shared) python_module (shared) rewrite_module (shared) setenvif_module (shared) ssl_module (shared) status_module (shared) suexec_module (shared) unique_id_module (shared) userdir_module (shared) Syntax OK Looking at the code for mod_include, I think that the problem seems to be with ap_sub_req_lookup_uri(), that the output is not flushed before this call is invoked and therefore the output is garbled. I found this mail related: http://mail-archives.apache.org/mod_mbox/httpd-dev/200009.mbox/raw/%3C20000913192658.L23617@lyra.org%3E/ If that is the source of the problem, how can I modify mod_include to flush the output before a sub_req is invoked? The code is not that readable to see clearly how to modify. Any suggestion? Best regards, Leandro.(In reply to comment #2) Please help us to refine our list of open and current defects; this is a mass update of old and inactive Bugzilla reports which reflect user error, already resolved defects, and still-existing defects in httpd. As repeatedly announced, the Apache HTTP Server Project has discontinued all development and patch review of the 2.2.x series of releases. The final release 2.2.34 was published in July 2017, and no further evaluation of bug reports or security risks will be considered or published for 2.2.x releases. All reports older than 2.4.x have been updated to status RESOLVED/LATER; no further action is expected unless the report still applies to a current version of httpd. If your report represented a question or confusion about how to use an httpd feature, an unexpected server behavior, problems building or installing httpd, or working with an external component (a third party module, browser etc.) we ask you to start by bringing your question to the User Support and Discussion mailing list, see [https://httpd.apache.org/lists.html#http-users] for details. Include a link to this Bugzilla report for completeness with your question. If your report was clearly a defect in httpd or a feature request, we ask that you retest using a modern httpd release (2.4.33 or later) released in the past year. If it can be reproduced, please reopen this bug and change the Version field above to the httpd version you have reconfirmed with. Your help in identifying defects or enhancements still applicable to the current httpd server software release is greatly appreciated. |