If this is a Unix system and the scripts are run by the webserver, you will need root access; then you can add the variable to /etc/profile. If you run the scripts yourself (or a program you started does), then you might simply add the variable to your .profile or .bashrc or whatever.
Makeshifts last the longest.
Comment on Re: Adding a directory to @INC permenantly