Làm sao để cài đặt thành công đây !!!

samurai2

Mr & Ms Pac-Man
Tham gia ngày
28/12/06
Bài viết
209
Reaction score
0
- Mình đã sửa 2 dòng
// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'tên admin';
$config['MasterServer']['password'] = 'pass';
trong cái Inclue > config.php của forum VBB 354 sau đó Upload thành công và nhập đường dẫn
thì nó báo:
Warning: vB_Registry::include() [function.vB-Registry-include]: Unable to access /www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/config.php in /www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/class_core.php on line 2303

Warning: vB_Registry::include(/www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/config.php) [function.vB-Registry-include]: failed to open stream: No such file or directory in /www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/class_core.php on line 2303

Warning: vB_Registry::include() [function.vB-Registry-include]: Unable to access /www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/config.php in /www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/class_core.php on line 2303

Warning: vB_Registry::include(/www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/config.php) [function.vB-Registry-include]: failed to open stream: No such file or directory in /www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/class_core.php on line 2303

Warning: vB_Registry::include() [function.include]: Failed opening '/www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/config.php' for inclusion (include_path='.:/usr/share/php') in /www/110mb.com/s/a/m/u/r/a/i/2/samurai2/htdocs/upload/includes/class_core.php on line 2303


Configuration: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php
host 110mb theo mình bít là nó đủ sức để làm 1 forum VBB vì hỗ trợ dc FTP + MySQL + PHP nhưng tại sao vẫn ko tiến hành cài đặt dc ??? :o
- Mình mắc sai phạm nào sao ???
- Xin cho cách khắc phục hoặc 1 host free khác để có thể làm 1 forum VBB hoàn thiện :whew:
- Thú thật từ trước giờ mình chưa làm dc 1 web nào dc hết cả. Đây là lần đâu tiên làm web nên ko bít có vấn đền gì sai xót xin chĩ rõ tận tình cám ơn đã xem qua bài viết.
 
Thế đã CHMOD lại chưa , với lại trong file config cũng phải có user / pass của MySQL + tên DB nữa
 
Thế đã CHMOD lại chưa , với lại trong file config cũng phải có user / pass của MySQL + tên DB nữa

CHMOD là gì vậy ạ ?
Mình chĩ bít làm theo các cách trên vừa nói đó là Edit 2 dòng user & pass trong cái Config rồi Upload lên tiến hành chạy đường dẫn để cài đặt thôi chứ chưa bít làm gì nữa cả. Bạn có thể chĩ rõ hơn ko ?
<br>
___________________________
<br>
- Mình đã sửa 2 dòng
// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'tên admin';
$config['MasterServer']['password'] = 'pass';
trong cái Include > Config.php ròi.
- Giờ ta cần sửa gì nữa để có thể tiến hành cài đặt một cách bình thường ?
- Sory vì ko có button Edit bài nên làm 1 chập 2 bài ...
 
Mã:
// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'tên admin';
$config['MasterServer']['password'] = 'pass';
Cái này phải sửa là tên user database bạn tạo ra trong hostcp .

Bạn cần phải sửa thêm database name và thêm host name ( cài này thông thường ít khi phải sửa , trừ một số host như byethost )
 
Bạn cần phải sửa thêm database name và thêm host name
cái đó nằm trong mục nào của file nào vậy bạn :whew:
 
À , cái lỗi kia của bạn đơn giản là vì no ko tìm thấy file config.php , mời bạn hãy chuyển file config.php.new thành config.php

Còn sửa mấy cái đó dĩ nhiên nằm ở file config.php , database name thì bắt buộc phải sửa , còn host name thì thông thường là localhost !
 
mời bạn hãy chuyển file config.php.new thành config.php

Còn sửa mấy cái đó dĩ nhiên nằm ở file config.php , database name thì bắt buộc phải sửa , còn host name thì thông thường là localhost !

Làm sao để chuyển php.new => php ?
Mình đã rename tất cả rồi Upload lên một lượt rồi mà nó vẩn báo như vậy :-/ Mình có thể xóa nó rồi Upload lên bằng một file khác không vậy ?
database name
=> cái này mình đăng kí là 110mb thì sửa làm sao hả bạn ??
Mình quá N00P nên hỏi hơi nhìu có gì các bạn thông cãm ::)
 
Làm sao để chuyển php.new => php ?
Mình đã rename tất cả rồi Upload lên một lượt rồi mà nó vẩn báo như vậy Mình có thể xóa nó rồi Upload lên bằng một file khác không vậy ?
Cái này thì bạn dùng windows explore sữa file bình thường(rename) rồi up lên host.

=> cái này mình đăng kí là 110mb thì sửa làm sao hả bạn ??
Mình quá N00P nên hỏi hơi nhìu có gì các bạn thông cãm
Mở mail ra xem nó đưa database tên gì bạn điền y như vậy vào.Thanks
 
Cái này thì bạn dùng windows explore sữa file bình thường(rename) rồi up lên host.


Mở mail ra xem nó đưa database tên gì bạn điền y như vậy vào.Thanks

Nếu đặt giả sử như bạn đã đăng kí ở 110mb.com thì bạn làm những gì ròi Upload lên vậy, bạn có thể sent cho mình 1 cái text văn bản nội dung chĩnh sửa cái gì trước rồi Upload lên hok ???
:whew: Làm ơn chĩ mình cách làm forum VBB với =(( mình đã đọc cách làm ròi mà vẫn ko làm dc ......... huhuhuhuu tôi thật là vô dụng.
 
:| Bạn click vào file cần đổi tên , bấm F2 , hoặc click chuột phải vào file đó , chọn rename , bỏ phần new đi --> trở thành file config.php :|
Để up vbb lên host , bạn có thể xài các trình ftp như cuteftp , flashfxp ... Thông tin về ftp host nó sẽ gửi về cho bạn .
 
Mãi mới vào Install dc =(( nhưng lại bị hạ gục bằng bước cài đặt thứ 2 .. híc ...
Mọi ngừoi xem qua ròi cho mình ý kiến về lỗi sau:
8833163.jpg

Cám ơn đã xem qua :whew:
 
xem lại user va` data có đúng chưa, chỉnh lại trong config ấy
 
Thông thường , có những host chỉ hỗ trợ php mà ko hỗ trợ MySQL , Host này của bạn bạn có chắc chắn hỗ trợ sql ko !

nếu chắc chắn là hỗ trợ SQL , thì bạn hãy ào trong cpanel điều khiển host , tạo 1 user mới và 1 db mới (thông thường các host thường phải làm như vậy :;) ) , sau đó khai báo những cái bạn vừa tạo vào file config.php
 
::( mất cả tuần học các bước làm web tự nhiên hôm nay định cài đặt thì nó báo như vậy nè ... híc...
47cup93.jpg

có ai bít tại sao ko vậy =((
========================================================
Tiện thể cho hỏi luôn
<?php
/*======================================================================*\
|| #############################[DGT-TEAM]############################# ||
|| # vBulletin 3.5.4
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ©2000-2006 Jelsoft Enterprises Ltd. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #############################[DGT-TEAM]############################# ||
\*======================================================================*/

/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
| If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/

// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['dbname'] = 'samurai2_user';

// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';

// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
$config['Database']['technicalemail'] = '[email protected]';

// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to "true" disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = false;



// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'samurai2_user';
$config['MasterServer']['password'] = 'password';

// ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
// This option allows you to turn persistent connections to MySQL on or off.
// The difference in performance is negligible for all but the largest boards.
// If you are unsure what this should be, leave it off. (0 = off; 1 = on)
$config['MasterServer']['usepconnect'] = 0;



// ****** SLAVE DATABASE CONFIGURATION ******
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config['SlaveServer']['servername'] = '';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = '';
$config['SlaveServer']['password'] = '';
$config['SlaveServer']['usepconnect'] = 0;



// ****** PATH TO ADMIN & MODERATOR CONTROL PANELS ******
// This setting allows you to change the name of the folders that the admin and
// moderator control panels reside in. You may wish to do this for security purposes.
// Please note that if you change the name of the directory here, you will still need
// to manually change the name of the directory on the server.
$config['Misc']['admincpdir'] = 'admincp';
$config['Misc']['modcpdir'] = 'modcp';

// Prefix that all vBulletin cookies will have
// Keep this short and only use numbers and letters, i.e. 1-9 and a-Z
$config['Misc']['cookieprefix'] = 'bb';

// ******** FULL PATH TO FORUMS DIRECTORY ******
// On a few systems it may be necessary to input the full path to your forums directory
// for vBulletin to function normally. You can ignore this setting unless vBulletin
// tells you to fill this in. Do not include a trailing slash!
// Example Unix:
// $config['Misc']['forumpath'] = '/home/users/public_html/forums';
// Example Win32:
// $config['Misc']['forumpath'] = 'c:\program files\apache group\apache\htdocs\vb3';
$config['Misc']['forumpath'] = '';



// ****** USERS WITH ADMIN LOG VIEWING PERMISSIONS ******
// The users specified here will be allowed to view the admin log in the control panel.
// Users must be specified by *ID number* here. To obtain a user's ID number,
// view their profile via the control panel. If this is a new installation, leave
// the first user created will have a user ID of 1. Seperate each userid with a comma.
$config['SpecialUsers']['canviewadminlog'] = '1';

// ****** USERS WITH ADMIN LOG PRUNING PERMISSIONS ******
// The users specified here will be allowed to remove ("prune") entries from the admin
// log. See the above entry for more information on the format.
$config['SpecialUsers']['canpruneadminlog'] = '1';

// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '';

// ****** UNDELETABLE / UNALTERABLE USERS ******
// The users specified here will not be deletable or alterable from the control panel by any users.
// To specify more than one user, separate userids with commas.
$config['SpecialUsers']['undeletableusers'] = '';

// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1';

// ****** DATASTORE CACHE CONFIGURATION *****
// Here you can configure different methods for caching datastore items.
// vB_Datastore_Filecache - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
// vB_Datastore_Memcached - for using a Memcache server
// It is also necessary to specify the hostname or IP address and the port the server is listening on
// $config['Datastore']['class'] = 'vB_Datastore_Memcached';
// $config['Misc']['memcacheserver'] = '127.0.0.1';
// $config['Misc']['memcacheport'] = '11211';

// ****** The following options are only needed in special cases ******

// ****** MySQLI OPTIONS *****
// When using MySQL 4.1+, MySQLi should be used to connect to the database.
// If you need to set the default connection charset because your database
// is using a charset other than latin1, you can set the charset here.
// If you don't set the charset to be the same as your database, you
// may receive collation errors. Ignore this setting unless you are sure
// you need to use it.
// $config['Mysqli']['charset'] = 'utf8';

// Optionally, PHP can be instructed to set connection parameters by reading from the
// file named in 'ini_file'. Please use a full path to the file.
// Example:
// $config['Mysqli']['ini_file'] = 'c:\program files\MySQL\MySQL Server 4.1\my.ini';
$config['Mysqli']['ini_file'] = '';
/*======================================================================*\
|| #############################[DGT-TEAM]############################# ||
|| # CVS: $RCSfile: config.php.new,v $ - $Revision: 1.31.2.3 $
|| #############################[DGT-TEAM]############################# ||
\*======================================================================*/
?>
và hình minh chứng:
33w34p1.jpg

nhưng khi đến bước này, điền đầy đủ : Như hướng dẩn để connect DB của host110mb.com
phpminiadmin-1.gif

thì nó báo sai gì đó và ko cho connect.
 
Mí bác cho hỏi 1 câu ngoài lề về cái host 110mb 1 chút , khi tui up toàn bộ dữ liệu lên rùi , nhưng khi edit file config.php thì chả thấy nội dung cấu hình database đâu cả , chỉ hiện ra 1 bảng trắng tinh ko có gì hết , trong khi mí file kia thì khi edit lại thấy source , còn cái này thì lại ko mới chết chứ >< . Mặc dù đã bấm vào nút " Source " nhưng cái source cấu hình của nó vẫn ko hiện ra , vậy là sao hả mí bác ? T_____T
 
Đối với các host free thì xem lại cái này :
Mã:
// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;
Nó thường ko phải là localhost .
nhưng khi edit file config.php thì chả thấy nội dung cấu hình database đâu cả , chỉ hiện ra 1 bảng trắng tinh ko có gì hết , trong khi mí file kia thì khi edit lại thấy source , còn cái này thì lại ko mới chết chứ >< . Mặc dù đã bấm vào nút " Source " nhưng cái source cấu hình của nó vẫn ko hiện ra , vậy là sao hả mí bác ? T_____T
Bạn edit như thế nào ? Bạn phải edit bằng các trình ftp chứ .
 
Bạn edit như thế nào ? Bạn phải edit bằng các trình ftp chứ .

Mình edit bằng cách vào thẳng host , sau đó tìm file mún edit , nhấp vào nút " Edit " và thế là 1 cừa sổ giống như word hiện ra ấy , thường thì nó phải hiện ra nội dung source trong đó , mình toàn edit như vậy và cũng chạy dc install mí lần rùi đó . Chỉ có điều ko hiểu sao cái host 1100mb thì lại bị như vậy , chả hiểu thía nèo ???
Ủa mà edit bằng FTP thì edit như thía nèo dzị bác ?
 
click chuột phải vào file đó , chọn edit , sau khi edit xong thì nó tự động upload lên cho mình thui .
 
Nếu theo mình nhớ thì ban đầu cái file config đó bao giờ nó cũng tên là config.php.new chứ ko phải config.php đâu , tìm xem có file nào như thế ko ?

Bằng ko thì edit tại máy cho nó nhanh , rùi up lên :D
 
Xin làm ơn hướng dẫn kĩ càng cho em khúc này với, khúc này em còn mơ hồ (dể bị điên) quá cho nên em ko bít làm sao để cái h0st của mình có thể c0nnect dc với DB và Install cho hoàn hão.
33w34p1.jpg

Chú thích trước trong bài em sẽ hỏi:
DB name ( tên DB )
user ( tên user trong CPanel )
Tên đăng kí host.
Các anh xem qua ròi cho ý kiến nhé, cám ơn.
// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['dbname'] = 'ở đây có phãi là ghi DB name hok vậy ?';
// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to "true" disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = ta có cần đổi lại thành true hay để nguyên là false;
// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost ( cái này luôn đối với web free à, vậy nếu web khác thì lam sao để bít ? )';
$config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'cái này là tên của user hay là tên đăng kí host hay là tên DB name. ?';
$config['MasterServer']['password'] = 'password';
// ****** SLAVE DATABASE CONFIGURATION ******
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config['SlaveServer']['servername'] = 'ở đây ta điền gì ???';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = 'cái này là tên của user hay là tên đăng kí host hay là tên DB name. ?';
$config['SlaveServer']['password'] = '';
$config['SlaveServer']['usepconnect'] = 0;
Xin chĩ dẫn cụ thể dùm em nha cám ơn nhìu lắm.
 
Back
Top