Re: PHP5 and APACHE2 work but not best



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-

.



Relevant Pages

  • Re: What websites use Lisp?
    ... languages, frameworks, and libraries are used by various websites. ... languages for their CGI applications, my personal answer is that I ... In the future I plan to switch to PHP for the ... different alias to that script for each user online at a given ...
    (comp.lang.lisp)
  • Re: Apache: limiting the execution place
    ... They want it so users can't use FTP, shell, or a CGI or PHP script to view, ... other users via shell, FTP, web server processes (such as PHP or CGI ...
    (Security-Basics)
  • Re: Most productive web development frameworks
    ... If you don't like PHP, try CGI, in any language ... > how well PHP or CGI scales in a HA clustered environment. ... > I am really interested in peoples experience with different frameworks, ...
    (comp.programming)
  • Wrapping HTML Form Output.
    ... I'm trying to use PHP to wrap the output of an HTML form before it goes ... form, which previously pointed to the C CGI script, to point to a PHP ...
    (comp.lang.php)
  • PHP5 and APACHE2 work but not best
    ... I configured PHP as CGI with the folloring code into the apache ... I choice to configure as CGI becasuse the following code not work ... Configuration File Path C:\WINDOWS\PHP.ini ...
    (comp.lang.php)