EasyPHP

June 30, 2007

All, PHP

Tutorial: How to use EasyPHP?

Article written by Jeeremie

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:

  1. 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.
  2. Install it in Program Files.
  3. 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.
  4. 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.
  5. Launch EasyPHP. A window should open as shown on this image:
  6. Tip: EasyPHP will go to your system tray when you minimize it.

  7. 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:

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):

1
2
3
4
5
6
7
8
9
<?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 it for this tutorial. I hope you enjoyed! If you have any question, comment this post and I will do my best to help you.

The Author

Article written by Jeeremie:

Hi, My Name is Jeremie Tisseau. I am a French UI/UX Designer, Event Organizer and Web Entrepreneur based in Bangkok, Thailand, since January 2009. I design beautiful and functional web and mobile apps for early stage startups.

Want to become a guest author on this blog?

46 Comments

  1. ozonew4m says:

    3 Jul, 2007

    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

  2. ifwan says:

    14 Jan, 2008

    hello there, Jeremie Tisseauthanx 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 Jeremie Tisseau..god bless u..thanx

  3. Jeremie Tisseau says:

    14 Jan, 2008

    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.

  4. ifwan says:

    15 Jan, 2008

    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 Jeremie Tisseau

  5. Jeremie Tisseau says:

    15 Jan, 2008

    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!  :)

  6. ifwan says:

    17 Jan, 2008

    alright!! thanx very much mr Jeremie Tisseau…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!!

  7. alx says:

    8 Aug, 2008

    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 ;))

  8. coxrichuk says:

    2 Oct, 2008

    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

  9. Jeremie Tisseau says:

    2 Oct, 2008

    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.

  10. gumuruhsspj says:

    3 Nov, 2008

    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 :P

  11. Phoenix says:

    7 Dec, 2008

    Thanks, this is what i looking for! I searching this tutorial because i just want to start a project and there is something i don’t know yet. If i use it for WordPress, after i’m done, what, where and how i upload the files to my web site hosting:).. Thanks before..

  12. fathi says:

    22 Dec, 2008

    i use tp work with JSP ,Servlet and Tomcat server. so i want to create a chat room with php and i find ur tutorial very helpfull .
    so want to tell you thank you so much.

  13. bouzidi says:

    4 Jan, 2009

    Hi
    Please I can’t using Apache because the port 80 is busy by “ininfo.exe. So easyPHP is stopped. what Ihave to do to start Apache
    and EasyPHP? and think you!

  14. Bhusan says:

    14 Jan, 2009

    sir
    I create a login.php and all file keep inside www folder of easyphp and it work fine
    but client when access my pc ‘s ip onle it shown to otehr all folde and file of www folder of easyphp so any one can access my redirect page which is saved in www folder without authantication so I wish to restrict to access the www folder to other client except administrator please suggest me

  15. neil says:

    9 Apr, 2009

    I am using easyphp, but i want the program to minimise to the system tray on start up.
    There is an option in the config to do this once it is running, and there is an option to hide it altogether if you right click the the manager titlebar (there is no mention of this anywhere!)
    Even if you put a link in the startup folder (XP) and set the properties to minimise IT STILL DOESN’T WORK !!!
    When you power down and up it still won’t discreatly start the servers.
    I remember a long time ago i found a code that can be typed into the startup properties in the startup folder to force minimise outlook, i wonder if that might work here???
    Anyone know how to auto start and hide all trace of easyphp.
    PS I dont want to run it as a service.

    • Jeremie Tisseau says:

      9 Apr, 2009

      Same happen to me on my new laptop. I can’t make it starts on Windows start up and minimize in system tray like I did with my previous laptop. So now I use Startup Delayer and add EasyPHP to the list. With this small piece of software you can even set which program to start first and this is really perfect because you don’t want your browser to start before EasyPHP.

  16. Vali23 says:

    3 May, 2009

    Omg Jeremie Tisseau you`re so helpful! i mean that :)). i followed your steps accurately and learned how to make a phpmyadmin db in just about 20 min.Danke ;)! and keep up the good work. :D

  17. PETER says:

    2 Jul, 2009

    good job

  18. Alex Gibson says:

    16 Jul, 2009

    Thanks, I had a tutorial at uni on this exact topic and found that you have explained it better here.

  19. chitra says:

    29 Jul, 2009

    thnx

  20. Babu A S says:

    8 Oct, 2009

    hello friend,

    It’s splendid, easy, super tutorial. I m New to Php just learning.

    Tanking u

  21. Alexander says:

    19 Mar, 2010

    Hi Jeremie,

    Thank you for the post. I found it useful and easy to understand.

    Alexander

  22. Marco says:

    10 Apr, 2010

    Nice tut, but PHP is everthing except easy for me

  23. ric chan says:

    28 Aug, 2010

    Your page is easy to understand, which is great. The problem i have with it though is this: i copied all the php and index.htm pages to the www folder, and fired easyphp up. No index page showed up.

    I can go into phpmyadmin, but cant see any of the php pages at all. Any clues?

    ric

    • Jeeremie says:

      29 Aug, 2010

      PhpMyAdmin is used to manage MySQL databases, not your htm, php, css, js… files. These files must be stored in c:\Program Files\EasyPHP-5.3.2i\www (Please, note the direction to your directory may be different), then type http://localhost in your browser address bar and you should see your files.

      • Lintner says:

        30 Sep, 2012

        Hello. It seems that I cant connect to http://localhost via my browser (Im using Chrome).
        All my .php files is in the “www” map.

  24. Farhad says:

    3 Oct, 2010

    Hi,

    I’m looking to do a secure website using PHP. I found easyPHP downloaded and installed it alongside WAMP. My OS is Wiondows XP. But when installing I do not come accross any of your step 3 onwards. The installation completes with an icon displaying ‘stopped’.

    I have done a quick php file tes and saved it in ‘www/’ folder (code shown below). But when I go to the browser and type ‘localhost’ I get no result.

    I cannot even get the screen shown in your step 6.

    Your help is much appreciated.

    I have installed easyPHP 5.3.3
    WAMP 2.0

    • Jeeremie says:

      4 Oct, 2010

      If the icon is set to stop (red light) just click on the “Apache” button and click “Start”. When the button is green, type “http://localhost” (without the commas) in your browser address bar. Now you should see screenshot in step 6.

  25. Farhad says:

    5 Oct, 2010

    Hi Jeeremie,

    Thanks for your response. I’m not sure what I did or whether the restarting of the computer changed the status of easyPHP to ‘Started’. However the problem remains that I have not seen anything you have mentioned on steps 3 and beyond. I have done what you have said in your comments.

    i.e. When the button is green, type “http://localhost” (without the commas) in your browser address bar.

    I still do not seen the screen mentioned in step 6. All I get is a white page with a message saying ‘It Works!’ it sounds like a prank :) because i don;t think it actually does work.

    When I also create a folder in the ‘/www’ directory with a index file, I get no result, it come up with error 404 page not found. However if I goto the php file and try to open it directly with ‘Open with’ option it open the file but has no message as i put in the code.

    Please help!!

    Also I thought easyPHP allowed you to edit codes, I am having to do this on notepad.

    Many thanks
    Farhad

  26. Jeeremie says:

    5 Oct, 2010

    Does your index file have the right extension (index.html OR index.php OR index.asp…)?

    It is difficult to say without seeing the actual problem. EasyPhp has a forum. You might want to try asking your question there too.

  27. Farhad says:

    5 Oct, 2010

    it has got index.php

  28. Farhad says:

    5 Oct, 2010

    I guess importantly, why do i not gety top see any of the confirguration settings you mentioned in step 3 and beyond?

  29. Jeeremie says:

    6 Oct, 2010

    Well, from what you explain it works until step 6. If you see the message “it works!” when you open http://localhost/ in your browser, it means easyPHP was successfully installed and is running. This message will disappear after you create your first directory into /www. Where did you installed EasyPhp (e.g. C:\Program Files\EasyPHP2.0\)?

    What version of EasyPhp did you installed? 5.3.3, 6.0, else? If it still doesn’t work, uninstall EasyPHP and try a different version.

  30. michael says:

    13 Oct, 2010

    I have installed 5.3.3. I already have a DB and a PHP connection function (follows):

    The function works, and the database exists in the /data folder, with the correct name, but when I run the script, the “die” error message appears saying the DB cannot be found.

  31. Siddharth says:

    16 Oct, 2010

    Hi,Jeeremie.It was great pleasure to see such helpful information.I m a final year engineering student

    I want to know whic versions of easy php support php 6.0 and phpmyadmin.

    I m useing plaincat for developing website fo me so kindly help me to get good templet like plain cart where i can write a code

    I m currently useing XAMPP version 1.7.0 which doesent support php6.0 else suggestme the same for development

  32. Shab says:

    3 Nov, 2010

    Hi Jeeremie..Thanks a lot for all the help you provide. I was wondering if i put all my pages(html,js,php,css and my images folder) in EasyPHP’s www folder and still have the same pages and images folder somewhere else on my computer(in My Documents for example)..having them in these two locations will affect anything? or i should have them in the www folder only?

    • Jeeremie says:

      4 Nov, 2010

      Only in the WWW folder. Your browser cannot access files outside this folder.

  33. Shab says:

    12 Nov, 2010

    Hello..thanks again i can see my pages now. could you please tell me where do i define the name of my database(as shown in the php codes)? i cannot see any configuration file.

  34. sahar ajorlou says:

    13 Nov, 2010

    I can’t open localhost on easyphp.
    when I enter 127.0.0.1 address in addressbar I can’t open it.

  35. Giorgio says:

    1 Nov, 2011

    Dear Jeremie, I have problem with EASY PHP. In fact it doesn’t read my CSS! some of the things are working, others not. for example it doesnt make the corner of my page round, but rectangular and it doesnt load some images. Do you have any suggestions? any help? Thank you and congratulations for your beatiful website

  36. Max says:

    6 Mar, 2012

    Hi..Jeeramie
    I’m in Thailand,,I install easyphp and worked well in my pc..but a problem is .. i want to connect and browse my web page from client computer in my lan but didn’t work.. can u help me about that… thank you Jeeremie

  37. Max says:

    8 Mar, 2012

    Hi…Jeeremie
    I use easyphp 5.3.9 ,it work well but i want to connect from client computer to easyphp server but i can not u can help me?
    Thank you…

  38. Max says:

    8 Mar, 2012

    hi…Jeeremie
    i’ve done already to sole my promblem if some one want to know please reply my comment
    Max…

  39. shayne says:

    11 Mar, 2012

    I can’t connect to my database. The user name and or password is nowhere to be found. Help.

  40. Gabriel says:

    1 Jun, 2012

    It was possible to open easyphp but now I can’t open easyphp, it loads infinitely. Help

Leave a Reply

Sorry, comments are closed