Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2237671
  • 博文数量: 82
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 880
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-14 00:01
文章分类

全部博文(82)

文章存档

2014年(1)

2011年(1)

2009年(8)

2008年(11)

2007年(13)

2006年(26)

2005年(22)

我的朋友

分类: LINUX

2005-03-17 21:10:00

在FC3上安装php-multishop的经过,这程序竟然要register_global=on

在mysql里建一个数据库,比如t1。解压multishop-devel-0.5.1.tgz,进入/var/www/html/Nuke/html,编辑config.php,把数据库的主机名、用户、密码设好。把/var/www/html/sql/nuke.sql导入数据库, mysql t1 < nuke.sql。在浏览里打开127.0.0.1/Nuke/html/admin.php,结果一片空白。于是传到win2k上,显示有个文件没包含进来,在config.php的90行。一看,原来是这样的,
define('DIR_FS_DOCUMENT_ROOT', "/.../"); // IMPORTANT: it's the absolut path, example: /var/www/html/mymultishop/ (for unix) or c:/hosting/mymultishop/wwwroot/public_html/ (windows)
改成
define('DIR_FS_DOCUMENT_ROOT', "/var/www/html/Nuke/html/"); // IMPORTANT: it's the absolut path, example: /var/www/html/mymultishop/ (for unix) or c:/hosting/mymultishop/wwwroot/public_html/ (windows)
这下再浏览admin.php,出来了,先设一个超级用户,下面有个选项,是否建立一样的普通用户,默认是。再登录,里面语言选chinese,出来乱码,把firefox中的charset改成big5,原来是繁体。
再看osC的INSTALL,说要复制catalog到web根目录,我没复制到根,而是复制到Nuke/html里,先cp -R catalog/ ../Nuke/html。还说要把admin也这样操作,似乎是说不能在catalog下,我准备从catalog里把admin复制出来改个名,算了,先不忙复制出来,因为觉得和phpnuke的admin有冲突。浏览
,提示
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
还有这种程序?无语:(在/etc/php.ini里找到register_globals=off这句,改成on。重启httpd,这下出来安装页面了。中间要导入oscommerce.sql,并且要把里面的PREFIXSHOP全改成你设定的prefix,幸好,在页面上有个AUTOMATIC SCRIPT,一点,提示,"oscommerce.sql" file is Not Writable: please set chmod 606,那就chmod吧,这下可以了,我把prefix设成shop_,再make file,生成了新的oscommerce.sql,继续,会要求输入数据库主机用户和密码,下面有个Prefix Store,这个是phpnuke的prefix,要和phpnuke里一样,我设nuke,再下面是永久连接和session保存方式,我用默认的。数据库导入成功后,会要求确认web server的信息,我的WWW address是,Webserver Root Directory是/var/www/html/Nuke/html/catalog/,HTTP Cookie Domain是127.0.0.1,HTTP Cookie Path是/Nuke/html/catalog/,我觉得这个似乎应该设成/Nuke/html/,以便和phpnuke共享cookie吧,但我还不确定,那暂时不改。然后点继续,怎么又出来一个数据库信息设置,不管他,继续,噫,竟然提示
A test connection made to the database was NOT successful.

The error message returned is:

Table 't1._configuration' doesn't exist

Please click on the Back button below to review your database server settings.

If you require help with your database server settings, please consult your hosting company.
返回一看,原来Prefix Store没填,这个应该填什么?是shop_还是nuke???填shop_吧,结果依然是刚才的出错信息。填成nuke也不对。难道是phpnuke中admin.php里的Multi-shop没设的原因?可进去看,似乎没有什么与此相关的。点Prefix Store旁边的?号,显示This is the prefix set in oscommerce.sql and MultiShop platform to identify this store.我放弃了,重来install,估计这数据库是重复导入了。这次没出webserve信息,而是这样了,The following error has occurred:

The configuration files do not exist, or permission levels are not set.

Please perform the following actions:

    * cd /var/www/html/Nuke/html/catalog/includes/
    * touch configure.php
    * chmod 706 configure.php

    * cd /var/www/html/Nuke/html/catalog/admin/includes/
    * touch configure.php
    * chmod 706 configure.php

If chmod 706 does not work, please try chmod 777.

If you are running this installation procedure under a Microsoft Windows environment, try renaming the existing configuration file so a new file can be created.
于是chmod了,这下终于走到后一个页面了。有两个按键,一个是catalog,点击就显示了网站页面了,上方有两句话,Warning: Installation directory exists at: /var/www/html/Nuke/html/catalog/install. Please remove this directory for security reasons.
Warning: I am able to write to the configuration file: /var/www/html/Nuke/html/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.
等会再删不迟。另一个按钮是Administration Tool,点击进入了osC的管理页面。



阅读(1371) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~