A script that is going to be useful on the Web must be executed by Apache. There are two considerations here:
Making sure that the operating system will execute the script when the time comes
Telling Apache about it