Articles of PHP5

如何升级到Windows Server 2008上的PHP 5.5

在Windows上从PHP版本5.4.32升级到PHP版本5.5.22的正确方法是什么? 所有我能find的是如何安装。 PHP已经在Windows Server 2008 R2 64位上与IIS一起运行,只需要转到更新版本的PHP

如何在PHP 5.4.9-4上安装php-xml和php-mbstring?

我已经将PHP5添加到了UBUNTU 12.04 sudo add-apt-repository ppa:ondrej/php5 -y 并安装了PHP5 php5 php5-common php5-mysql php5-xmlrpc php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear php5-dev php5-imap php5-mcrypt 但是我找不到两个包 php-xml and php-mbstring 任何想法如何被称为现在? 非常感谢,

是什么导致PHP页面始终下载,而不是正常运行

我正在虚拟机上运行Ubuntu服务器,以testing不同的networking论坛解决scheme。 我已经build立了一个〜/ public_html /可以通过apache2 web服务器访问,而且工作正常。 但是,当我浏览器上的一个.php文件(使用我的虚拟机的IP地址/〜用户名/ phpfile.php)它不会显示它应该。 相反,它提供了保存到文件/问什么程序来打开它。 有趣的是,虽然该对话框确实认识到它是一个PHP文件。 我在系统上安装了以下版本的php: PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies 和下面的服务器: Server version: Apache/2.2.14 (Ubuntu) Server built: Nov 18 2010 21:19:09 如果有人知道什么可能导致这个/潜在的解决scheme,这将使我非常高兴:) 编辑:结果文件这种行为只是在〜/ public_html /目录中的文件明显。 / var / www /中的所有php文件都可以正常工作。 奖品是否可以解释为什么? […]

如何configurationPHPStorm在IIS上进行debugging

我使用Web Platform Installer在Windows 7 64位机器上的IIS上安装了PHP 5。 我使用PHPStorm作为我的PHP IDE,但无法find任何有关如何使debugging工作的文档。 PHPStorm启动我的PHP Web应用程序,但断点没有得到它。 任何帮助赞赏。

ApacheconfigurationeAccelerator和FastCGI后永远不会运行

我最近使用apacheconfiguration加速器和fastcgi: http : //secure-ubuntu-server.blogspot.com/2009/07/howto-performance-tuning-of-lamp-and.html 现在我的Apache从不开始。 日志显示: Mon Jul 20 16:12:24 2009] [notice] ModSecurity for Apache/2.5.6 (http://www.modsecurity.org/) configured. [Mon Jul 20 16:12:25 2009] [notice] FastCGI: process manager initialized (pid 10919) [Mon Jul 20 16:12:25 2009] [alert] FastCGI: read() from pipe failed (0) [Mon Jul 20 16:12:25 2009] [alert] FastCGI: the PM is shutting down, Apache seems […]

似乎无法在Apache中设置AcceptPathInfo

我试图将一个ExpressionEngine网站迁移到一个新的服务器,似乎已经遇到了障碍。 对于所需的function,EE要求打开AcceptPathInfo指令,对于我来说,似乎无法让Apache协作。 服务器运行Fedora Core 18,Apache 2.4.3和PHP 5.4.11 Apache模块。 我已经尝试在我的虚拟主机configuration中设置以下内容: <VirtualHost *:80> DocumentRoot /home/mysite/public_html ServerName mysite.com <Directory /home/mysite/public_html/> AcceptPathInfo On Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> </VirtualHost> 但是当我使用phpinfo()debugging时,它仍然不显示path_info,orig_path_info或orig_path_info_translated(我相信这是由于AcceptPathInfo指令被打开而产生的)。 我也尝试在我的.htaccess文件中设置指令AcceptPathInfo On,但仍然无济于事。 我一直在经历Dev和Live环境之间的设置,似乎开发服务器正在使用FastCGI运行PHP并使用cgi.fix_pathinfo。 通常情况下,我对自己的httpd.conf和php.ini做了修改,但是在这一点上,我已经远远低于兔子洞了。 我在这里错过了什么?

在php-fpm confs中设置php值而不是php.ini

我想在php-fpm conf文件中设置通常在php.ini中设置的值。 我正在使用nginx。 我已经创build了以下设置,但我不确定这是否可行。 php_value[memory_limit] = 96M php_value[max_execution_time] = 120 php_value[max_input_time] = 300 php_value[php_post_max_size] = 25M php_value[upload_max_filesize] = 25M 你觉得如果这样可以吗? 当一个值在php.ini和php-fpm conf文件中设置时会发生什么? php-fpm覆盖了ini之一? 最后,这不是一个问题,我可以为所有虚拟主机设置不同的值? 我的意思是php.ini似乎是一个全局设置,而这是主机的依赖。 不同的主机可以运行不同的内存限制等?

错误:找不到OpenSSL的<evp.h> centos 6.3(安装php)

我在php 5.3.27的安装过程中遇到问题。 当我启动的时候。 /configuration我得到这个错误,并没有完成安装。 configuration扩展 检查长的大小…(caching)8 检查int的大小…(caching)4 检查int32_t …是的 检查uint32_t …是的 检查sys / types.h …(caching)是的 检查inttypes.h …(caching)是的 检查stdint.h …(caching)是的 检查string.h …(caching)是的 检查stdlib.h …(caching)是的 检查strtoll …是的 检查环礁…是的 检查strftime …(caching)是的 检查哪个正则expression式库使用… PHP 检查是否启用LIBXML支持…是的 检查libxml2安装目录… / usr / local / php530-cgi 检查xml2-configpath… / usr / bin / xml2-config 检查是否libxml构build工作…是的 检查OpenSSL支持…是的 检查Kerberos支持…是的 检查krb5-config …不 在-lssl中检查DSA_get_default_method …不 在-lcrypto …中检查X509_free 检查pkg-config […]

使用php-5.5.1在apache2 VPS中安装APC时出错

当我安装APC时: pecl install apc 我得到这个错误: Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. […]

编译安装php 5.3.1之后,我找不到我的php.ini文件

我的编译configuration: ./configure \ –with-fpm \ –with-libevent=shared,/usr/lib \ –with-mcrypt \ –with-zlib \ –with-curl \ –enable-mbstring \ –with-openssl \ –with-mysql \ –with-mysql-sock \ –with-gd \ –with-jpeg-dir=/usr/lib \ –enable-gd-native-ttf \ –without-sqlite phpinfo页面输出如下所示 Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: none / usr / local / lib中没有php.ini。 我的环境:Ubuntu 9.10 64bit,nginx 0.8.32