PHP5和APACHE2工作但不是最好的 [英] PHP5 and APACHE2 work but not best

查看:71
本文介绍了PHP5和APACHE2工作但不是最好的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧


我在本地安装了服务器APACHE 2和PHP 5

我将PHP配置为CGI,并将代码放入apache中/>
配置文件

ScriptAlias / php /" c:/ php /"

AddType application / x-httpd-php。 php

动作应用程序/ x-httpd-php" /php/php-cgi.exe"


我选择配置为CGI因为以下代码不工作


LoadModule php5_module" c:/php/php5apache2.dll"

AddType application / x-httpd-php .php


PHPIniDir" C:/ WINDOWS"


在家里将PHP配置为CGI本地工作但不是那么好就像

行和它做腐烂返回我的脚本的许多变量值。


phpinfo()返回:

PHP版本5.1.2


系统Windows 9x PC 4.10

构建日期2006年1月11日16:35:21

配置命令cscript / nologo configure.js&quo t; - enable-snapshot-build"

" - with-gd = shared"

Server API CGI / FastCGI

Virtual启用目录支持

配置文件(php.ini)路径C:\ WINDOWS \PHP.ini

PHP API 20041225

PHP扩展20050922

Zend Extension 220051025

调试构建否

启用线程安全

启用Zend内存管理器

已启用IPv6支持

已注册的PHP Streams php,file,http,ftp,compress.zlib

已注册的流套接字传输tcp,udp

注册流过滤器convert.iconv。*,string.rot13,string.toupper,

string.tolower,string.strip_tags,convert。*,zlib。*

请问我能做些什么才能做得最好?


问候


钢铁

解决方案

2006年6月30日星期五15:37:04 +0000,Steel写道:

请问我该怎么办? ork最好?




嗯?

-

JDS


星期五,2006年6月30日11:42:26 -0400,JDS写道:

嗯?




实际上,让我澄清一下。


你的英语不够清楚,无法理解你的要求。

你说意大利语?我不是,但我打赌这里有人这样做。

用意大利语(或任何你的母语)发布你的问题。


- -

JDS


Steel写道:

大家好

>我在本地安装了服务器APACHE 2和PHP 5
我将PHP配置为CGI,并将代码转换为apache
配置文件

ScriptAlias / php /" c:/ php /"
AddType application / x-httpd-php .php
动作应用程序/ x-httpd-php" /php/php-cgi.exe"

我选择配置为CGI因为以下代码不起作用

LoadModule php5_module" c:/php/php5apache2.dll"
AddType application / x-httpd-php .php

PHPIniDirC:/ WINDOWS

在家里将PHP配置为CGI本地工作但不是那么好就像在
行上它确实腐烂了我很多变量的值我的剧本。

phpinfo()retu :PHP版本5.1.2

系统Windows 9x PC 4.10
构建日期2006年1月11日16:35:21
配置命令cscript / nologo configure.js " - enable-snapshot-build" - with-gd = shared"
服务器API CGI / FastCGI
启用虚拟目录支持
配置文件(php。 ini)路径C:\ WINDOWS \PHP.ini
PHP API 20041225
PHP扩展20050922
Zend扩展220051025
调试构建否
线程安全已启用已注册的PHP Streams php,file,http,ftp,compress.zlib
已注册的流套接字传输tcp,udp
已注册的流过滤器转换.iconv。*,string.rot13,string.toupper,
string.tolower,string.strip_tags,convert。*,zlib。*

请问我该怎么做才能最好?<问候

钢铁




有几件事......

1.将PHP作为CGI运行b比运行它作为本机的b / b $ Apache模块慢。这可能就是你从穷人那里得到的回报。

2.你说

LoadModule php5_module" c:/ php / php5apache2 .dll"

AddType application / x-httpd-php .php

PHPIniDir" C:/ WINDOWS"

不适合你。我认为*这是因为你的php.ini文件在

c:/ php而不是c:/ WINDOWS。

3.请再次使用LoadModule选项并发布

的副本phpinfo()的输出 - 它将帮助我们为你工作。


-david-


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

解决方案

On Fri, 30 Jun 2006 15:37:04 +0000, Steel wrote:

Please what can I do to work best?



Huh?
--
JDS


On Fri, 30 Jun 2006 11:42:26 -0400, JDS wrote:

Huh?



Actually, let me clarify.

Your English is not clear enough for me to understand what you are asking.
You speak Italian? I don''t, but I bet there is someone here that does.
Post your question in Italian (or whatever your native language).

--
JDS


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-


这篇关于PHP5和APACHE2工作但不是最好的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆