找回密码
 立即注册
CeraNetworksBGVM服务器主机交流IP归属甄别会员请立即修改密码
查看: 156|回复: 2

lunarpages虚拟主机开启远程数据连接办法

[复制链接]

965

主题

5377

回帖

2万

积分

论坛元老

积分
21384
发表于 2008-10-19 23:13:15 | 显示全部楼层 |阅读模式
在php.ini中加入如下内容:
allow_url_fopen = on
上传覆盖。
但是,我根据这个设置后仍然不行,于是我写信问了lunarpages的客服,他们给的回信原文如下:“Hello, Please insert the following code in your .htaccess: suPHP_ConfigPath /home/username/public_html/ where “username” is your cPanel username. In your php.ini file, please add the following line of text: allow_url_fopen = On Both files should be in your root public_html folder, if either of the files is not present, go ahead and create it. ”
其意思就是,将在网站根目录中的.htaccess文件中加入“suPHP_ConfigPath /home/username/public_html/”(其中的“username”换成你的cpanel用户名)
然后在php.ini中加入“allow_url_fopen = On ”,上传后,稍后就可以开启远程连接了。
回复

使用道具 举报

70

主题

120

回帖

1074

积分

金牌会员

积分
1074
发表于 2008-10-21 11:19:11 | 显示全部楼层
在数据库管理设置的不行吗?
回复

使用道具 举报

965

主题

5377

回帖

2万

积分

论坛元老

积分
21384
 楼主| 发表于 2008-10-21 11:51:48 | 显示全部楼层
PHPMyadmin可以的,只是远程连接需要上面的操作。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|HS2V主机综合交流论坛

GMT+8, 2024-5-18 10:46 , Processed in 0.053059 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表