Skip to content

create development environment to work on apache2 (httpd) modules

Notifications You must be signed in to change notification settings

athirn/apache_module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Intro# this project sets up a development environment for apache modules

it uses vagrant to create an ubuntu vm that has all the required build tools to create and debug apache modules.

##Installation##

  • clone the repo

    git clone git://github.com/anuaimi/apache_module.git

  • install vagrant

    gem install bundler; bundle install

  • create the virtual machine

    vagrant up

  • ssh into the machine

    vagrant ssh cd /vagrant

  • compile your module

    `apxs2 -c apache-2.2.xx/modules/experimental/mod_example.c

##Workflow##

  • configure apache the way that you want it
  • make a copy of the module source you want to change
  • use apxs2 to compile it and link it to the modules directory

##Directories

  • apache runtime is in /usr/lib/apache2. You'll find the module subdirectory there

##Notes##

  • I had originally tried to install the source into the /vagrant directory so that a developer would be able to use their native OS to editor the source for the module but ran into an issue with VirtualBox not being able to symlink in a shared foler - hashicorp/vagrant#713

About

create development environment to work on apache2 (httpd) modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 66.7%
  • Puppet 31.2%
  • Shell 2.1%