You are here: Re: php5 as cgi and php4 as module « PHP Language « IT news, forums, messages
Re: php5 as cgi and php4 as module

Posted by AlexW474 on 12/26/07 22:12

On Dec 26, 2:03 pm, artev <mailnotspa...@notspamm.nn> wrote:
> in localhost with os winKp I use a LAMP for runapache-php-mysql;
> the dir is this:
> C:\WA\
> with folders:Apache-2.0.54
> MySQL-4.1.12php-4.3.11 (myphpversion that I use)
> wmst (wmservertools is similar easyphp)
> www
>
> for to run PHP5 as cgi, how first step I insert also folderphp-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 insertphp-cgi.exe that I take fromphp-5.2.5-Win32 folder?

I'm not sure whether it is possible to use two Listen directives, but
suspect that it is not.
I think that the following instruction may be helpful:
http://www.witsuite.com/support/knowledge-base/manual-installation/install-php.php

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация