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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 + 25 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 02:01:31 2024 UTC