php.ini and PHPRC
2013-11-24 10:00
417 查看
Changes to php.ini
PHP reads php.ini files to set various properties. In general, PHP 5.3 is much more restrictive than PHP 5.2.14 (the current production version of PHP). If PHP 5.3 is run in default mode, many applications would fail to function properly.
In an attempt to minimize the differences between PHP 5.2.14 and PHP 5.3, a global php.ini file has been developed to allow PHP 5.3 to more or less mimic PHP 5.2.14 behavior.
How php.ini works
The global file is available at /usr/local/php5.3/php.ini
This global php.ini file is read first, followed by php.ini files in individual accounts which override the global settings. You may adjust your individual php.ini files. NOTE: Placing php.ini files in a directory only affects that directory, unless you use
.htaccess to specify which php.ini to use (see below).
Using PHPRC
A few accounts use a .htaccess file to define PHPRC – an environment variable that points to the php.ini file that should be used in place of the global php.ini file. For example:
SetEnv PHPRC /ip/my_account/location/php.ini |
5.3. The solution is to change .htaccess files from using PHPRC to PHP_INI_SCAN_DIR. For example:
SetEnv PHP_INI_SCAN_DIR /ip/my_account/location/php.ini |
PHPRC Finder Utility
A utility has been developed that account owners can use to discover if they have .htaccess files that define PHPRC. Simply login to Webserve and type:
find_phprc |
相关文章推荐
- PHPRC问题
- php邮箱验证
- php 高级应用之php进程管理器PPM(php-process-manager)
- ThingPHP学习笔记
- ThingPHP学习笔记
- phpcms v9 部署站点实践及总结
- FTP服务器端的实现
- PHP变量、引用、函数传参之彻底掌握,从此节操是路人
- 生成树STP配置 ------冗余的备份链路被自动激活
- php中单引号跟双引号的区别
- yii中上传图片及文件
- ftp的内网问题,通过路由器映射非21端口不成功的解决方法
- vsftpd配置教程
- php向ftp上传文件
- 对yii的初理解
- php所有版本变化情况
- yii -- 路由
- phpcms v9的后台编辑器无法上传图片的解决方法
- yii项目开发项目常用技巧和方法汇总
- 我的PHP学习记录。