我在安装phpauction.net的拍卖系统,includes/passwd.inc.php已经配置好,sql数据也已经导入成功,首页www.olzg.com/phpauction能打开了,但是由于includes/config.inc.php不知道该配置哪里,以致不能进入admin管理系统,请高手指点下面贴出config.inc.php文件。
我是godaddy.com的主机,绝对路径是 D:\hosting\5094132\html\$SITE_NAME = "YOUR SITE NAME";
        $SITE_URL  = "http://172.26.0.4/phpauction/"; //Requires ending slash  //-- This is the directory where passwd.inc.php file resides - requires ending slash
          
          $include_path = "./includes/"; 
          #$include_path = "C:\\some\\path\\to\\includes\\"; 
          //-- This is the directory where users pictures will be uploaded - requires ending slash
          //-- Under Windows use something like C:\\path\\to\\you\\uploaddir\\          $image_upload_path = "/var/www/phpauction/uploaded/"; 
          #$image_upload_path = "C:\\some\\path\\to\\uploaded\\"; 
          $uploaded_path = "uploaded/"; 
          #$uploaded_path = "uploaded\\"; 

解决方案 »

  1.   

    include_path为passwd.inc.php文件所在的目录,以实际目录为准//以下这两个随便你设,只要在D:\hosting\5094132\html\ 这个目录下就可以了,但要求将\为\\
    image_upload_path 为图片上传的路径
    uploaded_path为上传路径$SITE_NAME为站点名
    $SITE_URL为站点的URL http://www.olzg.com/phpauction/
      

  2.   

    楼主的配置文件都没有吗?如果config.inc.php,就看这个文件在哪了,根据这个文件把路径设置正确就可以了
      

  3.   

    主要是这句不懂。
    //以下这两个随便你设,只要在D:\hosting\5094132\html\ 这个目录下就可以了,但要求将\为\\ 
      

  4.   

    就是一个路径而矣.
    比如说设置为:
    $image_upload_path = "D:\\hosting\\5094132\\html\\uploadedpic\\";
    $uploaded_path     = "D:\\hosting\\5094132\\html\\uploaded\\";
      

  5.   

    在字符串里面\有转义的作用,要表达\本身需要对其自己转义,也就是'\\',你还可以写/来代替\,php一般都能识别
      

  6.   

    鉴于Linux系统只是别"/"路径符,而windows对"/"和"\"都能识别
    所以路径符应统一使用"/"
      

  7.   

    请帮我看下,我这样设置是否正确?另外问下$和#$有什么不同?是不是表示一个是linux主机设置,一个是windows主机设置? //-- This is the directory where passwd.inc.php file resides - requires ending slash
      
       $include_path = "./includes/"; 
       #$include_path = "D:\\hosting\\5094132\\html\\phpauction\\"; 
       //-- This is the directory where users pictures will be uploaded - requires ending slash
       //-- Under Windows use something like C:\\path\\to\\you\\uploaddir\\   $image_upload_path = "/var/www/phpauction/uploaded/"; 
       #$image_upload_path = "D:\\hosting\\5094132\\html\\uploaded\\"; 
       $uploaded_path = "uploaded/"; 
       #$uploaded_path = "uploaded\\"; 
      

  8.   

    请帮我看下,我这样设置是否正确?另外问下$和#$有什么不同?是不是表示一个是linux主机设置,一个是windows主机设置? //-- This is the directory where passwd.inc.php file resides - requires ending slash 
      
      $include_path = "./includes/"; 
      #$include_path = "D:\\hosting\\5094132\\html\\phpauction\\includes\\"; 
      //-- This is the directory where users pictures will be uploaded - requires ending slash 
      //-- Under Windows use something like C:\\path\\to\\you\\uploaddir\\   $image_upload_path = "/var/www/phpauction/uploaded/"; 
      #$image_upload_path = "D:\\hosting\\5094132\\html\\uploaded\\"; 
      $uploaded_path = "uploaded/"; 
      #$uploaded_path = "uploaded\\"; 
      

  9.   

    我是godaddy.com的主机,绝对路径是 D:\hosting\5094132\html\
    请你帮我看看下面几句如何设置?谢谢!
             $image_upload_path = "/var/www/phpauction/uploaded/"; 
              #$image_upload_path = "C:\\some\\path\\to\\uploaded\\"; 
              $uploaded_path = "uploaded/"; 
              #$uploaded_path = "uploaded\\";
      

  10.   

    $root_path = "D:/hosting/5094132/html";
    #$image_upload_path = "/var/www/phpauction/uploaded/"; 
    $image_upload_path = "$root_path/uploaded/"; 
    #$uploaded_path = "uploaded/"; 
    $uploaded_path = "$root_path/uploaded/";
      

  11.   


    感谢指点,我已经改成你这样,但www.hzsale.com/phpauction/admin还是不能进入后台<帐号密码都是admin>.或者联系我QQ32425001
      

  12.   

    我把config.php全部贴出来。
    <?/*   Copyright (c), 1999, 2000 - phpauction.org                  
          This program is free software; you can redistribute it and/or modify 
       it under the terms of the GNU General Public License as published by 
       the Free Software Foundation (version 2 or later).                                     This program is distributed in the hope that it will be useful,      
       but WITHOUT ANY WARRANTY; without even the implied warranty of       
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        
       GNU General Public License for more details.                            You should have received a copy of the GNU General Public License    
       along with this program; if not, write to the Free Software          
       Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
       */
    /*======================================================================

    Edit the lines below *

    Both *nix and Windows directives are present. Default is *nix.
    If you are running Phpauction under Windows comment the first line
    of each couple, uncomment the second and edit it to reflect you box
    charactaristics.
    Note: windows slash (\) must be preceeded by another \ for PHP to read
    the path correctly.

    ======================================================================*/
    $SITE_NAME = "YOUR SITE NAME";
    $SITE_URL  = "http://172.26.0.4/phpauction/"; //Requires ending slash

    $COOKIE_PREFIX = "PHPAUCTION";
    $LOGGED_IN_COOKIE = $COOKIE_PREFIX."_LOGGED_IN";
    $LOGGED_IN_NICK = $COOKIE_PREFIX."NICK_LOGGED_IN";

    //-- Activate login box
    //-- 1 means login box is shown in the right column in the home page
    //-- 0 means login box is not shown
    $LOGIN_BOX = 1;
    //-- Activate News box
    //-- 1 means News box is shown in the right column in the home page
    //-- 0 means News box is not shown
    $NEWS_BOX = 1;
    $NEWS_TO_SHOW = 5; // Number of news you want to show in the NEWS column


    /*========================================================================================
    MONEY FORNATTING OPTIONS

    You can choose between:

    $MONEY_FORMAT = 1 => US notation:  1,500.00
    $MONEY_FORMAT = 2 => NON US notation (Europe style) 1.500,00

    and also define the number of decimal digits you want to be shown

    $MONEY_DECIMALS = 2; (2 is the default)

    and the position of the currency symbol:

    $MONEY_SYMBOL_POS = "R" => the currency symbol will be displayed AFTER the amount
    $MONEY_SYMBOL_POS = "L" => the currency symbol will be displayed BEFORE the amount
    =========================================================================================*/

    $MONEY_FORMAT  = 1;
    $MONEY_DECIMALS  = 2;
    $MONEY_SYMBOL_POS = "L";

       //-- This is the directory where passwd.inc.php file resides - requires ending slash
      
       $include_path = "./includes/"; 
       #$include_path = "C:\\some\\path\\to\\includes\\"; 
       //-- This is the directory where users pictures will be uploaded - requires ending slash
       //-- Under Windows use something like C:\\path\\to\\you\\uploaddir\\   $image_upload_path = "/var/www/phpauction/uploaded/"; 
       #$image_upload_path = "C:\\some\\path\\to\\uploaded\\"; 
       $uploaded_path = "uploaded/"; 
       #$uploaded_path = "uploaded\\"; 
       //--
       $MAX_UPLOAD_SIZE = 100000;

    //-- This string is added to passwords before generating the MD5 hash
    //-- Be sure to never change it after the firt set up or 
    //-- your users passwords will not work

    $MD5_PREFIX = "put_here_along_and_unpredictable_string";



    //-- Wether or not you want to show the acceptance text contained in
    //-- acceptance.inc.php in users registration page $SHOW_ACCEPTANCE_TEXT = 1;


       /*
       This is the log file generated by cron.php - insert the complete
       file name (including the absolute path).
       If you don't want to generate a log file for cron activity simply
       leave this line commented.
       */   #$logFileName = "/var/www/auctions/logs/cron.log"; 
       #$logFileName = "C:\\path\\to\cron.log";  /*
    Set this to TRUE if you want cron to generates HTML output
    BESIDES the cron file declared above. cron.php cannot generates
    only HTML output.
    */
       $cronScriptHTMLOutput = FALSE;
       $expireAuction = 60*60*24*30; // time of auction expiration (in seconds)
       $sessionLifeTime = 60*60*24*2; // time of a user session lifetime  //-- some constants  $err_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"2\" COLOR=red>";
      $std_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"2\">";
      $sml_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"1\">";
      $smlnav_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"1\" COLOR=white>";
      $tlt_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"4\">";
      $tlt2_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"3\">";
      $usr_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"4\" COLOR=\"#F6AF17\">";
      $nav_font = "<FONT FACE=\"Verdana,Arial,Helvetica\" SIZE=\"2\" COLOR=\"#FFFFFF\">";  /*======================================================================
       *   *
       * Don't edit the code below unless you really know what you are doing  *
       *   *          
       ======================================================================*/ //--
      if(strpos($PHP_SELF,"admin/")){
       $password_file = "../".$include_path."passwd.inc.php";
      }else{
       $password_file = $include_path."passwd.inc.php";
      }
      
      
      
      //-- Site administrator's email  if(strpos($PHP_SELF,"admin/")){
       include("../includes/adminmail.inc.php");
      }else{
       include("./includes/adminmail.inc.php");
      }  if(strpos($PHP_SELF,"admin/")){
       include("../includes/currency.inc.php");
      }else{
       include("./includes/currency.inc.php");
      }
      include($password_file);  //-- Database connection  mysql_pconnect($DbHost,$DbUser,$DbPassword)
       or die("Database access error. Please contact the site administrator.");
      mysql_select_db($DbDatabase);
      //-- sessions support  if(strpos($PHP_SELF,"admin/")){
       include("../includes/sessions.inc.php");
      }else{
       include("./includes/sessions.inc.php");
      }?>
      

  13.   

    install.php安装文件也贴在下面,以供参考。
    PHPAuction Installation Quick Start:
    1. Download PhpAuction archive from the phpauction.org download page
    http://www.phpauction.org/html/download.phpor from the CVS tarball
    http://cvs.sourceforge.net/cvstarballs/phpauction-cvsroot.tar.gz2. Extract or unzip the files the folder on your web server on which you
    want to place PHPAuction: tar -xzf phpauction.[version].tar.gz If you have downloaded the SourceForge CVS Tarball, you must run an
    additional command to get rid of the ,v's:
    cvs -d /my/home/directory/phpauction checkout phpauction3. Edit the following configuration files:a. Edit includes\config.inc.php and follow the instructions you find there to
    customize your installation.b. Edit includes\passwd.inc.php to fit your MySQL configuration.
    4. For the administrative area to function, certain files in the /includes 
    directory must be writable by the web server process.  
    In Linux, set these files to writable using chmod or via ftp:

    adminmail.inc.php
    categories_select_box.inc.php
    countries.inc.php
    currency.inc.php5. Create and populate the MySQL database: a. If you have shell access to your web server, login and create the
    database: shell> mysqladmin create yourdatabasename Verify that you can access this  new database:

    shell> mysql -h hostname -u username -p yourdatabasename  Once you are successfully logged into your mySQL database, you must then
    populate the database by coping the /sql/dump.sql file into the database: 

    shell> mysql -h hostname -u username -p databasename < dump.sql This will run a set of SQL queries on your database and fill the database with data. 
    You should receive a successful response. 
    Your database is now populated and the and PhpAuction is now ready for use.   With shell access, you can check to check if the tables have been
    successfully created, you can list them by using the command 
    mysqlshow:
    mysqlshow databasename b. If you use phpMyAdmin to access MySQL:
    Copy the dump.sql file and paste the contents inside the "Run SQL query/queries on 
    database" field box in the database.
    This will display the tables and the variables needed for PhpAuction to run correctly. 
    For more information see the phpMyAdmin documentation. *** Note - If your database returned an error or several errors, try running a 
    small chunk on the database instead of the entire query. 
    This sometimes solves common database error problems. 
    *** c. If you do not have shell access, you must get the system administrator
    to perform the above steps.6. Create a cron job or devise another method to ensure that the page
    /cron.php gets executed periodically.  This page will close auctions,
    notify bidders, etc.  In Linux, you can create a file
    /etc/cron.daily/phpauction.cron with these contents:

    #!/bin/sh
    lynx -dump /dev/null http://www.mydomain.com/phpauction/cron.php *** Note: if you have PHP installde as a module the above one is the only way
    to run cron. If have (or also have) PHP installed as a CGI you can substitute
    the lynx call aove with the following:

    PHP /absolute/path/to/cron.php

    Of course the path to cron.php will depend on where you did install phpauction.
    Be sure to give cron.php permission to be executable.This concludes the installation of PhpAuction! 
    If you have any problems please check the troubleshooting file or the online help located 
    at phpauction.org.   *********************************************************************************************
    NOTE: an installation script is planned to be developed as soon as possible. Since then please
    be patient and configure phpauction manually.
    *********************************************************************************************
      

  14.   

    修改了配置文件之后是否重启了apache服务器?