php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1884 .htaccess error / pcfg_openfile problem
Submitted: 1999-07-26 15:30 UTC Modified: 2002-06-16 08:35 UTC
From: jbaach at mediathek dot de Assigned:
Status: Not a bug Package: Other
PHP Version: 3.0.11 OS: Linux (SuSe 5.2)
Private report: No CVE-ID: None
 [1999-07-26 15:30 UTC] jbaach at mediathek dot de
I sent this message yesterday to the mailinglist (US and German):


I  am/was trying to upgrade my LAMP Server on my SuSE 5.2 Linux Box from
Apache 1.2.6, PHP 3.0,.... to

Apache 1.3.6 with
    openssl-0.9.3a,
    mod_ssl-2.3.3-1.3.6,
    mod_auth_mysql-2.20,
    PHP 3.0.11 with
        mysql-3.22.23b,
        pdflib-0.6,
        mhash-0.5.0,
        libmcrypt-2.0,
        gd1.5

Everything compiles fine, and even the Servers runs. The problem is that
whenever I configure some <Directory ...>  AllowOverride all
</Directory>, these can only be accessed when there is a .htaccess file
located in the directory. If there is not one, I get an "403 Error", and
I get a line telling me something like

......[crit] .. /home..../.htaccess pcfg_openfile: unable tho check
htaccessfile, ensure it is readable

This happens whenever there is _no_ .htaccess file in the directory.
This is also true for directories which do not contain any index files,
but are allowed for indexing (Options Indexes).

I tried many configurations during the last hours, and this problem even
occours with the httpd.conf file that is installed by the 'make install'
after compiling the apache.

I found (in the apache bug base) that there was some similar mistake
with older versions of apache (1.3.2), but the patches that were
mentioned there do not fit to the apache 1.3.6 code (which does not
surprise me too much ;-).

##### Workaround #######

After 6 hours of testing (rebuilding php and apache) I found out that whenever the libmcrypt is compiled with php, this error occours. I tried libmcrypt v. 2.0 and 2.2.1. Without this library the server works fine.






---------PHP do-conf-------
CFLAGS='-O2 -I/usr/local/openssl/include' ./configure
--with-apache=/usr/local/src/apache_1.3.6
--with-mysql=/usr/local/mysql/current --with-msql
--with-pdflib=/usr/local --with-zlib --enable-sysvshm=yes
--enable-sysvsem=yes --with-config-file-path=/etc
--enable-track-vars=yes --with-mcrypt --enable-url-includes --with-mhash
--with-gd=/usr
------------------------------

------Apache configure with-----
SSL_BASE=/usr/local/openssl ./configure --prefix=/usr/local/apache/1.3.6
\
 --enable-module=ssl \
 --activate-module=src/modules/php3/libphp3.a \
 --enable-module=php3 \
 --activate-module=src/modules/auth_mysql/libauth_mysql.a \
 --enable-module=log_referer \
 --enable-module=log_agent
------------------------------------



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:35 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 [2003-11-16 14:46 UTC] phptom at wordesign dot net
I got the same problem with php 4.3.4 and libmcrypt.

I am going to try to add a new bug.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Aug 12 02:05:45 2022 UTC