EasyPHP Devserver

The EasyPHP DevServer is an alternative to using the Xampp server. It can be installed on your PC or on a portable device like a USB stick. I have been working with portable servers whilst developing the registration system for an AutoTradeExpo in Dublin later this year. The plan was to create an offline badge printing and registration system for the day of the event. This has required the setup of software on a portable server. It is intended that it will allow for administrative tasks to be carried out offline and a background process to communicate with a central web server to operate.

The first portable server selected for the task was the Xampp server. For some reason the server was portable only to the extent where it was recognised on systems with the same administrative rights as the PC used to first install the software on a USB stick. After port testing and numerous alterations to the install process it was decided to switch servers and use the EasyPHP Devserver instead.

This guide is for people who might want to switch from Xampp to Devserver or those who want to set up a development environment with Apache, PHP 7 and MySQL.

Download the Devserver from http://www.easyphp.org/easyphp-devserver.php

  1. Install in a directory of your choice for example ‘c:/webserver’
  2. Launch the server after install
  3. An icon appears in the tool bar. Itis comprised of the letter ‘e’ and a ‘red square’. This points towards the Devserver. Right click on it and select ‘Open Dashboard’ from the top of the popup menu.
  4. Your web browser will open. You should see something similar to the image below
Devserver dashboard

  1. Click ‘applications’ in the navigation menu
  2. Click on PHP under the heading ‘<- dashboard’ and then PHP 5.6.19 x86 (see image below).
  3. Devserver application menu
  4. On the PHP page click on the button labelled ‘configuration file’
  5. To the right of this new page above a copy of the configuration files content there should be a pencil shaped icon. Clicking on this will open the configuration file (php.ini) in a text editor.
  6. Using the text editors find function locate ‘max_execution’ (see image below)
  7. PHP configuration file in Notepad
  8. Change the line ‘max_execution_time = 30‘ to ‘max_execution_time = 6000’
  9. Now type curl in the find box’s text input area and click ‘find next’
  10. In the php.ini file remove the ‘;’ from the start of the line: ‘;extension=php_curl.dll’
  11. Save the file and close the text editor

  1. Click on the link to the ‘HTTP server’ in the left hand menu
  2. Click the link to the Apache server
  3. Click on the button labelled ‘configuration file’
  4. Click on the pencil icon to edit
  5. Again using the text editor’s find function locate this line of text ‘C:/Program Files (x86)/EasyPHP-Devserver/’ by searching for ‘Program Files (x86)’. Replace it with the path you have installed the Devserver on. There should be nine occurrences of this line in the httpd.conf file.
  6. Click start to start the server
  7. Use your browser to navigate to http://127.0.0.1/phpinfo.php
  8. Check to see if curl is in the list of loaded extensions
  9. PHP info curl
  10. If curl is absent you need to copy a file called ‘libssh2.dll’ from one directory to another.
  11. Using your file explorer go to {your-file-path}/eds-binaries/php/ .Then select the directory containing the PHP version you are using.
  12. Locate the libssh2.dll file and copy.
  13. Go to {your-file-path}/eds-binaries/httpserver/. Click the Apache directory and then open the ‘bin’ directory.
  14. Paste the ‘libssh2.dll’ file into this directory.
  15. Restart the server by going to the Apache page under HTTP SERVER (horizontal navigation menu highlighted in the PHP section of the guide). Click Stop then Start.

  1. On the dashboard menu select ‘DB SERVER’ and then click the link through to MySQL
  2. Click the button that links to the configuration file and then the edit icon
  3. Remove this line of text ‘,STRICT_TRANS_TABLES’ and save the configuration file
  4. Start the database server.

  5. And that is it!

    You can now import your files and database tables from Xampp or if you are starting a new development begin working with the server.

One of the most frequent issues with portable servers is the Apache module not starting. Windows processes associated with the World Wide Web Publishing service and Skype use ports on your computer that the portable server requires. Luckily Devserver has a built in solution to the problem.

If for any reason Apache will not start right click the applications icon in the tool bar, mouse over ‘tools’ and click on the link labelled ‘open ports controller’. It details all the ports that are being used on your PC.

All you need to do is identify the processes using ports 80 and 453. Simply click on the identified process and then close them using the ‘closed selected TCP connection’ option from the horizontal navigation menu at the top of the page.