JLBN – Running Websites on WAMP
In this setup guide for WAMP, we will show you the basic steps that most new WAMP users would wonder “How to setup and run a website with WAMP?”
In this setup guide for WAMP, we will show you the basic steps that most new WAMP users would wonder “How to setup and run a website with WAMP?”
You must be logged in to post a comment.
Hi !
After using your nice tutorial it appears wamp prints php source in page which is really nasty. Do you have any fixes ?
Thanks !
gogaz, it sounds like you’re using short tag instead full tag
Very helpful manual and WAMP download. Everything works great. Thank you!
Found the answer straight away, thanks.
Dude Thank you for the simple instructions.
Hi , need assistance with my wamp server
How do I create a data base using the php command?
Thank You! I shall Make A Donation For Sure. You are the best. Clear and Concise!
I believe I have successfully installed Wampserver, however I am not sure the following instructions are sufficient to detail how exactly I am supposed to use it to do all the things I currently do with my live website, for example, use mystore/cpanel to access File manager to manage my store files and PHPMyadmin to manage my databases and use mystore/admin to manage my categories and products.
I can’t seem to locate any other guide on your site that addresses these issues.
I have reproduced the text from this guide below and embedded my comments/questions in quotes.
Setup
To demonstrate this setup Basic guide for WAMP, we use the names Project1 and Website2. Remember, these are just example names and you should replace them with your desire names. By default, the document root of WAMP is C:/wamp/www and we will create 2 folders project1 and website2 in the document root as follows:
C:/wamp/www/project1
C:/wamp/www/website2
“Could you explain why you need project1 and website2 and what they are used for? Would suggest that you provide actual examples for each.
Currently, I have D:/wamp/www/mystore for C:/wamp/www/project1
and D:/wamp/www/mystore.com for C:/wamp/www/website2
Have I done this part correctly?”
Access
For example, you’ve already created file index.php in folder project1 and file index.html in folder website2, you will access your websites as follows:
“When was I supposed to have done this? After installing wampserver I have only an index.php and testmysql.php file in my D:/wamp/www folder. Am I supposed to copy the index. php file to “project1”?
“Where do I get the index.html folder from?”
http://localhost/project1
http://localhost/website2
In case you do not like to have the index file or want to access different files, you have to include the filename in the URL; for example, you have file check.php in folder project1 and file test.html in folder website2, you will access them as follows:
http://localhost/project1/check.php
http://localhost/website2/test.html
If you are new to PHP and MySQL and would like to have some simple scripts to test your WAMP server, please check the Codes menu 😉
“How do I access the Codes menu?”
I would sincerely appreciate your help.
I find your other guides very informative and helpful, but unless I am missing something, I think some improvement could be done to help the novice user actually begin using wampserver upon successful installation.
We’ve already mentioned in the guide that we use those names as examples and you should change the name as suited
Here, we only provide some basic guides for new Wamp users but in order to code some basic scripts, you should google for some free php ebook or you can start with website
http://www.w3schools.com
html beginners
For example, you can copy the code below and name the file index.html
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Or copy the code below and name it index.php
<?php
echo "My first php";
?>
omg! i don’t know how.. will some 1 show me how 2 get this page saved inside my ipod so my brother can take a look at it?
Again: short, clear, efficient explanations.
In one word: Perfect !
Congratulations again !