PROnetworks »

Post new topic    Reply to topic
Login to print this topic
Author Message
shougan
Sid Upadhyay
PostPosted: Fri Dec 31, 2004 2:02 pm Reply with quote

PRO GOLD
 
 


Joined: 26 Apr 2004
Posts: 5290
Location: Western Hemisphere
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
 
Back to top
Infinityeye
PostPosted: Wed Feb 16, 2005 5:48 pm Reply with quote

Respected Member
of PROnetworks
 
 


Joined: 30 Dec 2003
Posts: 3216
Location: The Netherlands
Can you use dyndns.org also, instead of no-IP?
 
Back to top
Nativedude
Adam Durham
PostPosted: Wed Feb 16, 2005 8:22 pm Reply with quote

PRO Level 17
 
 


Joined: 09 Mar 2004
Posts: 2195
Location: Historical Yorktown, Virginia USA
InfinityEye wrote:
Can you use dyndns.org also, instead of no-IP?

I know your asking shougan, but I think you should be able to use dyndns.org
 
Back to top
strekship
PostPosted: Fri Mar 18, 2005 2:26 am Reply with quote

PRO Level 5
 
 


Joined: 05 Feb 2004
Posts: 183
Location: California
Sorry for digging up a semi-old post, but what ports on my router should be forwarded to the server, and what sould i do about my external IP. Its dynamic.
 
Back to top
Avenge19
PostPosted: Fri Mar 18, 2005 2:53 am Reply with quote

PRO Level 14
 
 


Joined: 18 Oct 2004
Posts: 922
Location: My home.....
strekship wrote:
Sorry for digging up a semi-old post, but what ports on my router should be forwarded to the server, and what sould i do about my external IP. Its dynamic.

80 or 1200 depending on whether your ISP blocks incoming port 80 traffic. pirate

dynamic ip - http://www.no-ip.com
 
Back to top
imnuts
PostPosted: Fri Mar 18, 2005 1:39 pm Reply with quote

Moderator
Support Team
 
 


Joined: 24 Mar 2004
Posts: 14564
Location: Boothwyn, Pennsylvania
what type of router do you have? some (like mine) have the ability to update the info when it gets a new IP built into them. other than that, i'm not real sure how you could update it correctly without going to the site and updating it that way.
 
Back to top
strekship
PostPosted: Sun Mar 20, 2005 1:36 am Reply with quote

PRO Level 5
 
 


Joined: 05 Feb 2004
Posts: 183
Location: California
I have a DI-624 in think. Its wireless.
 
Back to top
mnemonicj
PostPosted: Sun Mar 20, 2005 4:30 am Reply with quote

PRO Level 16
 
 


Joined: 16 Aug 2004
Posts: 1688
Location: Indianapolis, IN
I have a server set up with dyndns forwarding to it, but for some reason my router's client's cannot access the page by typing in the internet IP address or the dyndns name. I have had no trouble with any computer outside of my network accessing the pitcures I host, but if a computer inside my network wants to access the server, they have to type in the local address. Is there a solution to this?

Between my cable modem and my router are a Vonage VOIP voice terminal and a Linksys 4- port with 802.11b router. Everything is forwarded correctly because computers outside my network can access my HTTP server with my dyndns name, but I am just confused on why computers inside my network cannot access it using the DNS name or my ISP's given IP address.
 
Back to top
ChevinBrown
PostPosted: Sun May 08, 2005 7:42 pm Reply with quote

PRO Level 12
 
 


Joined: 18 Aug 2004
Posts: 609
Location: Milkyway: Earth: USA: Tennesee: Somewhere in them hills...
strekship wrote:
Sorry for digging up a semi-old post, but what ports on my router should be forwarded to the server, and what sould i do about my external IP. Its dynamic.

No_IP offers a DUC (Dynamic Update Client) it runs in the background, and automaticly updates NO-IP's database for you.
 
Back to top
xXDIGITALXx
PostPosted: Tue Sep 13, 2005 12:27 pm Reply with quote

PRO Level 15
 
 


Joined: 17 May 2004
Posts: 1088
Location: Omaha, NE
hey, I'm running xampp. I asked a question in the other forum and actually got directed here. I have a few small issues, the only user that can log into phpmyadmin is the root user, not good considering the root user has access to ALL databases.

Second, control panel. Currently using zpanel but don't know if the problem with my phpmyadmin is because of zpanel, zpanel by default has a differant version of phpmyadmin already installed than what is default in xampp.
 
Back to top
Back to top
Index >> Webmaster Domain & Code Room >> How to set up a home server on Windows or *nix (Updated)

Goto page 1, 2, 3  Next

Page 1 of 3

Post new topic   Reply to topic


Tired of the Ads? Registered users have 80% less adverts.