|
Posted by David Haynes on 06/30/06 15:54
Steel wrote:
> Hi at all
>
> I installed locally the server APACHE 2 and PHP 5
> I configured PHP as CGI with the folloring code into the apache
> configuration file
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php-cgi.exe"
>
> I choice to configure as CGI becasuse the following code not work
>
> LoadModule php5_module "c:/php/php5apache2.dll"
> AddType application/x-httpd-php .php
>
> PHPIniDir "C:/WINDOWS"
>
> Configuring PHP as CGI at home locally it work but not so better like on
> line and it do rot return me many variables value of my script.
>
> phpinfo() return:
> PHP Version 5.1.2
>
>
>
> System Windows 9x PC 4.10
> Build Date Jan 11 2006 16:35:21
> Configure Command cscript /nologo configure.js "--enable-snapshot-build"
> "--with-gd=shared"
> Server API CGI/FastCGI
> Virtual Directory Support enabled
> Configuration File (php.ini) Path C:\WINDOWS\PHP.ini
> PHP API 20041225
> PHP Extension 20050922
> Zend Extension 220051025
> Debug Build no
> Thread Safety enabled
> Zend Memory Manager enabled
> IPv6 Support enabled
> Registered PHP Streams php, file, http, ftp, compress.zlib
> Registered Stream Socket Transports tcp, udp
> Registered Stream Filters convert.iconv.*, string.rot13, string.toupper,
> string.tolower, string.strip_tags, convert.*, zlib.*
>
>
> Please what can I do to work best?
>
> Regards
>
> Steel
>
>
>
A couple of things...
1. Running PHP as a CGI will be slower than running it as a native
Apache module. This is probably where you are getting the poor
response from.
2. You say
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/WINDOWS"
does not work for you. I *think* it is because your php.ini file is in
c:/php not c:/WINDOWS.
3. Please try again with the LoadModule option and post a copy of
the output of phpinfo() - It will help us get it all working for you.
-david-
[Back to original message]
|