vb kgen help

netmatrix

New Member
I downloaded the newest version of the vb 3.8 on here, and I have never installed forum software before. I'm lost on how to run the keygen that comes with the software. Can anyone help me with this? Thank you.
 

netmatrix

New Member
I tried doing that and it didn't work for me. I think I need to fix some settings on my server, and try something else. Sadly my server was broken into, and a lot of files were deleted so I have to learn how to install the software myself. Either way when I upload the upload folder it asks me for the customer id which I don't have one.
 

netmatrix

New Member
Well I have 2 problems now. The first one is when I go to do the www.website.com/install/install.php I get this error

Parse error: syntax error, unexpected T_STRING in /home/whozn0/public_html/forum/includes/config.php on line 26

That is something to do with the config.php file which I don't think I'm editing correctly.

When I go to do the keygen this is the error I get.

Not Found
The requested URL /keygen.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at whoznext.net Port 80

I don't know what I'm doing wrong, but for some reason I can't get the VB software to work for me. I've never installed VB software myself so I'm completely lost right now.

Plus on my server after it was broke into there was files removed, and I'm still working on which files need to be replaced and removed. I'm really sorry I was so vague when I made that reply. Hopefully those error messages can help a little bit with the problem that I'm having.
 

Grinderhand

New Member
Try this: rename your current index.php in your forum root to something else, then rename keygen.php to index.php and just browse to http://www.yoursite.com and see if that helps.

As for the config.php error, did you change the line:

Code:
$config['Database']['dbtype'] = 'mysql';

to something else? If so, change them back and see if that helps.
 

netmatrix

New Member
I nevver changed that line, but I'm getting this error now.

Parse error: syntax error, unexpected T_STRING in /home/whozn0/public_html/forum/includes/config.php on line 21
Parse error: syntax error, unexpected T_STRING in /home/whozn0/public_html/forum/includes/config.php on line 19

It's setting the config.php is the only problem I'm having now.
 

Grinderhand

New Member
Only the lines in red should be changed:

Code:
	//	****** DATABASE TYPE ******
	//	This is the type of the database server on which your vBulletin database will be located.
	//	Valid options are mysql and mysqli, for slave support add _slave.  Try to use mysqli if you are using PHP 5 and MySQL 4.1+
	// for slave options just append _slave to your preferred database type.
$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'] = '[color=Red]forum[/color]';

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

	//	****** 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'] = '[color=Red][email protected][/color]';

	//	****** 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'] = '[color=Red]root[/color]';
$config['MasterServer']['password'] = '[color=Red]password[/color]';

	//	****** 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'] = '[color=Red]admincp[/color]';
$config['Misc']['modcpdir'] = '[color=Red]modcp[/color]';

	//	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  - to use includes/datastore/datastore_cache.php
	// vB_Datastore_APC - to use APC
	// vB_Datastore_XCache - to use XCache
	// vB_Datastore_Memcached - to use a Memcache server, more configuration below
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

	// ******** DATASTORE PREFIX ******
	// If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
	// than one set of forums installed on your host, you *may* need to use a prefix
	// so that they do not try to use the same variable within the cache.
	// This works in a similar manner to the database table prefix.
// $config['Datastore']['prefix'] = '';

	// 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';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]		= '127.0.0.1';
$config['Misc']['memcacheport'][$i]			= 11211;
$config['Misc']['memcachepersistent'][$i]	= true;
$config['Misc']['memcacheweight'][$i]		= 1;
$config['Misc']['memcachetimeout'][$i]		= 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/

// ****** 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'] = '';

// Image Processing Options
	// Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.
$config['Misc']['maxwidth'] = 2592;
$config['Misc']['maxheight'] = 1944;

Make sure the lines in red match your forum and database details. Some lines are optional, but these are the most important to get you up and running.
 

netmatrix

New Member
Here is the database I created. I'm completely lost on the TABLE PREFIX and DSN

whozn0_vb1

Users in vb1
whozn0_admin (Privileges: ALL PRIVILEGES)

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:whozn0_vb1:localhost",
"whozn0_admin","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "whozn0_admin",
"<PASSWORD HERE>") or die('Cannot connect to the database because: ' . mysql_error());
mysql_select_db ("whozn0_vb1");
 

Grinderhand

New Member
If you can pull up the database in phpMyAdmin, you'll see the prefix on every table. I'm assuming you know the db user password. You shouldn't have to change the DSN from localhost.
 

netmatrix

New Member
I don't have the phpMyAdmin option in the control panel. I don't even see a way to get into the myadmin part to fully see the database. I might need to call the host and see what information they can give me.
 

netmatrix

New Member
My database is empty. I called the host, and they told me I have to manual set everything up that nothing is automatic. Now I'm beyond confused with it. lol. I can get everything figured out except the table prefix. I'm getting the error on line 24 now. So I think this is going to take a while for me to figure out. I can get phpbb working just fine, but having a hard time learning the vb software.
 

netmatrix

New Member
Ok I finally got everything working correctly, and was able to get the keygen to open. Now it tells me that I have to make all files writable by chmod 777 This part I have no idea how to do. I'm using cuteftp to upload all the files. Thank you once again for all the help.
 

Grinderhand

New Member
If you can get into cPanel's file manager, you'll see how to do it. 777 is writable for directories, 666 is writable for files. Whatever you do, when you get done, CHMOD all files back to 644 and directories back to 755 - leaving them writable is a security risk. And don't forget to delete install/install.php when you're done. The installation procedure will not finish until you do.

There's also a way to CHMOD the files in FTP, but I don't run CuteFTP, so maybe someone who does can advise on that.
 

netmatrix

New Member
Grinderhand said:
If you can get into cPanel's file manager, you'll see how to do it. 777 is writable for directories, 666 is writable for files. Whatever you do, when you get done, CHMOD all files back to 644 and directories back to 755 - leaving them writable is a security risk. And don't forget to delete install/install.php when you're done. The installation procedure will not finish until you do.

There's also a way to CHMOD the files in FTP, but I don't run CuteFTP, so maybe someone who does can advise on that.

Yeah because I would have to go through each file and directory individually which will take quite a bit of time to do. Maybe I can find someone that will be able to quide me in the right direction as far as cuteftp goes. In the cpanel for the server I'm on you have to select each file seperately and do it that way.

Thank you for all the help that you gave me with the problem I was having.
 

Grinderhand

New Member
It's much easier through cPanel. Put a check mark next to all the directories, then click "Change Permissions" at the top and change to 0777 and this will change all the directories at once. Same with changing files to 0666. I don't remember having to do this when I installed, so you might want to read the manual again.
 

netmatrix

New Member
YES the board is installed now, and working perfectly. thank you for all the help you offered me Grinderhand. I do fully thank you for this.
 
Top