EasyPHP : Page 2 : Tutorials
Installing EasyPHP
- Download the installation file: Head over to the EasyPHP homepage at www.easyphp.org and download the latest version of EasyPHP. As of the time of this writing, version 2.0b1 is the current release. The file is approximately 12.8 MB in size.

- Run the setup: When the download completes, run the file you’ve downloaded. There's nothing you would want to change, let the installation complete itself. Read our Bootcamp On Installing Software is you're not sure how

- Almost done!: After the installation is over, EasyPHP should start itself on its own. Check up the notification area in your Start bar for a big 'E'.

- Getting geeky: Right click on the taskbar icon to bring up the shortcut menu. This is how you start, stop, and configure EasyPHP and the servers.
- Help – Brings up a couple help sites. Don't be surprised if it seems all Greek<use strikeout on Greek> French, because EasyPHP is a French software.
- Log Files – Will allow you to open Apache's and MySQL's warning / error logs. This is where any errors which occur will be noted down by the software for future debugging <checking software for errors, called 'bugs'>.
- Configuration – Brings up a sub-menu linking to some of the configuration files and programs. Explore around here to see any changes you would like to make.
- Explore – Launches Windows Explorer to show your web's root directory – the place where you keep your web pages. This folder can also be manually found, at C:\Program Files\EasyPHP 2.0b1\www\ (where C:\Program Files\EasyPHP 2.0b1\ is the place where EasyPHP was installed)
- Administration – Loads the EasyPHP administration web site.
- Local Web – Launches your default web browser and loads the web site.
- Restart – Restarts the MySQL and Apache servers. If you change settings, you may need to do this.
- Start / Stop – Start or Stops the MySQL and Apache servers.
- Exit – Quits EasyPHP. This will also stop the MySQL and Apache servers if they aren't installed as services.

- It's all yours: Type in http://localhost/ (or http://127.0.0.1) in your web browser, and you'll get to see your web root <explanation here> of your EasyPHP install
<html>
<body>
<?php
echo 'Hello World';
phpinfo();
?>
</body>
</html>
- Open up your browser, head over to http://localhost/phptest.php. If it shows up information about the PHP installation and a nice 'Hello World' at the top, PHP is up and running.

- Testing MySQL: Similar to the PHP test, create and save another file mysqltest.php using Notepad and copy the following code.
<?php
$link = @mysql_connect('localhost', 'root', '');
if (!$link) die('Could not connect: ' . mysql_error());
$result = mysql_query('SHOW DATABASES', $link);
?><html>
<body>
<h2>List Current Databases</h2>
<?phpwhile ($row = mysql_fetch_assoc($result)) {
echo $row['Database'] . '<br />';
}
?></body>
</html> - Open up your browser, head over to http://localhost/mysqltest.php. This will prove that MySQL is working fine.

- The Status Program - The status screen is fairly straight forward with only a few buttons and options.
- Apache Server Status – Using the button, you can start, stop, and restart just Apache. The stoplight to the right displays the current status.
- MySQL Server Status – Using the button, you can start, stop, and restart just MySQL. The stoplight to the right displays the current status.
- Display EasyPHP Log – Displays log and possible errors when EasyPHP starts and stops.

- Configuring - Generally, you will not need to make any changes from the defaults; but in case you need to, here's what to do. Open the EasyPHP Configuration menu by right clicking the EasyPHP icon in your system tray, then select the Configuration > EasyPHP option in the shortcut menu.
- Start on Windows startup – Select if you want EasyPHP to load automatically on starting Windows.
- Start Apache and MySQL as services – If you have Windows NT / 2000 / 2003 / XP you can launch the servers as services. This is recommended only if you need them running all of the time.
- Launch server when this application starts – When EasyPHP is running, it will automatically start the servers.
- Check version at startup – Will connect to the EasyPHP site to determine if there is a newer version available.
- Automatic consideration of server's configuration modification – EasyPHP keeps an eye on the Apache and MySQL configuration files. If they are altered, EasyPHP will restart the server for you.
- Check server's TCP port before staring - Will verify the ports <explain here> Apache and MySQL are set to use are available.
- Language – Change the default language used in the configuration programs
- Apply / Close / Info – Apply changes / Close the configuration program / About EasyPHP

