php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3963 doc_root setting is not used
Submitted: 2000-03-29 15:30 UTC Modified: 2000-07-03 17:09 UTC
From: thaberland at hawkeye dot net Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0 Release Candidate 2 OS: Linux Mandrake 7.0
Private report: No CVE-ID: None
 [2000-03-29 15:30 UTC] thaberland at hawkeye dot net
I use PHP4 RC1 as CGI-BIN module into the environment of the Hawkeye Server suite. The binary PHP file is stored into different sub-directories of /cgi-bin, and each sub-dir contains also a php.ini file with a different doc_root setting. (security and access permission reasons)

When I try to open a php file into the defined doc_root path, with the correct syntax to open a php file for cgi-bin, nothing happens. Absolutly nothing.

I successfully use a number of different PHP 3.0.xx applications in the same environment without any problems!
But when I replace the binary from php-3.0.15 with the binary of PHP4 (all version up to RC1), none of my PHP3 scripts does work. I tried many different settings (safe mode off/on), different configure options - nothing helps.
File permissions for php.ini are correct.

My last used configure options are:

  ./configure --enable-track-vars --enable-magic-quotes 
   --enable-force-cgi-redirect --with-mysql --enable-trans-sid 
   --enable-sysvsem 
   --enable-sysvshm --with-gd=/opt/gd1.2 --prefix=/usr  

Same options were used for php 3.0.15 (except trans-sid) and this binary works, as mentioned.

I don't use incompatible PHP commands, basicly all scripts should be usable into the new PHP4 environment without changings.

When using the full path (including the part which is defined as doc_root), I can open the PHP files. But this can't be the solution, IMO, because the doc_root is not used.

Thanks for this great program and your support!
Thomas

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-10 16:10 UTC] thaberland at hawkeye dot net
The described problem is also valid into the new RC2 version. No changing, unfortunately.

Any help to solve this problem is welcome! Is it a bug or not?

Thanks,
Thomas

 [2000-07-03 17:09 UTC] thaberland at hawkeye dot net
fixed in PHP 4.0.1 pl2 !
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 06 06:01:32 2024 UTC