[Xitami] Installing PHP4 with Win 98SE & Xitami v2.4d9
Alan Lam
xitami@lists.xitami.org
Sun, 17 Feb 2002 18:54:43 +0000
>check your error.log file, cgierr.log also your phperror.log
>
>if you eneabled it and gave it a name in the php.ini file
>
>in your AUTOEXEC.BAT add this
>
>SET PATH=f:\internet;%PATH%
>
>NOTE the use of My documents has been known to give Xitami fits it don't
>like spaces :)
>
>hope this helps
To take out spaces
I've set up alias
temp=c:\temp
In autoexec.bat I've added
set path=f:\internet\php;%path%
I didn't know about the phperror.log. I downloaded the 'big' version of
php to have a look at the php.ini file. (I initially had the windows
installer version). I found out I can set display error!
The php.ini in the windows directory is now
; php.ini for PEAR tests
include_path=..
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= me@localhost.com ; for Win32 only
[Session]
session.save_path= F:\Internet\PHP\sessiondata ; argument passed to
save_handler
[PHP]
error_reporting= E_ALL; display all errors, warnings and notices
display_errors = On
display_startup_errors = On
log_errors = On
With a test page
http://localhost/temp/Test Page.html
=>
http://localhost/temp/Test%20Page.html
and pops up fine.
With the php page
<html><head><title>PHP Test</title></head>
<body>
<?php echo "Hello World<P>"; ?>
</body></html>
http://localhost/temp/phptest.php
I see now see (with the help of display_error = on) :-)
Fatal error: Unable to open F:/Internet/Xitami/webpages/temp/phptest2.ph
p in Unknown on line 0
So ... where and what do I set to get php & xitami talking to each other
about the right directory?
Thanks
--
Alan YC Lam Tonbridge, Kent, UK
email alan@alan-lam.co.uk
www http://www.alan-lam.co.uk