This tutorial will show how to step by set set up an easy apache server running perl and php along with the Mysql database program, and now Ruby on Rails!
Step 1: Fixing IP issues
Go to
http://www.no-ip.com/ make an account... after you get that set up you will have a free subdomain... Also now you have a subdomain that follows you computers IP... but to fully achive this you will need to download their duc ip somethingy.... LOL Be sure to set that up to you sub domain...
Step 2: Settin up a server
K now I am gonna show you the easiest way to set up an open source apache server running everythign you need to get a board of website up and running.
Go to
http://apachefriends.org/en/ downalod their latest version of XAMPP this is an all in wonder installer that installs Apache - The server app. MySQL - a database app. PHP - a powerful word proccessing app to run you scripts. Perl - another language like PHP.
After you have installed Xampp you will have a dirrectory like C:/apachefriends/xampp/htdocs This is you WWW folder What ever you place in this wolder is on the internet! But at this moment yuo have the deffalt website, a basic mirror of the xampp website with some cool stuff... You can go a head a delete everythign in the folder "htdocs"
Now if you fire up Xampp and go to you sub domain you should get a blank directory like
http://64.122.41.25/hosted/ ... If you get a page like this on your server you are good to go!
Step 3. PHPBB Boards (optional)
At this point you are ready to get you board up and running... download the latest version of phpbb from theirwebsite and drag the unzipped folder into you "WWW" folder... [TAKE NOTE I HAVENT INSTALLED PHPBB IN A WHILE...] now visit you website... clcik ont he directory where you board lies... you should get a page that say you have to install phpbb... fill in the following blanks on that page... NOW when you come to the part about the database, this is where mysql comes in, go to you domain name in a new window! in the url type "/phpmyadmin" after you subdomain. It should take you to a page where you are given the option to set up a database... Take note that you "root" aboutn has no password right now you are vulnrable to Hackers! so first of all change you root password by going....
and clicking on the privaleges link... now you are given the option to change the password of and accoutn by clicking on the edit account button
Now change the password of root to you pleasure... do the same with pma BUT NOT NOW if you do ur are "screwed" until the end of this tutorial....
Well now that root has a password go to the main page and make another account, give it a password and all the privalages... al this point go to the main page again and make a new data base... no you can log out of phpmyadmin for now...
Go back to the windows with phpbb waiting to be installed... fill in all the insformation and then hit the install button.... Once the install is done you have to go to you "WWW" folder and go the phpbb folder and delete the install file... After that you are good to go...
Step 4 - security(optional)
Well if you remember me tellign you about the not changing the PMA well that because pma is what lets you control the phpmyadmin so now at this point go to you PhpMyAdmin and change the password of pma , remember the passsword... Now you may get a page saying access denied... this is normal...
Go to you C:/apachefriends/xampp/phpmyadmin/ In this directory there is a file called config.inc.config or somethign of that sort... open it in dreamweaver or some text editor... do a search for a string like "pma" until you find a line that states...
| Code: |
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = 'pma'; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = 'PLACE PASSWORD HERE'; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
|
Change it to
| Code: |
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = 'pma'; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = 'PLACE PASSWORD HERE'; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
|
This will give you a login like on one of my servers... http://64.122.41.25/phpmyadmin/
Take note people will only see this prompt if they try to get into your PhpMyAdmin
-Sid
PS. Pardon my spelling, also...
If you are looking to try out 'Ruby on Rails,' the incredibly powerful Web Development language, you can try InstantRails, instead of XAMPP.
Instant Rails on RubyForge
The Ruby on Rails Site