I can show html and php files correctly in the browser so the webserver seems to work OK.
For a project I am doing I need to use a binary program as the form handler for a few forms used to configure an application.
After googling a lot I have deduced that I need to set aside a directory on the webserver as a cgi-bin handling directory and put my binary programs into that.
But I have failed to find out exactly how this is to be done...
Apache seems to be configured using a whole lot of conf files and I have lost my track there.
So I am running the server as is out of the box so to speak...
This means that it is serving out of directory /var/www/html
What I have done in order to see my web pages is the following:
- Installed apache2 and php via apt
- Created a symlink from my directory in /home/pi/www/config to /var/www/html/config
- Created a few html and php files in /home/pi/www/config, which can now be viewed via the web browser
But the install did not create any cgi-bin directory, which I can do and link as I did the config dir.
However, I don't know where to symlink this directory into the website.
Neither do I know how to enable the cgi-bin handling for this dir so it will be OK for apache to run my program as a form handler.
Can someone please tell me how to fix this?
PS: I do know how the binary program will get data from apache on form submissions and how it will send back information to the form submission client. This is not the problem, my issue is how to configure apache to accept my program as a form handler. DS