Welcome to Deadbeef.com
Articles and tips on software from authored by Jeremy Bettis.

Search

XML Feed RSS

What is RSS?

Who's Online?

  • Guest Users: 15

Installing b2evolution in a virtual domain environment

01/21/06

Permalink 01:30:00 pm, by Jeremy Email , 228 words, 8782 views   English (US)
Categories: Apache, B2Evolution

Installing b2evolution in a virtual domain environment

Steps to install b2evolution for all domains on your server.

  1. Download b2evolution 1.6

  2. Install the package to a common location like /var/www/b2evolution

  3. Create an alias that maps the virtual dir _blogs to that folder, i.e create a file /etc/httpd/conf.d/b2evolution.conf with this one line in it:

    Alias /_blogs /var/www/b2evolution/blogs
    <Directory /var/www/b2evolution/blogs>
    <Files _*.php>
    Deny from all
    </Files>
    </Directory>

  4. Reload apache: service httpd reload

  5. Put this code in /var/www/b2evolution/blogs/conf/_config_TEST.php

    <?php
    $baseurl = "http";
    if ($_SERVER['HTTPS'])
    $baseurl .= "s";
    $baseurl .= "://" .$_SERVER['HTTP_HOST'];
    if (($_SERVER['SERVER_PORT'] != 80 && !$_SERVER['HTTPS']) || ($_SERVER['SERVER_PORT'] != 443 && $_SERVER['HTTPS']))
    $baseurl .= ":". $_SERVER['SERVER_PORT'];
    $baseurl.= "/_blogs/";
    ?>

  6. Create a new blog, and set the Blog Folder URL to "Absolute URL", and your domain, i.e http://www.example.com/

  7. You can use "Automatic detection by index.php"


  8. Copy the a_stub.php to the document root of your virtual domain as index.php. This is the only file that needs to be copied to each virtual domain. Configure the $blog parameter and replace the last few lines of the file with this code:

    /**
    * That's it, now let b2evolution do the rest! :)
    */
    require '/var/www/b2evolution/blogs/evocore/_blog_main.inc.php';

Comments, Pingbacks:

Comment from: Pat [Visitor] Email
I am already using the Virtual domaian settings to have Email Application. I am concern that this will interfer with my email isntallation.

But I do love this idea of having blog basically associated with the email apllication

Thanks
Pat
PermalinkPermalink 10/31/06 @ 15:54
Comment from: Jeremy [Member] Email · http://www.deadbeef.com
This doesn't have anything to do with email, these are just apache settings.
PermalinkPermalink 10/31/06 @ 16:26

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

May 2008
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Sponsored Links

Categories

powered by
b2evolution