Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Loading Module Into Apache

Once the Apache module has been installed into your Apache installation's module directory, it is still necessary to configure Apache to actually load the module.

Exactly how this is done and in which of the main Apache configuration files it should be placed, is dependent on which version of Apache you are using and may also be influenced by how your operating system's Apache distribution has organised the Apache configuration files. You may therefore need to check with any documentation for your operating system to see in what way the procedure may need to be modified.

In the simplest case, all that is required is to add a line of the form:

LoadModule wsgi_module modules/mod_wsgi.so into the main Apache "httpd.conf" configuration file at the same point that other Apache modules are being loaded. The last option to the directive should either be an absolute path to where the mod_wsgi module file is located, or a path expressed relative to the root of your Apache installation. If you used "make" to install the package, see where it copied the file to work out what to set this value to.

  • Where do I add the LoadModule line inside the httpd.conf file?
  • I don't understand these directions:

The last option to the directive should either be an absolute path to where the mod_wsgi module file is located, or a path expressed relative to the root of your Apache installation. If you used "make" to install the package, see where it copied the file to work out what to set this value to.

share|improve this question
    
It depends a bit on whether you are using an Apache compile from source code yourself, or an Apache provided with some Linux distro. Linux distros have their own ways of setting up configuration for optional Apache modules. So provide more details about the Apache installation you are using. –  Graham Dumpleton Oct 5 '12 at 1:26
add comment

migrated from stackoverflow.com Oct 4 '12 at 23:27

This question came from our site for professional and enthusiast programmers.

1 Answer

If you look at the httpd.conf you will notice that there are a large number of rows that have LoadModule on them, you can add LoadModule wsgi_module modules/mod_wsgi.so to the bottom of them, but check first to see if that is not there already.

The absolute path part they are talking about is the modules/mod_wsgi.so part. If you used the default configure when running make on the library, then you should be able to use the same as above or what you have currently in your httpd.conf file for the other LoadModule entries.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.