Code:
FIRST I'd like to say...Yes I know this guide has been already released but they all suck. =D
First download wampserver 2.0
Wamp Server 2.0
Pretty self explanatory. Leave all the files at "Default"...Doesn't really matter.
Then download a CMS. I used kakashirocks CMS.
Kakashiirocks CMS
- Link to the thread. -
Then when after you download put the CMS files in root files of your WWW folder in your wamp server folder
should be in your Program Files folder usually. Or wherever you keep your program file folder. Which is usually in: C:
C:\wamp\www <-- mine is that directory. Your directory doesn't have to be the exact same.
Then you should have ALL the files in there. Copy + Paste
Depending on your CMS. It might have multiple config files
in the www folder. Your CMS files might have "config2.php"
Open it.
It should look somewhat like this:
Code:
<?php
$host['naam'] = 'localhost'; // My host.
$host['gebruikersnaam'] = 'root'; // My database username.
$host['wachtwoord'] = 'root'; // My database password.
$host['databasenaam'] = 'odinms'; // My database name.
$db = mysql_connect($host['naam'], $host['gebruikersnaam'], $host['wachtwoord']) OR die ('Cant connect to the database');
mysql_select_db($host['databasenaam'], $db);
$serverip = "5.37.135.47"; //WAN IP , Or hamachi IP.
EXAMPLE
$loginport = "8484"; //Don't change
$sql_db = "odinms"; //DB Name
$sql_host = "127.0.0.1"; //DB Host
$sql_user = "root"; //DB User
$sql_pass = "root";
Then in the INCLUDES / inc folder there should be more config.php files. Just make sure they look the same as the top. It's pretty simple.
Then on the little wampserver icon. Left click on it. Go to PHP/PHP settings. Make sure short open tag is CHECKED.
Then start it up.
It should be FULLY WHITE...NOT YELLOW
Then go to your registration page.
It should be.
WANIP:8484
For EXAMPLE 71.58.364.720:8484
Then your registration page should show up!
Then CLICK on ALL the options. Like for kakaCMS it had,
registration,ranks,etc.
Click on ALL OF THEM if it says something like
could not connect to mysql.
It'll say the file that is INCOMPLETE.
Go to it. For EXAMPLE
in the ranking it'll say it. Then it'll say the file that's wrong
C:/program files/page/downloads <-- FOR EXAMPLE
Then go to that file, It should have something like this at the top
$conn = mysql_connect("127.0.0.1", "root", "") or die ('Error connecting to mysql!');
mysql_select_db("odinms");
On that line, the 1st line. "127.0.0.1", "root", "" <-- Between the " " add your mysql password.
So, Example:
"127.0.0.1", "root", "root". TADA. It should work now.
Now look around more and keep correcting the mistakes.
Also to add the drop/meso/exp rate look for info.inc (It's a php file, but says .inc)
<?php
$config['server_name'] = ''; // Server name
$config['server_ip'] = '--.--.---.---'; // Server IP
$config['server_exp'] = ''; // Server EXP rate (do not add 'x')
$config['server_drop'] = ''; // Server Drop rate (do not add 'x')
$config['server_meso'] = ''; // Server meso rate (do not add 'x')
$config['server_owner'] = ''; // Server owner
?>
For the server ip put, what your using for hamachi use the hamachi ip for static/wan ip get your ip at www.mywanip.com and put it in.
Yes there is only one ' to end it. So for server meso
$config['server_meso'] = '999'; // Server meso rate (do not add 'x')
like that, and your registration page is up.
Notes:
When fixing the error that you get when loading something such as downloads, it'll also tell you the line number thats messed up. Usually you just needs to add the password.
To take away a page. Or navigation just go to www/navigation.php and delete the one you DON'T want then save, and it's going
to add one. You should probably COPY another one and rename it. Such as copy www/downloads and rename it "contacts" <-- Or whatever you wanna rename it. - Make sure it's a .php file -
Then go to www/page and add a file. Exactly named the same as the one you renamed. For contacts "contacts.php"
Then add whatever you want. You might want to look at OTHERS OF .php files in the www/page before you add something.
Also if you do add a page, make sure to change this in www file for the file you MADE.<
Code:
?php include ("page/contact.php"); ?>
Make sure you change it to what you named it in the www/page folder.
Also, make sure you added the directory to the "navigation.php" if you want to add contacts. Add:
Code:
<?php include ("page/contact.php"); ?>
under something. Yes the order where it is, is the spot it'll take, 1 home, 2 registration,3 contact, etc common sense people...