With apache you can either use simple CGI scripts and the CGI module. If you're looking for a more advanced way to do things there is mod_perl, an countless modules built on it on CPAN. I'm not sure what you're trying to do with server side scripting so I can't point you to a more specific tutorial.