[Xitami] PHP/Alias Issues
Michael Morris
xitami@lists.xitami.org
Mon, 2 Dec 2002 17:27:06 -0500
I have a question that I hope you all can solve...
Running Xitami 2.4d9 on NT4, PHP 4.0.3 and a webmail app which runs currently under webpages\IlohaMail\source.
Here's the problem:
If I add an alias of "Webmail" to c:\progra~1\xitami\webpages\Ilohamail\source" I get a blank page with no header, etc. Just a blank page. Not even a 404, no errors logged in logfile. Contents of the blank page are:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
Also, the same thing happens when I set the alias to the C:\Ilohamail\source and have a copy of it there instead.
If I type in the "index.php" I get the text contents of the PHP file (treating it as text). If I add an Index.html to the folder, it pops up. Unfortunately index.php is what I need. When I reference the directory as http://servername/IlohaMail/source I get my perfectly functioning webmail program (when it is a subset of the webpages folder). However, the way this thing works is there are some config folders I don't want people monkeying around with located under IlohaMail, not just the "source" folder.
I have the proper alias setup, I also have the MIME type setup.
I installed the XiFusion wrapper (2.6) and the same, nothing. My direct link still works, but my "webmail" link does not (which currently references the c:/progra~1/xitami/webpages/IlohaMail/source folder).
Basically the Alias only seems to work with HTML files, or there is some issue with the PHP, which works for everything else. I have tried basic PHP files and they all provide the same result. As if they weren't being called at all.
Anybody had experience with this?
I am fairly new to PHP so this might be an issue. But I followed every suggestion on PHP.NET and it does work, just not with Aliases - which leads me to be suspicious...
Thanks in advance,
Michael Morris