The purpose of antivirus is to keep others out of your computer. When setting up a local web server, you're opening up your computer to outside connections. Your antivirus can work together with Apache. You just need to allow Apache access via your antivirus. You should get a warning from your antivirus along with a prompt to either deny or allow access. The exact steps vary greatly based on the antivirus you use.
Depending on how you'll use your server, you may want to take extra steps to secure it. For example, there are a variety of open source tools to secure Linux servers.