Wamp Server

Need help with an engine or coding not on the list? Need help with a game or the website and forums here? Direct all questions here.
SoalSlayer
Posts: 12
Joined: Fri Mar 05, 2010 4:14 pm

Wamp Server

Post by SoalSlayer »

Hey all

Im new here and a real noobie when it comes to all this design stuff so thought id watch a few tutorials and try and learn what i can but got stuck with the wamp server =.= as it says in tutorial 1 i downloaded it started it put it online and all but as soon as i start up localhost i get the this page cannot be displayed error =[. dunnu if anyone can help or knows what the problem might be ?

Sorry for the stupid question and thx for anyone who can help :)
jpoisson
Posts: 245
Joined: Sun Aug 02, 2009 5:12 pm

Re: Wamp Server

Post by jpoisson »

http://indie-resource.com/forums/viewto ... =26&t=1071

Please read through the proper forums before posting next time. also note that it is highly suggested to watch the first 5 -6 tutorial videos before attempting to follow along with your own game.

The link above is the WAMP server tutorial on I-R.com
SoalSlayer
Posts: 12
Joined: Fri Mar 05, 2010 4:14 pm

Re: Wamp Server

Post by SoalSlayer »

I saw that post already, I followed all the steps exactly as it says but as soon as i click localhost on the wamp server icon it just comes up Internet explorer cannot display the webpage. Yeh i wasnt planning on making a yet i know im no where near ready i just wanted to make sure i had all the tools and it was all working so i knew where i was at.

Thx
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Wamp Server

Post by Jackolantern »

While I know this is probably not the issue, do you have another browser like Firefox you could try to use? Internet Explorer has never liked locally hosted webpages for security reasons.
The indelible lord of tl;dr
SoalSlayer
Posts: 12
Joined: Fri Mar 05, 2010 4:14 pm

Re: Wamp Server

Post by SoalSlayer »

I did try using firefox just to be sure but i didnt make it my default browser, I dont think that would make alot of difference but im still not sure ?
jpoisson
Posts: 245
Joined: Sun Aug 02, 2009 5:12 pm

Re: Wamp Server

Post by jpoisson »

uninstall and re install. it could just be a bad install.
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Wamp Server

Post by OldRod »

Click on your WAMP icon in the status bar and check the PHP error log and the Apache error log - maybe that will shed some light on the problem?
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Wamp Server

Post by Jackolantern »

SoalSlayer wrote:I did try using firefox just to be sure but i didnt make it my default browser, I dont think that would make alot of difference but im still not sure ?
No, whether or not it is the default server won't make any difference since you are manually opening your webpage in the browser.

Just to be sure we are hitting all the bases before you uninstall, are you sure you are typing in the URL correctly? It should look something like:

http://localhost/game/gamepage.php

That would be if your game files are in a folder called "game" inside the WWW folder of wamp. Also, I have heard that sometimes WAMP will cause problems on Vista and perhaps Windows 7 if it is in the Program Files folder, so it should be placed directly in your C: drive most likely.
The indelible lord of tl;dr
SoalSlayer
Posts: 12
Joined: Fri Mar 05, 2010 4:14 pm

Re: Wamp Server

Post by SoalSlayer »

yeh it was all in the correct folders but what i done now is i decided for now until i find what the problem is, ill host it on my website the only problem now is im not sure what to change the connect coding to

Code: Select all

<?php

$db = mysql_connect("localhost","root","") or die("Could not connect to db");
if (!$db)
die ("no db");
if(!mysql_select_db("test=,$db"))
die ("No database Selected");

?>

im guessing ill have to change the root to wherever the database is stored now ? atm i just want to be able to get the connection working then i know where im at and i can take a look throught all the tutorials ect oh btw i named the database test so sry if theres any confusion but you guys should be able to make alot more sence of this than me
thx
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Wamp Server

Post by Jackolantern »

Yes, you just need to update your connection script to reflect the database your data is in, and change the username and password to whatever you need to use with your web host. Some hosts give you a panel that allow you to create new users to act on your db, and in that case you can create your own. However, some other hosts may handle all of that themselves and require that you request a new user and password (although I think those kinds of hosts are dwindling these days).
The indelible lord of tl;dr
Post Reply

Return to “Advanced Help and Support”