Re: PHP5 and APACHE2 work but not best
- From: David Haynes <david.haynes2@xxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 11:54:41 -0400
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-
.
- Follow-Ups:
- Re: PHP5 and APACHE2 work but not best
- From: Steel
- Re: PHP5 and APACHE2 work but not best
- References:
- PHP5 and APACHE2 work but not best
- From: Steel
- PHP5 and APACHE2 work but not best
- Prev by Date: MySQL prepare statement performance bottom-neck
- Next by Date: Re: PHP5 and APACHE2 work but not best
- Previous by thread: Re: PHP5 and APACHE2 work but not best
- Next by thread: Re: PHP5 and APACHE2 work but not best
- Index(es):
Relevant Pages
|