Corey Ganser > Technology > Setup and configuration for Prestashop, Wordpress MU, and Deki

Setup and configuration for Prestashop, Wordpress MU, and Deki

I got a VPS at Linode and started working on installing Prestashop (open source ecommerce), Wordpress MU (mutliple instance Blogging platform) and MindTouch Deki (Enterprise Wiki) 

Note: This configuration is running on Debian Lenny

 

To get started I installed prestashop and wordpress MU.  I was able to gain access to the install directories by hitting the main server IP and then hitting the subdirectories that the packages were in. Example:  

http://ipaddress/wordpress-mu
http://ipaddress/prestashop/

Once they were installed then I went through and configured the apache settings.  This was no walk in the park, but thanks to the never ending vastness that is the internet I was able to gleam information and get it working.  First I created a file for each configuration and put it in the sites-available folder. 

Here are the following configurations (I removed email and domain values for privacy sake):

Prestashop Virtual Host File

 

<VirtualHost *>
        ServerAdmin youremail@domain.com
        ServerName  domain.com
        ServerAlias domain.com

        # Indexes + Directory Root.
        DirectoryIndex index.php
        DocumentRoot /var/www/prestashop/

        # CGI Directory
        #ScriptAlias /cgi-bin/ /home/www/www.example.com/cgi-bin/
        #<Location /cgi-bin>
        #        Options +ExecCGI
        #</Location>

        # Logfiles
        ErrorLog  /var/www/prestashop/logs/error.log
        CustomLog /var/www/prestashop/logs/access.log combined
        <Directory /var/www/prestashop/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride FileInfo Options
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

Wordpress MU Virtual Host File

Note that for the wordpress MU the Server Alias is a wildcard domain, this allows for on the fly creation of subdomain blogs

 <VirtualHost *>
        ServerAdmin youremail@domain.com
        ServerName  domain.com
        ServerAlias *.domain.com

        # Indexes + Directory Root.
        DirectoryIndex index.php
        DocumentRoot /var/www/wordpress-mu/

        # CGI Directory
        #ScriptAlias /cgi-bin/ /home/www/www.example.com/cgi-bin/
        #<Location /cgi-bin>
        #        Options +ExecCGI
        #</Location>


        # Logfiles
        ErrorLog  /var/www/wordpress-mu/logs/error.log
        CustomLog /var/www/wordpress-mu/logs/access.log combined

   <Directory /var/www/wordpress-mu/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride FileInfo Options
                Order allow,deny
                allow from all
        </Directory>


</VirtualHost>

 

Once I got the virtual hosts in place I enabled the sites by invoking each file name as follows:

a2ensite wordpressmu
a2ensite prestashop

Once I had the sites enabled I renamed the wordpress site to 000-wordpressmu so that it would load first, long story short this took me a lot of time to resolve. Once I renamed it (by invoking the move command) then I reloaded apache and confirmed that the sites were accessible by their domains. Note that I setup the domains on an external service and pointed the A record at the server.

Once this was set then I went through and installed Deki and enabled its virtualhost file too.  

Note2: Check your ports.conf file and make sure that the NameVirtualHost line has just * as opposed to *:80, this needs to match the top of you virtual host files otherwise apache will complain and there will be resolution issues. 

 I reloaded Apache and everything resolved. 

Note that the Virtualhost file for Deki was installed automatically.  MindTouch Deki is sooo easy to install. 

Tag page
Viewing 8 of 8 comments: view all
Hi ... my name is Mario .... I'm Italian and I have a problem ... I installed debian lenny on my computer and than Xampp (Apache 2.2.12, MySQL 5.1.37, PHP 5.3.0 etc.) Now, Apache, mysql, etc. it is all right ....so I created the dbase and I downloaded prestashop and I given all the permission required ... ... but when I try to install prestashop with my browser "http://localhost/prestashop/install/" prestashop open a page (all red) just with on the top "forum - prestashop.com - etc..." and nothing in the rest of the page ..... My I have your help .... Thanks
Posted 23:33, 18 Dec 2009
Thank you very much for posting Look very interesting. Shop Buy Cheap Discount 24Hrs. Hoop Glider and Ottoman : Intermatic Timer Switch Shop: Keurig Coffee Maker Shop : Juice Fountain
Posted 10:39, 3 Feb 2010
Thanks so very much for taking your time to create this very useful and informative site. I have learned a lot from your site. Thanks!! I think you have done an excellent job with your site. I will return in the near future. wedding dresses wholesale wedding dresses designer wedding dresses bridal gowns bridal dresses Strapless Wedding Dresses Beach Wedding Dresses Ball Gown Wedding Dresses
Posted 09:43, 2 Mar 2010
Interesting post. I have been wondering about this issue, so thanks for posting. I’ll likely be coming back to your blog. Thanks ever so much, very great article! If you do not mind, please visit my article related to pandeglang district in Banten, Indonesia at Kenali dan Kunjungi Objek Wisata di Pandeglang or you can visit the second Kenali dan Kunjungi Objek Wisata di Pandeglang is very pleasure to meet you there. Thank you so much. Wedding Dresses Wholesale Wedding Dresses Wedding Dresses 2010 Beach Wedding Dresses A-Line Wedding Dresses Strapless Wedding Dresses
Posted 06:58, 8 Mar 2010
Viewing 8 of 8 comments: view all
You must login to post a comment.