Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46820

Re: Creating multiple instances on Windows server

$
0
0
by Guillermo Madero S..  

Hi Michael,

Maybe you'll get a better picture if I describe my own setup. In my Y: drive I have a "lhost" directory to contain all "Web" related apps. At the first level there are two subdirectories: "db" to contain different database servers, and "home" to keep both the document root directory ("web") and folders that must be outside of the document root directory. So basically, this is my directory structure:

Y:
|
+-- lhost
      |
      +-- db
      |    |
      |    +-- MySql
      |         |
      |         +-- Data   ;MySQL InnoDB files, logs, etc.
      |              |
      |              +-- moodle   ;database schema files (*.frm)
      |
      +-- home
           |
           +-- moodledata   ;(outside of the document root directory)
           |
           +-- web   ;document root directory
                |
                +-- phpmyadmin
                |
                +-- moodle   ;installation directory
                |
                +-- wordp

Now, I'll show the related directives that must defined in the web server and database server configuration files

httpd.conf (the Apache web server configuration file).

ServerName localhost

DocumentRoot "y:/lhost/home/web"<Directory "y:/lhost/home/web">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all</Directory><IfModule dir_module>
    DirectoryIndex index.php index.html index.htm</IfModule>

my.ini (the MySQL database server configuration file).

datadir="Y:/lhost/db/MySql/Data/"

innodb_data_home_dir="Y:/lhost/db/MySql/data/"

 

Hope this helps. 


Viewing all articles
Browse latest Browse all 46820

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>