Install mod_wsgi for APACHE alongside DirectAdmin (with custombuild) (Centos 6)

banner3

So lately i’ve been trying to get into python development, specifically for web application using Django; everyone says it’s amazing, I want to know what all the fuss it about !

I host this site and a couple others on my own dedicated server running DirectAdmin,  and I wanted to setup a dev space for my  (future) Python / Django projects. I went looking for a little step by step guide on how to install mod_wsgi in a directadmin environment, and to my surprise I couldn’t find one.

After a bit more research and a bit of trial and error, I present to you my own little guide on how to do so :)

Please note that I am doing this on a Centos 6 environment, and cannot guarantee that this will work on any other. Also, I use nano for my text editing needs, feel free to use vi if you prefer it.

Step 1.

download the latest source files from here.

cd /tmp
wget http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz
tar xzvf mod_wsgi-3.4.tar.gz
cd mod_wsgi-3.4

Next we are going to compile our file

./configure
make
make install

Note that I was getting errors when compiling and I had to install the python development tools for it to work (yum install python-devel)

Now you are going to want to open your apache config file and load the module

nano /etc/httpd/conf/extra/httpd-phpmodules.conf

In that file, after all the other « LoadModule », add the following line

LoadModule      wsgi_module             /usr/lib/apache/mod_wsgi.so

(If you do not have a file called extra/httpd-phpmodules.conf, you will need to add this to « /etc/httpd/conf/httpd.conf »)

Now all we’ve got left to do is recompile apache with custombuild

cd /usr/local/directadmin/custombuild

(Only do the following command if you’ve never added custom modules to apache in the past, otherwise you WILL overwrite your existing modifications)

mkdir -p custom/ap2

cp configure/ap2/configure.apache custom/ap2/configure.apache

Now you will need to open …

nano custom/ap2/configure.apache

And append this to the end of the file

"--with-mod_wsgi"

See all the  » \  » characters at the end of each line? You should make sure that all but the last line has one. Otherwise apache will not compile. You should end up with something along those lines:

        "--enable-ssl" \
        "--enable-rewrite" \
        "--enable-proxy" \
        "--enable-expires" \
        "--enable-reqtimeout" \
        "--with-ssl=/usr" \
        "--enable-headers" \
        "--with-mod_wsgi"

Finally run

./build clean 

./build apache

And here you have it, mod_wsgi is loaded on to apache !

Let me know if you are having any issues with this :)

0 commentaires

  1. />
    Health threats are almost the equivalent for either restrictive and also gastric bypass surgeries although risk from nutritional insufficiencies for calcium, Vitamin B12 and additionally iron usually are higherin gastric bypass surgery clients.Intestinal leaking also can occur.
    Gastric go around surgery people may experienced the « Dumping Predicament. » It is when food moves also fast on the small intestine/>
    Health threats are almost the equivalent for either restrictive and also gastric bypass surgeries although risk from nutritional insufficiencies for calcium, Vitamin B12 and additionally iron usually are higherin gastric bypass surgery clients.Intestinal leaking also can occur.

    Gastric go around surgery people may experienced the « Dumping Predicament. » It is when food moves also fast on the small intestine plus the patient might possibly experience a sick stomach, cold weight loss, dizzy or possibly fainting spells, weak spot and at times, even diarrhea.

    Patient can select the either the more common open medical procedures or laparoscopic sugery typically the latter appearing that you’ll see smaller scars and also less down time since the particular bariatric surgical procedures patient can certainly recover sooner.

    Similar to any version of surgeries, patients must ask its surgeons which usually for of cosmetic treatments is best suited for these products.Before an individual is purchased undergo a weight-loss surgery, he need to have tried other healthy way of lose fat.A cosmetic fat reduction surgery will most likely always be one more option when all other efforts failed to help the person to help reduce weight.

  2. at a total connected with 4, 008 demise in 2004, as a result of 3, 714 on 2003.
    There’s have to to debate that:one of the very most first things your brand-new bike requires is insurance policies.But tips to get one in case you are with limited funds?
    Here is a simple initial step:web.Lots of insurance policies are providing affordable rat at a total connected with 4, 008 demise in 2004, as a result of 3, 714 on 2003.

    There’s have to to debate that:one of the very most first things your brand-new bike requires is insurance policies.But tips to get one in case you are with limited funds?

    Here is a simple initial step:web.Lots of insurance policies are providing affordable rates for fundamental insurance plans, and produce quotes which can be friendly in the direction of people off income brackets.If you have the choice to choose a custom package, stick in the basics:obtain a coverage which could cover the expenses incurred within worst case scenarios.This was obviously a real favor but not just to you whilst your vehicle, but and to your friends and relations, whom people allow to ride your truck once in a while.Getting an excellent insurance strategy would show you will be a accountable vehicle seller.But having a good yet cheap motorcycle insurance cover would prove you will be not merely responsible:you’re smart with each of your money much too!

  3. parts will serve you well in cases from emergency.It’ll also reduce up about electricity, which we all believe that suntanning beds could eat up an excessive amount of.
    Dim bulbs of any sort tend towards cause an excessive amount of inconvenience.Ordinary bulbs, when maxed, harm this eyes, which was obviously a real no-no within a workplace or perhaps a home office environment.You have to replace regular bulbs without delay when they’ve worn out, don’t a person? Well, similar principle is true of bed bulbs.Dimmer suntanning bed bulbs most likely is not especially damaging, bparts will serve you well in cases from emergency.It’ll also reduce up about electricity, which we all believe that suntanning beds could eat up an excessive amount of.

    Dim bulbs of any sort tend towards cause an excessive amount of inconvenience.Ordinary bulbs, when maxed, harm this eyes, which was obviously a real no-no within a workplace or perhaps a home office environment.You have to replace regular bulbs without delay when they’ve worn out, don’t a person? Well, similar principle is true of bed bulbs.Dimmer suntanning bed bulbs most likely is not especially damaging, but you have to spend more time on the bed as opposed to usual just to discover the tan you need.This signifies spending longer and an electrical source than you had been initially prepared to.Having the bulbs need replacing in the midst of an necessary tanning period simply might not do.

    Usually you’ll find the best replacement parts for the tanning bed from your manufacturer.You will find generic bulbs, electric cord timers and acrylic parts out there, but people who fit a bed best may only be accessible from the particular dealers because of whom you bought the item.This is why it becomes beneficial to get from a steady dealer, one who’s been with us for a little bit, and would stick around.Your dealer should likewise get to advise everyone about very good trade-in savings or alternatives in case the parts you need become terminated.

    A concern regarding first-time owners of large health and beauty equipment for example tanning beds is the high price of obtain and upkeep.You do not have to worry about this if you keep a shut eye on discounted prices.Clearance as well as holiday sales often is the best times to replenish on tanning bed regions.

  4. e wanted length quickly and without messing up the continuing to be roll.The convenient product has place for kitchen paper throws, salt and even pepper shakers napkins and features a handy knife for wellbeing of slicing the goes.
    Customized to select from for men produce very suitable gift.Shopping on-line will enable to generate a hat the fact that the receiver may appreciate if perhaps his activity or hobbies are noted.Fishing enthusiasts inclue wanted length quickly and without messing up the continuing to be roll.The convenient product has place for kitchen paper throws, salt and even pepper shakers napkins and features a handy knife for wellbeing of slicing the goes.

    Customized to select from for men produce very suitable gift.Shopping on-line will enable to generate a hat the fact that the receiver may appreciate if perhaps his activity or hobbies are noted.Fishing enthusiasts including would absolutely adore an angler’s baseball cap.

    Toys within the like of Melissa and even Doug knowing tools in which let children sun along together with provide various learning undoubtedly are a super option for merchandise for little children.Similarly for you if you are like fruits they waiting to have this apple swap plate not to mention outlet addresses.The handle fits throughout the outlet and increases the available decorations too.

    Since plenty of people like use their mailbox or records under some fridge magnet rather then stuffing them in a very drawer, magnets too produce useful gift for.

    Office organizers, software programs, electronics together with other similar stuff will impress people work relating to computers.These comfortable items go quite some distance to transparent the things spread on work spot and cost a reduced amount of than virtually anyone would imagine.

  5. es and cables probably vex an individual.Just as you have located a box jam packed with them – obviously not used at this moment – from a closet will not mean you need to chunk them within the trash can easily.
    Even while technology adjustments rapidly, our capability buy most of the latest gadgets will not quite sustain.In quick, you do not know when some cables might can be found in handy.In addition, some of which are pricey.You could possibly try distancing them simply by probably make use of possibilities, though honestly, an excellent to complete is abandon the package alone.Maybe maintained up by being sure all the actual cables are generally neatly in the box.That could be it.
    When you’re trying to regulate the wires that hang up down all the wall on the equipment to surge protection inside the electrical electric outlet, nothing increases results than cheap zip scarves.Once most of us used breads twist ties to do thies and cables probably vex an individual.Just as you have located a box jam packed with them – obviously not used at this moment – from a closet will not mean you need to chunk them within the trash can easily.

    Even while technology adjustments rapidly, our capability buy most of the latest gadgets will not quite sustain.In quick, you do not know when some cables might can be found in handy.In addition, some of which are pricey.You could possibly try distancing them simply by probably make use of possibilities, though honestly, an excellent to complete is abandon the package alone.Maybe maintained up by being sure all the actual cables are generally neatly in the box.That could be it.

    When you’re trying to regulate the wires that hang up down all the wall on the equipment to surge protection inside the electrical electric outlet, nothing increases results than cheap zip scarves.Once most of us used breads twist ties to do this chore.That plastic zero ties really are inexpensive, simplified, and are not undone by means of small, interested in children.Remember with all the plastic zero ties that as soon as they are wrapped across the cables plus secured, probably you’ll have to be able to cut that off in the event you plan for you to rearrange all the wires later on.Make of course you give enough room to correctly cut all the zip connect without slicing into from either of the wires.

    The exact same rule just for not losing cables relates to small cable television boxes, at the same time.The pack could serve being a adapter for that unit several day.

    Even while indoor cell phone cable is normally relatively cheap, hang into it as properly.Chances are usually that assuming you have had one or more phone inside your home, dial up internet, and have got networked almost any home personal computers, you find numerous old cell phone cable inside your home.With more and more going wifi or cable thus to their Internet provider today, the usage of so substantially phone cable television has decreased.However, it might can be found in handy for just a fax or even other organization or house item later in life.Since mobile cable is usually easily identified, feel liberal to bundle the software and indicated away.Perhaps you may bundle that by proportions or by just color, whichever is ideal for any organizational strategies.

    Just don’t forget, you is likely to need those types of cables once more some day time.Having a thought of where there’re stored and the direction they are stored will allow you get to your potential customers at the earliest opportunity.Label the particular boxes whilst you store these, even if ever the description can be as simple mainly because « black cables » and also « phone collection. » This would make searching for wanted cables that easier later in life.

  6. profits.Local retailers may agree to can help you sell your overstocks along with returned goods on consignment likewise.
    Get Online, Sell off Online
    Finding stuff selling online is just as easy simply because buying it out of your same on the internet source.eBay is the perfect place to uncover everything via antiques for you to huge plenty of merchandise that anyone can buy as well as resell in the profit.
    Locate different online sources utilizing search terms along the lines of wholesale liquidators, closeout vendors, and drop-ship assistance.These exact same sources can certainly be found on the web media like Yellow Internet pages and grouped ads for newspapers, commerce magazines, plus free weeklies.
    Public auction Action
    Unclaimed, marginally damaged, and repossessed merchandise is available at shipping claims plus government discounts.Check typically the Yellow Websites for get in touch with information andprofits.Local retailers may agree to can help you sell your overstocks along with returned goods on consignment likewise.

    Get Online, Sell off Online

    Finding stuff selling online is just as easy simply because buying it out of your same on the internet source.eBay is the perfect place to uncover everything via antiques for you to huge plenty of merchandise that anyone can buy as well as resell in the profit.

    Locate different online sources utilizing search terms along the lines of wholesale liquidators, closeout vendors, and drop-ship assistance.These exact same sources can certainly be found on the web media like Yellow Internet pages and grouped ads for newspapers, commerce magazines, plus free weeklies.

    Public auction Action

    Unclaimed, marginally damaged, and repossessed merchandise is available at shipping claims plus government discounts.Check typically the Yellow Websites for get in touch with information and even newspaper divided section with regard to upcoming gross sales.

    There could storage system operation upon every corner at present.The backup company auctions heli-copter flight contents with unpaid rentals units.But the contents are purchased sight invisible, there’s quite possibly enough sales worthy merchandise inside to assist you to break perhaps.

    Estate fine art auctions are a different great reference for selecting stuff selling online.For instance garage marketing, high profit estates yield the very best finds, but gems can be obtained regardless on the estate’s net sale worth.These marketing are advertised while in the newspaper.

    Shed Shipping

    Drop shipping is undoubtedly an easy, hands off technique to sell on the net.You give the order to your manufacturer as well as distributor so they ship your jewelry to the purchaser.No commodity or shipment hassles to keep worrying about.

    Area Events

    Bazaars, flea sells, and fairs are beneficial sources for patio furniture from unique hand made crafts for you to valuable collectors’ items.Like flea market sales, you can visit near termination time intended for deep low priced deals.

    Check aided by the local seminar and visitors’ bureau to discover more regarding upcoming industry events that are available to the open public.You’ll have the ability buy as a result of manufacturers together with sale repetitions selling the modern products available to buy.

    Ocean going Action

    Asia is a wonderful source intended for finding stuff distribute online.Having said that, the reddish colored tape as well as cost in contacting sources there will be a trouble.Your most effective bet is almost always to hook up that has a manufacturer’s rep who have overseas internet connections.There’s plenty of available dwelling grown origins for discovering products selling to makes option useless.

  7. ng with the streets.Think of yourself in Venice, having some sort of smooth gondola ride with you wife or husband.Imagine yourself surrounded via the rich back ground of Ireland in europe & Austria.Get some sort of taste involving authentic In german beer or simply Russian vodka & caviar or make a bite of a scrumptious Swiss or Belgian sweets.Aaaaaaaah, the taste from travel!
    Europe offers a wild cornucopia of anything & all enjoyable.From the vas collection of the world’s greatest craft pieces within Italy, to the holy & somber Vatican, to the swinging parties in England and also to the Moorish architectures associated with Spain.All thng with the streets.Think of yourself in Venice, having some sort of smooth gondola ride with you wife or husband.Imagine yourself surrounded via the rich back ground of Ireland in europe & Austria.Get some sort of taste involving authentic In german beer or simply Russian vodka & caviar or make a bite of a scrumptious Swiss or Belgian sweets.Aaaaaaaah, the taste from travel!

    Europe offers a wild cornucopia of anything & all enjoyable.From the vas collection of the world’s greatest craft pieces within Italy, to the holy & somber Vatican, to the swinging parties in England and also to the Moorish architectures associated with Spain.All these are definitely up for grabs when most people avail from cheap travel and leisure Europe.

    Take your family with you actually or your category of friends, plan a victory vacation with your officemates and / or teammates-avail from the awesome less expensive travel The world package!

    Cheap travel and leisure Europe is also a very good gift to all your parents when they celebrate its 50th loved-one’s birthday.Nothing reveals « Thank you » better than a rather long European vacation for cheap travel and leisure Europe.

    Cheap travel Europe is a great way to treat your self after slaving for several years & earning a living nonstop.Take a short break in the demands from a corporate existence; take yourself from the tension & problems of dealing with deadlines & just enjoy life for a while.There might be nothing compatible with the Western european ambiance to ease away every one of your tensions.

    Take advantage of cheap travel and leisure Europe! Who says you have to pay full when you are able get the same deal from a much low priced! Cheap travel and leisure Europe is the best way to do if you want a.Traveling on a budget isn’t that terrible, as long as it gets a person where you need to go safer & smart.Cheap journey Europe, see all of Europe on the shoestring expense plan!

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *