php.net |  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
 [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?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-28 06:42 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [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 virtdomain1.com
lrwxrwxrwx    1 root     root           14 Aug 18 10:35 virtdomain3.com -> virtdomain2.com
drwxr-xr-x    2 root     root         4096 Aug 18 12:59 virtdomain2.com

ls -l /var/www/html/virtualdomain1.com
-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

lynx http://www.virtualdomain1.com/php4.tux?/info.php
lynx http://www.virtualdomain2.com/php4.tux?/info.php

This works very well for me.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC