|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14209 tux sapi doesn't work when using virtual hosts
Submitted: 2001-11-24 11:12 UTC Modified: 2002-11-13 01:00 UTC
From: teo at gecadsoftware dot com Assigned:
Status: No Feedback Package: Other web server
PHP Version: 4.0CVS-2001-11-24 OS: SuSE7.1/kernel-2.4.10/tux-2.1.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: teo at gecadsoftware dot com
New email:
PHP Version: OS:


 [2001-11-24 11:12 UTC] teo at gecadsoftware dot com
[yep, I know it's quite experimental that extension,just want to contribute to make it work]

If I do virtual_server=0 then it works just fine. When it's on (1) it cannot resolve the filename.
I guess when doing:
	file_handle.filename = SG(request_info).path_translated; [php_tux.c:279]

that path is only relative to document root and doesn't contain the virtual server name?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-28 06:42 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-11-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-08-18 07:52 UTC] jk at mediate dot sk
This is not a bug...

You must properly configure php.ini too. It seems like tux includes php files. You must set up include_dir = "/" (tux is running in chrooted environment). Also You must copy php4.tux file to every virtual host directory:

# ls -l /var/www/html
drwxr-xr-x    2 root     root         4096 Aug 19 04:19
lrwxrwxrwx    1 root     root           14 Aug 18 10:35 ->
drwxr-xr-x    2 root     root         4096 Aug 18 12:59

ls -l /var/www/html/
-rw-rw-r--    1 root     root           30 Aug 18 10:34 index.html
-rw-rw-r--    1 root     root           43 Aug 19 04:35 info.php
-rw-rw-r--    1 root     root            0 Aug 18 13:00 php4.tux


This works very well for me.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 04:01:30 2024 UTC