php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15 Apache 1.2.4 .htaccess directives
Submitted: 1998-01-27 15:02 UTC Modified: 1998-01-30 02:45 UTC
From: walshj at ns dot net Assigned:
Status: Closed Package: Other
PHP Version: 3.0b3 OS: Solaris 2.5.1
Private report: No CVE-ID:
 [1998-01-27 15:02 UTC] walshj at ns dot net
Adding any PHP3 Module directive results in an Error 500. Note: Should safe mode have the capability of being overridden by .htaccess or should that only be an option in php.ini or srm.conf?  Some ISPs may allow dot files to be uploaded.

Example .htaccess file:
     IndexIgnore .htaccess */.??* *~ *# */HEADER* */README*

     <Limit GET POST>
     order deny,allow
     deny from all
     allow from all
     </Limit>
     <Limit PUT DELETE>
     order deny,allow
     deny from all
     </Limit>
     AuthName somedomain.com
     AuthUserFile /home/goo/blah/_vti_pvt/service.pwd
     AuthGroupFile /home/goo/blah/_vti_pvt/service.grp


     # -PHP3-
     php3_safe_mode 0
     php3_include_path /home/goo/blah/media/include

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-01-30 02:45 UTC] rasmus
[Jim]
To see a list of which directives may only be included in the *.conf files, run 'grep RSRC_CONF mod_php3.c'.

If you are having problems with particular directives in your configuration, please open a new bug with 
more specific information about the error being generated (such as the relevant log entries from your 
server's error log). "Error 500" just means there was a server error, and doesn't give any indication of 
what it was.

[Rasmus]
The argument to php3_safe_mode should be either 'on' or 'off' and it shouldn't core dump.  I just tested
with Apache 1.2.6-dev on a Solaris 2.5.1 machine and it works perfectly.  The only reason you might be
seeing a core is if you don't match up PHP's regex library with Apache's.  I suggest using the bundled
library for both.  PHP defaults to the bundled library, so you should edit your Apache 1.2.x Configuration
file and set WANTHSREGEX=yes and then recompile.
 [2013-11-03 07:41 UTC] nicolas@php.net
Automatic comment from SVN on behalf of nicolas
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=332048
Log: fix github issue #15
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 21:01:56 2014 UTC