在共享的托管帐户php.ini的配置变化 [英] php.ini configuration changes in shared hosting account

查看:107
本文介绍了在共享的托管帐户php.ini的配置变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图覆盖使用的.htaccess / ini_set默认的php.ini配置,但在执行脚本的配置没有得到体现。在这里,PHP安装为的FastCGI和我在一个共享的托管帐户。有没有办法改变的php.ini设置或我需要我的账户升级到虚拟专用服务器。请在这方面提供帮助。

Am trying to override the default php.ini configuration using .htaccess / ini_set, but the configurations are not getting reflected while executing the script. Here the PHP is installed as fastcgi and am in a shared hosting account. Is there any way to change the php.ini settings or I need to upgrade my account to virtual dedicated server. Please help in this regard.

谢谢您的回答, 更复杂的,我想改变我的PHP脚本的max_execution_time为我处理一个巨大的日志文件需要进行解析。这个脚本超过php.in(IE)30秒的默认配置。由于我的网站是在共享的主机,我不能将其配置在php.ini中,他们给出了文档根(php.ini中)文件答问我们配置的值,但未reflecting.I尝试动态方式使用ini_set,同样的结果。

Thanks for your answers, to be more elaborate, i want to change the max_execution_time of my php script as am handling with a huge log file need to be parsed. This script exceeds the default configuration in php.in (i.e) 30 secs. As my site is in the shared hosting, am not able to configure it in php.ini, they given a (php.ini)file in the document root ans ask us to configure the values but that is not reflecting.I tried the dynamic way using ini_set, same result.

包含路径是:在/ usr /本地/ PHP5 / lib目录/ PHP

The include path is .:/usr/local/php5/lib/php

推荐答案

我怀疑,你将能够修改的所有的在的php.ini 共享主机上的文件。主机可能已经扭转了整个 ini_set()功能关闭所有我知道的!虚拟专用服务器的可能的是你要寻找的(我从来没有遇到过这种东西,因为我跑我自己的服务器)。

I doubt you will be able to modify everything in the php.ini file on a shared host. The host could've turned the whole ini_set() function off for all I know! A virtual dedicated server might be what you're looking for (I have never encountered this stuff, as I run my own servers).

只是想知道,什么是你想设置?

Just wondering, what are you trying to set?

这篇关于在共享的托管帐户php.ini的配置变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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