Posted by artev on 12/26/07 12:04
in localhost with os winKp I use a LAMP for run apache-php-mysql;
the dir is this:
C:\WA\
with folders:
Apache-2.0.54
MySQL-4.1.12
php-4.3.11 (my php version that I use)
wmst (wmservertools is similar easyphp)
www
for to run PHP5 as cgi, how first step I insert also folder
php-5.2.5-Win32 inner C:\WA\
and I found this code that I must add in the httpd.conf:
Port 80
Listen 80
<VirtualHost *>
ServerName localhost
ServerAdmin me@localhost
DirectoryIndex index.php
DocumentRoot "C:/Apache/htdocs"
ScriptAlias /cgi-bin/ "C:/PHP5/"
Action php5-script /cgi-bin/php-cgi.exe
AddHandler php5-script .php5
</VirtualHost>
Listen 81
<VirtualHost *:81>
ServerName localhost
ServerAdmin me@localhost
DirectoryIndex index.php
DocumentRoot "C:/Apache/htdocs"
ScriptAlias /cgi-bin/ "C:/PHP5/"
Action php5-script /cgi-bin/php-cgi.exe
AddHandler php5-script .php .php5
</VirtualHost>
Question:
1- the code is corect?
2- if my actual settings httpd.conf is this:
DocumentRoot "/WA/www"
ScriptAlias /cgi-bin/ "/WA/www/cgi-bin/"
how I must to change code in rows ScriptAlias, Action e AddHandler ?
and inner WA/www/cgi-bin/ I must insert php-cgi.exe that I take from
php-5.2.5-Win32 folder?
Navigation:
[Reply to this message]
|