[Pi3web-users] How to run Pi3Web with PHP4 on Windows
Brought to you by:
zimpel
|
From: <zi...@t-...> - 2002-01-25 20:56:02
|
Hi,
I received some individual questions regarding configuration advise for
the PHP4 and SSL features this week. Here're my answers as CC to this list.
Maybe this will help other people.
Step-by-step advise to configure a PHP4 application with Pi3Web 2.0 for Windows:
0.) You should know before you start: Pi3Web comes with a couple of sample configurations
in .\Pi3Web\Conf\ folder. The default configuration is .\Pi3Web\Conf\Config.pi3.
The PHP samples and also your scripts should run with the configuration
.\Pi3Web\Conf\Features.pi3. Both configurations are for personal server or features
demonstration and not for internet use (.\Pi3Web\Conf\Internet.pi3).
1.) Stop the server. Open a DOS prompt and type in (assumed Pi3Web is installed at
c:\Pi3Web):
c:
cd \Pi3Web\bin
Pi3 ..\Conf\Features.Pi3
There's a line displayed 'Pi3Web http server started.'.
2.) Open your browser, type in http://localhost/ and use the 'features' link at the default
page and then the link 'PHP4 support' (or type in http://localhost/pidocs/Features/#php4).
Click on the 3 PHP sample links to see what happens.
3.) To run own PHP scripts from custom directories:
- Open .\Pi3Web\Conf\Features.pi3 with a text editor.
- Search for line
Mapping Condition="®exp('*.php*',$U)" \
- Insert a line for URL-path mapping (or more of them), which points to your PHP
application folder, e.g.:
Mapping Condition="®exp('*.php*',$U)" \
PHP4Mapper From="/MyURL/" To="MyPhpFolder/"
- Save Features.pi3, restart the Server, use Ctrl-C + 2.) again
- Create a directory .\Pi3Web\MyPhpFolder
- Copy your PHP stuff into this folder
- You should be able to call your PHP scripts
4.) Optional: To make configuration changes available with the start menu and
the GUI-based administration:
- Change the start menu entry for Pi3Web accordingly
from C:\Pi3Web\bin\EnhPi3.exe /START ..\Conf\Config.pi3
into C:\Pi3Web\bin\EnhPi3.exe /START ..\Conf\Features.pi3
Note: Features.pi3 doesn't support the admin GUI!
- Or copy all PHP4 related sections from Features.pi3 into Config.pi3
(only recommended for advanced users)
More questions? Don't hestitate to ask.
--
regards
Holger
TMTOWTDI - There's More Than One Way To Do It - Perl motto
----------------------------------------------------------
Holger 'zimpel' Zimmermann
----------------------------------------------------------
Wendishain
Germany
----------------------------------------------------------
http://home.t-online.de/home/zimpel/
http://pi3web.sourceforge.net/
mailto:zi...@t-...
----------------------------------------------------------
|