php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #770 Apache will not work when PHP with MySQL is installed
Submitted: 1998-09-23 05:04 UTC Modified: 1998-10-03 20:59 UTC
From: scott at elysium dot demon dot co dot uk Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.4 OS: Linux 2.0.32 libc5
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scott at elysium dot demon dot co dot uk
New email:
PHP Version: OS:

 

 [1998-09-23 05:04 UTC] scott at elysium dot demon dot co dot uk
MySQL Version: 3.21.33b
PostgreSQL Version: 6.3.2

MySQL is installed under /usr (ie in /usr/bin /usr/local etc) and was compiled --without-server

PostgreSQL is installed under /usr/local/pgsql and is complete

Apache version: 1.3.1

I followed this exact sequence:

tar xzf apache_1.3.1.tar.gz
tar xzf php-3.0.4.tar.gz
cd apache_1.3.1/src
./Configure
cd ../../php-3.0.4
./configure --with-apache=../apache_1.3.1 -with-mysql=/usr --with-zlib --with-gd --with-config-file-path=/etc/httpd/conf --enable-track-vars --enable-magic-quotes
make
make install
cd ../apache_1.3.1/src
** added into Configuration the line "AddModule modules/php3/libphp3.a" as line 258 (just under mod_cgi) **
./Configure
make

----
This Apache will display "Forbidden" for access to any file. In the VirtualHost's error log the line:

[crit] /.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

appears.

This problem is reproduceable every time - and goes away if MySQL support is not compiled into PHP.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-03 20:59 UTC] zeev
This is the infamous -lpthread problem

Simply remove -lpthread from the linking line, or wait
for 3.0.5 due very soon.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 17:01:33 2025 UTC