If you want to add any extra modules to apache, they’ll need to be compiled in. Any module that needs to be compiled in will have a –with-module type flag which will need to be used. To add this flag, run the following:
#add your –with-module line to the end of the file,
# and make sure the character exists at the end of all lines except the last one.
Then restart apache:
/sbin/service httpd restart
If you run into problems, you may also need to recompile php as well:
Then restart apache again.