2013-03-17 77 views
0

我開始使用joomla cms,無法連接joomla網站與我的wamp服務器數據庫,我發現每次出現這個錯誤... Serever error 這裏是我的配置文件,我想我的$ log_path是錯誤的 我的站點名稱:livesite 數據庫名稱:livesite如何在wamp服務器上連接joomla網站的外部數據庫

<?php 
class JConfig { 
    var $offline = '0'; 
    var $editor = 'tinymce'; 
    var $list_limit = '20'; 
    var $helpurl = 'http://help.joomla.org'; 
    var $debug = '0'; 
    var $debug_lang = '0'; 
    var $sef = '1'; 
    var $sef_rewrite = '1'; 
    var $sef_suffix = '0'; 
    var $feed_limit = '10'; 
    var $feed_email = 'author'; 
    var $secret = '6UmRx1LGrZq3Hr5X'; 
    var $gzip = '0'; 
    var $error_reporting = '-1'; 
    var $xmlrpc_server = '0'; 
    var $log_path = '/wamp/www/livesite/logs'; 
    var $tmp_path = '/wamp/www/livesite/tmp'; 
    var $live_site = ''; 
    var $force_ssl = '0'; 
    var $offset = '0'; 
    var $caching = '0'; 
    var $cachetime = '15'; 
    var $cache_handler = 'file'; 
    var $memcache_settings = array(); 
    var $ftp_enable = '0'; 
    var $ftp_host = ''; 
    var $ftp_port = ''; 
    var $ftp_user = ''; 
    var $ftp_pass = ''; 
    var $ftp_root = ''; 
    var $dbtype = 'mysql'; 
    var $host = 'localhost'; 
    var $user = 'root'; 
    var $db = 'livesite'; 
    var $dbprefix = 'table_prefix_'; 
    var $mailer = 'smtp'; 
    var $mailfrom = '[email protected]'; 
    var $fromname = 'SoftwareTop100'; 
    var $sendmail = '/usr/sbin/sendmail'; 
    var $smtpauth = '0'; 
    var $smtpsecure = 'none'; 
    var $smtpport = '25'; 
    var $smtpuser = ''; 
    var $smtppass = ''; 
    var $smtphost = 'localhost'; 
    var $MetaAuthor = '1'; 
    var $MetaTitle = '1'; 
    var $lifetime = '50'; 
    var $session_handler = 'database'; 
    var $password = ''; 
    var $sitename = 'livesite'; 
    var $MetaDesc = 'Lists, research and news about the software industry, including the top list of the world’s largest software companies.'; 
    var $MetaKeys = 'software, top software, applications, software companies, top, news, it companies, software industry, software news, it news, software jobs, jobs, software research, information, software information, list, forum, software forum'; 
    var $offline_message = 'This site is down for maintenance. Please check back again soon.'; 
} 
?> 
+0

$ log_path有不與DB有關,你需要檢查$ dbtype,$ host,$ user,$ db和$ password。無論如何,你得到的錯誤是什麼? – 2013-03-17 08:53:12

+0

先生我得到互聯網服務器錯誤,其實我必須改變我的網站joomla verion ..並無法與數據庫連接.... – Rango 2013-03-17 09:01:28

+0

@ user2123036檢查您的憑據加上日誌和臨時路徑正確設置或不..也檢查對於任何WHITESPACE偶然發生的 – swapnesh 2013-03-17 09:03:33

回答

0

假設你登錄憑據是正確的,試着用這一點,那麼,讓我知道 -

var $log_path = 'C:\\wamp\\www\\livesite\\logs'; 
var $tmp_path = 'C:\\wamp\\www\\livesite\\tmp'; 
+1

謝謝swapnesh它的作品.... :) – Rango 2013-03-17 09:24:39

相關問題