raksmart活动促销

分享

写回答

发帖

[教程] 有人可以告诉我空间环境要如何设置啊!!!!

HostMonster HostMonster 4618 人阅读 | 8 人回复

发表于 2008-7-14 19:01:49 | 显示全部楼层 |阅读模式

我的主软软件改空间上的这些墨认参数
magic_quotes_gpc = On
magic_quotes_runtime = Off
output_buffering = 4096
register_globals = On
safe_mode = Off
我连联了客服他的意思好像是说我可以在控制板自行做一个php.inc ini file 文件
但我不懂要怎么做那位大哥指点我一下啊!!!!!!!
客服的话“Dawson [4:14:07 AM]: You can change those all inside of the php.ini file.
[4:14:19 AM]: You may install a default php.ini file on your server share through the PHP Config icon on cPanel. Then, you may use File Manager on cPanel to browse for and rename the file [php.ini.default] to [php.ini]. You may also want to turn on FastCGI, inside of PHP Config, which will force that php.ini inside of /public_html to load as default for all subfolders. The php.ini file can be modified in several ways to accommodate the needs of your scripts. For instance:

1. You may need to have the following line altered as shown:
register_globals = On

2. Maybe you need to remove the comment symbol (semi-colon) from:
session.save_path = /tmp

3. Perhaps you need to increase your PHP memory, which can be done by altering other lines as shown:
max_execution_time = 300
max_input_time = 600
memory_limit = 50M
post_max_size = 50M
file_uploads = On
upload_max_filesize = 50M”

回答|共 8 个

dm168

发表于 2008-7-14 19:02:57 | 显示全部楼层

我的网站主要软件要求改空间上的这些墨认参数
magic_quotes_gpc = On
magic_quotes_runtime = Off
output_buffering = 4096
register_globals = On
safe_mode = Off
我连联了客服他的意思好像是说我可以在控制板自行做一个php.inc ini file 文件
但我不懂要怎么做那位大哥指点我一下啊!!!!!!!
客服的话“Dawson [4:14:07 AM]: You can change those all inside of the php.ini file.
[4:14:19 AM]: You may install a default php.ini file on your server share through the PHP Config icon on cPanel. Then, you may use File Manager on cPanel to browse for and rename the file [php.ini.default] to [php.ini]. You may also want to turn on FastCGI, inside of PHP Config, which will force that php.ini inside of /public_html to load as default for all subfolders. The php.ini file can be modified in several ways to accommodate the needs of your scripts. For instance:

1. You may need to have the following line altered as shown:
register_globals = On

2. Maybe you need to remove the comment symbol (semi-colon) from:
session.save_path = /tmp

3. Perhaps you need to increase your PHP memory, which can be done by altering other lines as shown:
max_execution_time = 300
max_input_time = 600
memory_limit = 50M
post_max_size = 50M
file_uploads = On
upload_max_filesize = 50M”
[贴子地址]:http://bbs.idcspy.com/thread-27211-1-1.html

一路同行

发表于 2008-7-14 19:05:59 | 显示全部楼层

新建一个php.ini文件,在这个文件里修改你的配置

dm168

发表于 2008-7-14 19:15:02 | 显示全部楼层

但是要怎样建啊?有没有教程啊?还有是用php pear 还是用php config这个啊?

dm168

发表于 2008-7-14 19:39:15 | 显示全部楼层

我已经把php.inc.default文件复制下来了,下载到电脑。现在要怎么做呢?

dm168

发表于 2008-7-14 20:34:05 | 显示全部楼层

我的文件改好后要放那那个目录里啊?那个大哥指点我一下啊

一路同行

发表于 2008-7-15 09:22:46 | 显示全部楼层

放在根目录就行了

dm168

发表于 2008-7-15 10:43:01 | 显示全部楼层

现在弄好了!不过还是请客服帮弄的,开始弄好php.ini放在了public_html目录下后,用探针看了一下设置并没有任何改动!不得以再找客服他说我没有弄什么 fast cgi 这个,我说我不会再请他帮我弄,给了我一名one monment现在好了!但这个fast cgi文件他放在那里啊?我还是找不到他啊!!!!!!!!!!

一路同行

发表于 2008-7-15 11:38:48 | 显示全部楼层

客服解决问题的效率是相当高的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

dm168

发表主题