First of all, what is EasyPHP?
EasyPHP is a complete software package including an Apache server, a MySQL database, a fully PHP execution, as well as easy development tools for your web site or your applications.
Ok, but what is it for?
Well, well! EasyPHP is a software allowing the use of PHP and Databases directly from your computer. If you make your own websites you may have noticed you can’t preview your PHP pages from your browser. That’s why you need to have a software such as EasyPHP to do the job.
Also, it is faster to preview your work from your computer (localhost) than from your webserver.
Let’s now see how to use EasyPHP:
- First of all, you will need to download it. So go to visit http://www.easyphp.org and come back to read this post once you are done.
- Install it in Program Files.
- Enter in your new created directory (for example: C:\Program Files\EasyPHP2.0) and pay attention to the /www and /mysql/data directories. The first one is used to store your web projects and the second for your databases.
- Create a new folder (for example: MyProject) in /www and put your full website (index.html, about.html, contact.php, images, CSS, JS and so on) into it.
- Launch EasyPHP. A window should open as shown on this image:
- Now open your browser and enter localhost or http://localhost or 127.0.0.1 (your browser won’t make the difference). Here is a snapshot of what you should get:

Tip: EasyPHP will go to your system tray when you minimize it.

Now, all you have to do is to select your project to preview your PHP pages from you browser. That’s it!
A word about MySQL in EasyPHP:
Before concluding this post, I would like to say a few words about using MySQL with EasyPHP. If you want to test a CMS (Content Management System), E-commerce or a Blog (Wordpress…)… on your computer you will first need to create a database.
All you need to do is to create a new folder in C:\Program Files\EasyPHP2.0\mysql\data (for example you could name it as db_myProject) and when prompted during the installation fill as shown below (I took as example a Wordpress Configuration):
<?php // ** MySQL settings ** // define('DB_NAME', 'db_myProject'); // The name of the database define('DB_USER', 'root'); // Your MySQL username define('DB_PASSWORD', ''); // ...and password. Leave it blank if you are using EasyPHP!! define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value (...) ?> |
In some cases, you may be prompted to change some variables in the php.ini file (for wikis or E-commerce mostly). Go to your system tray and right-button click on the EasyPHP icon and pick Configuration/php. The php.ini file will open in Notebook. Edit the variables, save your file and close it. Then restart EasyPHP to apply the changes.
That’s all for this tutorial. If you have any question, comment this post and I will do my best to help you.
Popularity: 18% [?]
July 3rd, 2007 at 6:02 am
I hope you dont mind but Ive added your feed to my webmaster search site because i felt alot of the information you provide is relevant for webmasters and will be a good addition to our database.
Keep up the good work
January 14th, 2008 at 9:58 am
hello there, Jeeremiethanx for ur teaching using the easy php..its simple and easy to understand..thus, can i approach ur help…i have some prob n question here..actually i’ve just learn to create the dynamic website using macromedia dreamweaver which we can insert a comment there, login [page and etc..i learnt in by myselfthus, i’ve already install the easyphp software to make our pc as a server n can create n store our database..so, i’ve already put my comment code in my website page n paste it in c;//progfiles/easyphp/www but in the text area of the comment, after i insert any of text there and i click submit..there’s an error…which can’t show the comment text.so..how to create the database comment in the easyphp; http://localhost/mysql/and visualised our comments in website..thank you so much for ur willingness n coorporation mr Jeeremie..god bless u..thanx
January 14th, 2008 at 10:31 am
I am sorry Ifwan. I don’t understand what you mean. What is the comment code you are talking about? Is it some kind of plugin to allow your visitors to comment on your website? If so, could you tell me what’s the name of your plugin and URL? I can’t help you if you don’t tell me more.
January 15th, 2008 at 5:46 pm
owh..thanx.
i’m sorry ma fren. actually, i’ve just created a website by using a simple editor which is macromedia dreamweaver. in my website, i’ve already create a comment by using the form button. Thus, then i place it in the easyphp folder which is located at c://programfiles/easyphp/www. i open the easyphp software and make sure the apache and mysql is already started n running . then i try to preview it in my browser. the comment is there…but, when i enter some comment in the box n i click the submit button…my comment doesnt show.and error occured. must i create a database first in the http://localhost.mysql ?? i dont know how to create it.. do u understand what i mean. i’m sorry, for my poor english..i’m from malaysia..thanx Jeeremie
January 15th, 2008 at 6:13 pm
Don’t worry for your English. Mine too is not perfect!
For the comment section, you definitely need to have a database. But first of all, you need to write a script (in PHP for example) that will connect to the database and save the comment into it. That is not enough to create a text area and and a button in Dreamweaver.
If you have no PHP knowledge, you will never be able to create a PHP Comment script on your own. That’s not so easy and I don’t think Dreamweaver can do it for you.
But don’t worry, some have already written some excellent scripts. For example, I recommend you visit PHP Comment Script from Gentlesource.com. You can see a demo here: Comment Script Demo.
Is that what you were looking for?
Good luck!
January 17th, 2008 at 8:12 am
alright!! thanx very much mr Jeeremie…i’ll try my best to try out…i’ve already download the php comment script which i took it from the site u suggested and i’ll will work out. if i have a problem, i’ll asked you..sorry for the burden..tq very much ma fren!!
August 8th, 2008 at 10:56 am
you should also consider WAMP => http://www.wampserver.com same acronym as LAMP but for Windows
I think it’s more stable
(je suis Français aussi mais comme tout est en Anglais ;))
October 2nd, 2008 at 11:15 am
Hi,
In your tutorial you mention
Before concluding this post, I would like to say a few words about using MySQL with EasyPHP. If you want to test a CMS (Content Management System), E-commerce or a Blog (Wordpress…)… on your computer you will first need to create a database.
All you need to do is to create a new folder in C:\Program Files\EasyPHP2.0\mysql\data (for example you could name it as db_myProject) and when prompted during the installation fill as shown below (I took as example a Wordpress Configuration):
What extension does this file need to have - php?
Basically I am trying to use Zen Cart with EasyPHH for testing, but its not recognising the database I am trying to setup.
Do you know of any guides that can walk you through setting up a MYSQL database in EasyPHP
Thank you for your help
coxrichuk
October 2nd, 2008 at 11:23 am
Normally, when installing zen cart, you are prompted to enter database name (which is the name of the folder you created in C:\Program Files\EasyPHP\mysql\data\), username (’root’) and password (leave it blank).
The MySQL extension is .sql. If you want to create your own database, right-click on the EasyPHP icon in the system tray and select “Administration”. It will open the admin panel in your default browser. From there, click ‘MySQl Manager’. It will open PHPmyAdmin where you can create a new database and then create new tables on database.
November 3rd, 2008 at 10:46 pm
well nice information dude!
perhaps later u add with a simple tutorial
from html plus php files
combined to make a textbox that could be
typed by the user then proceed into the database
and how to retrieve it… at least a glance
tutorial for public