Entry
How do you get Xitami & php4 to work together with xitami aliases?
Sorry, I don't know how Xitami setup Perl. Could you explain in more detail?
Feb 9th, 2001 16:45
christian metzler, David Pettersson, Nathan Wallace, Mike Lavengood, Knud van Eeden, Ryan McKay,
You can't use Xitami aliases together with PHP4 right now.
The reason why Xitami aliases will not work with PHP4 is that the
script location to PHP4 is given by the environment variable
PATH_TRANSLATED. But on Xitami the PATH_TRANSLATED is just put together
by the document root and script name. It doesn't look up any aliases
defined in Xitami.
Due to this incosistency between Xitami and PHP4 the script will not be
run. There is a bug in the PATH_TRANSLATED in Xitami. But it will
probably take long time before its fixed. I have tried numerous way to
configure PHP to get the file to parse on some other way, without luck.
The only fix I came up with so far is to use a batch-file to call PHP,
however this means a great security risk along with longer execution
time, so I don't recommend it.
PHP3 just reads the file specified as an argument on the command
line.
That's why PHP3 will work but not PHP4.
---------------------
I had the same problem: Here is how it worked for me:
I put all the debug options on in php and figured out
that php could not open the file due to a wrong url-path
translation in xitami. I solved the problem in this way:
1.) Go to the xitami admin pages http://yourhost/admin and
change the 'Main html directory' (this is "webpages" by default) to
your web publishing directory. Save and restart the server.
2.) enter the correct filters in administration:
.php path_to_php_exe
.php3 path_to_php_exe
.php4 path_to_php_exe
Alternatively you can also manually the default.cfg file in
the xitami directory and add these two sections:
[Server]
Default3=index.php
Webpages=e:\yourdir\www
[Filter]
.php=c:\php4\php.exe
.php3=c:\php4\php.exe
.php4=c:\php4\php.exe
restart the xitami server
If you are using HTML forms then make sure to put
"register_globals = On" in php.ini for testing purposes.
Otherwise you will not have access to your forms parameters
whent "POST"ing or "GET"ing a form to php.