I'm using apache 2.2.15 in production now I want to add some modules like :
I installed apache with yum in CentOS 6 and I can't switch to any other version.
You say you're using apache 2.2.15 in production, and you can't switch to any other version.
That means you're out of luck, as mod_allowmethods is only included in Apache 2.4.x.
So you need to either: