WordPress: Finding Server Info:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
What version of [[WordPress:Glossary#PHP|PHP]] are you using?  What server software is your site host using?  What version of [[WordPress:Glossary#MySQL|MySQL]] do you have?  What operating system does your site host use? 
你正在使用的[[WordPress:Glossary#PHP|PHP]]是什么版本的?你的站点的主机使用的是什么服务器软件?你拥有的[[WordPress:Glossary#MySQL|MySQL]]是什么版本的?你的站点的主机使用的是什么操作系统?  
 
你正在使用的[[WordPress:Glossary#PHP|PHP]]是什么版本的?你的站点的主机使用的是什么服务器软件?你拥有的[[WordPress:Glossary#MySQL|MySQL]]是什么版本的?你的站点的主机使用的是什么操作系统?
 
[[WordPress:Image:phpinfoscreen1.jpg|Top of PHP Info test file results|thumb]]These are questions often asked by WordPress users as they prepare to [[WordPress:Getting_Started_with_WordPress#Installation|install WordPress]].  Other times, these questions are asked while [[WordPress:Troubleshooting|troubleshooting]] a problem with a WordPress installation.  But don't spend at lot of time searching your site, or your host's site, for the answers--there's a very easy way to get that information. 


[[WordPress:Image:phpinfoscreen1.jpg|Top of PHP Info test file results|thumb]]这些是WordPress用户在准备[[WordPress:Getting_Started_with_WordPress#Installation|安装WordPress]]时,通常所提出的问题。其它的时候,通常在WordPress安装过程中,[[WordPress:Troubleshooting|发现并解决]]一个问题时,用户也会问到这些问题。但是不要花太多的时间在你的站点或者你的主机的站点上搜索答案—因为有非常简单的方法能够得到信息。
[[WordPress:Image:phpinfoscreen1.jpg|Top of PHP Info test file results|thumb]]这些是WordPress用户在准备[[WordPress:Getting_Started_with_WordPress#Installation|安装WordPress]]时,通常所提出的问题。其它的时候,通常在WordPress安装过程中,[[WordPress:Troubleshooting|发现并解决]]一个问题时,用户也会问到这些问题。但是不要花太多的时间在你的站点或者你的主机的站点上搜索答案—因为有非常简单的方法能够得到信息。
The easiest way to collect the information is to make use of a pHp function called <tt>phpinfo()</tt>.  The <tt>phpinfo()</tt> function will query your (or your host's) server and generate a report with a long list of data.  Note:  Remember to bookmark this page, because, in the future, a volunteer in the [http://www.wordpress.org/support WordPress Support Forum] may ask you to use this method to get information to assist them in [[WordPress:Troubleshooting|troubleshooting]] a question you asked on the Support Forum. 


收集信息的最简单的方法是利用一个叫做<tt>phpinfo()</tt>的pHp功能。<tt>phpinfo()</tt>功能会询问你的(或者你的主机的)服务器,并且产生一个带有很长的数据列表的报告。注意:给这个网页加上书签,因为,在将来,[http://www.wordpress.org/support WordPress 支持论坛]中的一个志愿者会叫你使用这种方法来得到信息,以帮助他们[[WordPress:Troubleshooting|发现并解决]]你在支持论坛上提出的一个问题。
收集信息的最简单的方法是利用一个叫做<tt>phpinfo()</tt>的pHp功能。<tt>phpinfo()</tt>功能会询问你的(或者你的主机的)服务器,并且产生一个带有很长的数据列表的报告。注意:给这个网页加上书签,因为,在将来,[http://www.wordpress.org/support WordPress 支持论坛]中的一个志愿者会叫你使用这种方法来得到信息,以帮助他们[[WordPress:Troubleshooting|发现并解决]]你在支持论坛上提出的一个问题。


In a text editor, copy and paste the following command:
在一个文本编辑器上,复制并且粘贴一下的命令:
在一个文本编辑器上,复制并且粘贴一下的命令:
<?php phpinfo(); ?>


<?php phpinfo(); ?>
<?php phpinfo(); ?>


确定命令行之前和之后都没有空格,只有命令行,将文件以<tt>testinfo.php</tt> 或者<tt>phpinfotest.php</tt>保存。使用一个名称,这个名称会提醒你这个文件的目的,因为你可能需要再次使用这个文件。


Make sure there are no spaces before or after the command, just the command, and save the file as something like <tt>testinfo.php</tt> or <tt>phpinfotest.php</tt>.  Use a name that reminds you of this file's purpose, because you may need to use it again.
将文件上传到你的站点的根目录上。然后对于你的浏览器上的文件输入地址:
 
确定命令行之前和之后都没有空格,只有命令行,将文件以<tt>testinfo.php</tt> or <tt>phpinfotest.php</tt>保存。使用一个名称,这个名称会提醒你这个文件的目的,因为你可能需要再次使用这个文件。
 
Upload the file to the root directory of your site.  Then type in the address to the file in your browser:
将文件上传到你的站点的根目录上。让后对于你的浏览器上的文件输入地址:
 
<nowiki>http://example.com/testphp.php</nowiki>
 


<nowiki>http://example.com/testphp.php</nowiki>
<nowiki>http://example.com/testphp.php</nowiki>
The result will be several pages long and it will contain a ton of information.  Though your data may be in a different order, for the most part, you just need the summary items that lists things like this:


结果可能有几页纸那么长,包括许多信息。虽然你的数据可能顺序不同,对于大多数数据而言,你需要总结的条目列出像以下的内容:
结果可能有几页纸那么长,包括许多信息。虽然你的数据可能顺序不同,对于大多数数据而言,你需要总结的条目列出像以下的内容:
<table border=1 cellpadding=3 style="margin:10px; font-family:monospace"><tr><td>PHP</td><td>Version 4.3.10</td></tr>
<tr><td>System</td><td>Windows NT FRONTIER 5.2 build 3790</td></tr>
<tr><td>Build Date</td><td>Apr 14 2004 17:17:11</td></tr>
<tr><td>Server API</td><td>CGI/FastCGI</td></tr>
<tr><td>Apache Version</td><td>Apache/1.3.31 (Unix) mod_log_bytes/0.3 FrontPage/5.0.2.2635 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.7d</td></tr>
<tr><td>Apache Release</td><td>10331100</td></tr>
<tr><td>Under MySQL: Client API version</td><td>3.23.49</td></tr></table>




第52行: 第25行:
<tr><td>Apache Release</td><td>10331100</td></tr>
<tr><td>Apache Release</td><td>10331100</td></tr>
<tr><td>Under MySQL: Client API version</td><td>3.23.49</td></tr></table>
<tr><td>Under MySQL: Client API version</td><td>3.23.49</td></tr></table>
That's it.  Again, keep the file where you can find it, because you might need this information again.  That way, it can be run any time from your browser.


就这么多。再一次地,将文件保存到你可以找到的位置,因为你还可能需要这个信息。这样的话,文件在任何时候都可以在你的浏览器上运行。
就这么多。再一次地,将文件保存到你可以找到的位置,因为你还可能需要这个信息。这样的话,文件在任何时候都可以在你的浏览器上运行。


==Information and Resources==
==信息和资源==
==信息和资源==
* [http://us3.php.net/phpinfo PHP.net's phpinfo Manual]
 
* [http://us3.php.net/phpinfo PHP.net's phpinfo 手册]
* [http://us3.php.net/phpinfo PHP.net's phpinfo 手册]


* [http://www.zend.com/manual/function.phpinfo.php Zend's PHP Manual on phpinfo]
* [http://www.zend.com/manual/function.phpinfo.php Zend的 关于phpinfo的PHP手册]
* [http://www.zend.com/manual/function.phpinfo.php Zend的 关于phpinfo的PHP手册]

2008年4月24日 (四) 15:53的最新版本

你正在使用的PHP是什么版本的?你的站点的主机使用的是什么服务器软件?你拥有的MySQL是什么版本的?你的站点的主机使用的是什么操作系统?

Top of PHP Info test file results|thumb这些是WordPress用户在准备安装WordPress时,通常所提出的问题。其它的时候,通常在WordPress安装过程中,发现并解决一个问题时,用户也会问到这些问题。但是不要花太多的时间在你的站点或者你的主机的站点上搜索答案—因为有非常简单的方法能够得到信息。

收集信息的最简单的方法是利用一个叫做phpinfo()的pHp功能。phpinfo()功能会询问你的(或者你的主机的)服务器,并且产生一个带有很长的数据列表的报告。注意:给这个网页加上书签,因为,在将来,WordPress 支持论坛中的一个志愿者会叫你使用这种方法来得到信息,以帮助他们发现并解决你在支持论坛上提出的一个问题。

在一个文本编辑器上,复制并且粘贴一下的命令:

<?php phpinfo(); ?>

确定命令行之前和之后都没有空格,只有命令行,将文件以testinfo.php 或者phpinfotest.php保存。使用一个名称,这个名称会提醒你这个文件的目的,因为你可能需要再次使用这个文件。

将文件上传到你的站点的根目录上。然后对于你的浏览器上的文件输入地址:

http://example.com/testphp.php

结果可能有几页纸那么长,包括许多信息。虽然你的数据可能顺序不同,对于大多数数据而言,你需要总结的条目列出像以下的内容:


PHPVersion 4.3.10
SystemWindows NT FRONTIER 5.2 build 3790
Build DateApr 14 2004 17:17:11
Server APICGI/FastCGI
Apache VersionApache/1.3.31 (Unix) mod_log_bytes/0.3 FrontPage/5.0.2.2635 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.7d
Apache Release10331100
Under MySQL: Client API version3.23.49

就这么多。再一次地,将文件保存到你可以找到的位置,因为你还可能需要这个信息。这样的话,文件在任何时候都可以在你的浏览器上运行。

信息和资源[ ]