David R Newman

Getting PHP pages to run Executables

When using PHP you will often want to run an executable using the popen (pipe open) command. I spent several days trying to work out why despite my executable running at the command line it wouldn't pass any data through this pipe command. I eventually found restarting my webserver (Apache 2) solved this problem. This can be done as follows:

  1. Open a terminal window and su as root.
  2. Type:
    apache2ctl stop
    This stops the webserver.
  3. Then type:
    apache2ctl restart
    This restarts the webserver.

Back to Help Index Page

Page written by David R Newman (drn[at]ecs.soton.ac.uk). Last updated November 11 2013 14:34:10.