The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Tutorial: How to run vBulletin onto your PC
This tutorial is [high]vBulletin.org and cPublisher.com copyrighted[/high]. All rights reserved. Please ask permission in this thread to copy the tutorial. If granted, post a link that points to this page. This tutorial will teach you how to install Apache, PHP and MySQL binaries in win2K and winXP, in order to install vBulletin directly onto your PC. It's useful because you can run your own board on your PC, to test code hacks, updates, etc before you put them to your live board. [high]UPDATES:[/high] To receive an email when this tutorial is updated, click here. [high]TOOLS NEEDED[/high] - PHP windows .zip package - 4.4MB (for more info, visit www.php.net) - Apache Server no_ssl .msi binary - 3.2MB (for more info, visit www.apache.org) - MySQL windows installation files - 13.3MB (for more info, visit www.mysql.com) [high]NOTE:[/high] The have been some problems with the php4ts.dll library. If you cannot restart your Apache server, download this file and replace your current one, or download latest PHP snap. [high]PC PREPARATION[/high] Create a folder called Network in your local disk C: with the following 2 sub-folders: |--[C: |----[Network |------[MySQL |------[Php [high]PHP Binary INSTALLATION[/high] 01. Extract the contents of PHP .zip file to C:\Network\Php folder. 02. Copy the 'C:\Network\Php\php.ini-dist' file to your [high]%SYSTEMROOT%[/high] directory (C:\WINDOWS for winXP; C:\WINNT for win2K). In %SYSTEMROOT% folder, rename php.ini-dist to 'php.ini' and open it. 03. In php.ini, you will need to set the 'doc_root' to point to your web server(apache) document_root, like below: ; The root of the PHP pages, used only if nonempty. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root ; if you are running php as a CGI under any web server (other than IIS) ; see documentation for security issues. The alternate is to use the ; cgi.force_redirect configuration below doc_root = "c:\network\apache2\htdocs" 04. Still in php.ini, change the 'extension_dir' setting to point to your php-install-dir, like below: ; Directory in which the loadable extensions (modules) reside. extension_dir = "c:\network\php" 05. Still in php.ini, change the 'mail function' setting to point to your ISP, like below: [mail function] ; For Win32 only. SMTP = smtp.myisp.com ; For Win32 only. sendmail_from = johndoe@myisp.com 06. Save and close the php.ini file. 07. In C:\Network\Php folder, find php4ts.dll file. Move it to the [high]%SYSTEMROOT%\system32[/high] folder. NOTE: Make sure you MOVE that file, DO NOT copy it only. [high]Apache Server INSTALLATION[/high] 01. Run the .msi file. Enter the value [high]localhost[/high] for 'Network Domain' and 'Server Name'. IMPORTANT: Make sure you select a custom setup and install Apache to [high]C:\Network[/high], not to 'C:\Program Files\Apache Group'. It will create automatically the 'Apache2' folder for you. There is no need to install the documentation, it is available online. 02. Go to your Apache conf file (C:\Network\Apache2\conf\httpd.conf) and find: #LoadModule ssl_module modules/mod_ssl.so BELOW this, add: LoadModule php4_module c:/network/php/sapi/php4apache2.dll 03. Still in httpd.conf, find: AddType application/x-tar .tgz BELOW this, add: AddType application/x-httpd-php .php 04. Still in httpd.conf, set the files that Apache will serve if a directory is requested. Find: DirectoryIndex index.html index.html.var REPLACE it with: DirectoryIndex index.php index.html index.php.var index.html.var 05. Save and close the httpd.conf file. 06. Restart Apache Server. [high]MySQL Binary INSTALLATION[/high] 01. Extract the .zip binary to a temp folder. Run the Setup.exe file. NOTE: Make sure you browse to [high]C:\Network\MySQL[/high] folder, when you select the install location. 02. Go to C:\Network\MySQL\bin and run the 'winmysqladmin.exe' file. The WinMySQLadmin 1.3 database manager will start. First, it will ask you to enter a new username and password. Enter the following information: Username: root Password: password Click on OK. 03. Go to Go to C:\Network\MySQL\bin\data folder and create a new folder called vbulletin. That is your database. 04. Open a CMD window and change it's location to your current MySQL /bin folder. 05. Set your Users: \bin> mysql --user=root mysql mysql> GRANT ALL PRIVILEGES ON *.* TO monty@localhost -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION; mysql> GRANT ALL PRIVILEGES ON *.* TO monty@'%' -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION; mysql> GRANT RELOAD,PROCESS ON *.* TO admin@localhost; mysql> GRANT USAGE ON *.* TO dummy@localhost; NOTE: There is no need to do all GRANT 3 statements, the first one is more then enough. The other two were presented to you so you learn mode about the GRANT/REVOKE commands. These GRANT statements set up three new users: monty A full superuser who can connect to the server from anywhere, but who must use a password 'some_pass' to do so. Note that we must issue GRANT statements for both monty@localhost and monty@'%'. If we don't add the entry with localhost, the anonymous user entry for localhost that is created by mysql_install_db will take precedence when we connect from the local host, because it has a more specific Host field value and thus comes earlier in the user table sort order. admin A user who can connect from localhost without a password and who is granted the RELOAD and PROCESS administrative privileges. This allows the user to execute the mysqladmin reload, mysqladmin refresh, and mysqladmin flush-* commands, as well as mysqladmin processlist . No database-related privileges are granted. (They can be granted later by issuing additional GRANT statements.) dummy A user who can connect without a password, but only from the local host. The global privileges are all set to 'N'?the USAGE privilege type allows you to create a user with no privileges. It is assumed that you will grant database-specific privileges later. [high]FINAL STEPS[/high] 01. Go to Start > Programs > Startup Delete the 'Monitor Apache Servers' and 'MySQL Admin' tools. They waist your resources for nothing and are not needed. I personally moved the MySQL Admin tool to another folder, in case I want to create later another database. 02. The C:\Network\Apache2\htdocs folder is your web root. Create there a sub-folder called 'forum'. You know the rest of VB installation drill... Once you are done, call your forum index.php at: http://localhost/forum NOTE: If you experience any cookie problems, add this line to your vBulletin config.php file: define('USE_COOKIE_WORKAROUND', 1); That's all. No more uploads needed to test the hacks. Please post here if you were successful with the localhost installation. It works perfectly for me on winXP. ------------------------------------------------------ BACKUP-RESTORE ON localhost (See also Velocd's tutorial) [high]TOOLS NEEDED[/high] - Open Command Window PowerToy - 0.5MB (for more info, visit Microsoft site) NOTE: This PowerToy adds an "Open Command Window Here" context menu option on file system folders, giving you a quick way to open a command window (cmd.exe) pointing at the selected folder. [high]BACKUP PROCEDURE[/high] 01. Create a new folder, called 'C:\sqlback'. 02. Right-click on the [high]C:\Network\MySQL\bin[/high] folder and select 'Open Command Window Here'. A CMD window will open. NOTE: You can also manually browse to the folder. Click on Start > Run > Type [high]cmd[/high] in the 'Open:' area and hit Enter. At the CMD prompt, type [high]C:[/high] and hit Enter. Type [high]cd network[/high] and hit Enter. Type [high]cd mysql[/high] and hit Enter. Type [high]cd bin[/high] and hit Enter. 03. At the prompt, type: mysqldump --opt -u[high]USERNAME[/high] -p[high]PASSWORD[/high] [high]DATABASENAME[/high] > c:/sqlback/bk060502.sql NOTE: Change the highlighted values with your own. When done, you will see the command prompt. 060502: month date year (easier to remember the last date you backup your database). Change it with the corresponding date of your actual backup. [high]RESTORE PROCEDURE[/high] This is useful if you want to import onto your localhost the live forum database. 01. Right-click on the [high]C:\Network\MySQL\bin[/high] folder and select 'Open Command Window Here'. 02. At the prompt, type: mysql -u[high]USERNAME[/high] -p[high]PASSWORD[/high] [high]DATABASENAME[/high] < c:/sqlback/bk060502.sql NOTE: Change the highlighted values with your own. When done, you will see the command prompt. ------------------------------------------------------ [high]OTHER TUTORIALS[/high] - How to make a reliable database backup - Upgrade your hacked board in less then 30 minutes |
#492
|
|||
|
|||
I'm new to this, obviously...So please bear with me a little here...
I have followed the instructions...I run the mysqladmin.exe & it doesn't ask for a password. I tried uninstalling & reinstalling both mysql & apache, as well as deleting the my.ini file & uninstallin/reinstalling both...Still no go... I tried the same again, only this time using the mysql configuration wizard dealio, and still no go! I'm getting a little frustrated with it & myself, as I normally don't have this many problems with things - especially when I'm following directions, line for line (I even copied it to a notepad file & printed it out so I can mark off what I've done!) Any *quick* help would be appreciated. However, please do not link me to a different tutorial that uses a different process - I would like to learn how to do this "the old fashioned way"...Even if it means I need to put a few mattresses outside my window so when my computer goes flying, it won't completely be ruined! *restarting* I'm crossing my fingers to hope this works this time... **Just noticed in the PHP zip file - there is both a php.ini-dist and a php.ini-recommended file...I've been using the dist file, as shown in the tutorial -- but would a switch to the "recommended" one have a huge difference?** |
#493
|
|||
|
|||
I'm just wondering (1) this will work with vBulletin 3.0.7 and (2) can I test hacks, and install skins while being OFFLINE?
|
#494
|
|||
|
|||
I found it was just so much easier to use a precompiled package. I used wamp server package. It has the PHP, MySQL, PHPMyAdmin, and Apache all rolled into one very easy windows installer. Took maybe 5 min to download and install (and it is totaly free).
I went into phpmyadmin and created a database. Then put the files that are for upload from the vb package inside a folder int he www section of the wamp file folder. Ran the vb install and la te da one sharply running test server/database/vb! |
#495
|
|||
|
|||
I Cant Go To That Link For The Apache Thing, Its Says I'm Forbidden On This Server :S. Any Suggestions?
|
#496
|
||||
|
||||
Quote:
However your web browser must be online (not neccesarily connected to the net) to access your index page. You are essentially creating a dummy server on your desktop or laptop. What you are actually doing is installing PHP and MySQL onto your own PC in order to install the vB software and any other PHP program. Then you can test your scripts and hacks without being connected to the Net. Note that once you have tried the hacks and they run properly, you need to upload the modified files upto your live server. Good luck |
#497
|
|||
|
|||
Thank You.
What Exactly Do I need To Download From Apache.org Because The Link On The First Post Of This THread Just Takes Me To The Apache.org Homepage :S |
#498
|
||||
|
||||
try the link in my earlier post https://vborg.vbsupport.ru/showpost....&postcount=481
It will save you time! |
#499
|
|||
|
|||
I've a little problem with MYSQL, hope somebody's able to help or has advice:
mySQL-help says this: I'd think, it must look like this if i want to create a database, right? But my mySQL looks like this : It's the same look if I'm clicking on my computer-name or on mySQL or on test ... So: What's wrong with it? Thx for help! |
#500
|
|||
|
|||
error
Quote:
|
#501
|
|||
|
|||
I got a cookie problem. When i login it says i'm logged in but then it just brings me to where i started and i have to login again. I added the notice to my config, still doesn't work...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|