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:
- Open a terminal window and su as root.
- Type:
apache2ctl stop
This stops the webserver. - Then type:
apache2ctl restart
This restarts the webserver.