安装成功访问你的网站,可能会出现如下错误:
Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.
这个是因为全局变量没有开启造成的,在配置文件中开启即可。因为Lunarpages使用的是SuPHP,所以不能在.htaccess文件中设置,需要在php.ini中设置。在public_html中找到php.ini文件将
register_globals = off
改为
register_globals = on
(问题1.这个文件在cp控制面板里怎样找?在哪个控制键里?为什么我无法打开文件,用fip工具又找不到php.ini文件)
然后在public_html目录下的.htaccess文件中(如果没有就自己建立一个)添加
suPHP_ConfigPath /home/your lunarpages usename/public_html
其中your lunarpages urename换为你的lunarpages 的用户名。
(问题2,就任意在最后一行的空白出添加就行了吗?) |