|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33867 auto_prepend_file doesn't work in httpd.conf
Submitted: 2005-07-26 17:16 UTC Modified: 2005-08-03 01:00 UTC
Avg. Score:4.7 ± 0.5
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: t4 at wks dot ch Assigned:
Status: No Feedback Package: *Directory/Filesystem functions
PHP Version: 4.3.11 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: t4 at wks dot ch
New email:
PHP Version: OS:


 [2005-07-26 17:16 UTC] t4 at wks dot ch
Auto_prepend_file in .htaccess works:

httpd.conf: AccessFileName .htaccess
.htaccess:  Php_value auto_prepend_file /absolute_path/prepend_file.php

Auto_prepend_file in httpd.conf doesn't work:

httpd.conf: <Directory /documentroot/path/>
httpd.conf:   Php_value auto_prepend_file /absolute_path/prepend_file.php
httpd.conf: </Directory>

Expected result:
The expected result is that /absolute_path/prepend_file.php gets executed.

Actual result:
It does not get executed and there's nothing visibile in the errorlog.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-26 17:40 UTC]
Please try using this CVS snapshot:
For Windows:

Can't reproduce it with 4.4.0.
 [2005-08-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-09-04 15:44 UTC] csaba at alum dot mit dot edu
I have tested this on my system with the 2005 Aug 31 version of PHP 5.0.1 / Apache 2.0.53 / Win XP Pro and cannot reproduce the problem.  I can both disable what is in the php.ini with
PHP_value auto_prepend_file none

or override it with
PHP_value auto_prepend_file c:/phplib/prepend_file.php
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 17 07:03:33 2021 UTC