[ 
http://mifosforge.jira.com/browse/MIFOSADMIN-185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63456#action_63456
 ] 

Keith Pierce commented on MIFOSADMIN-185:
-----------------------------------------

Virtual-host cleanup will require some database cleanup as well.

Current setting for File System Path is {{sites/rollout.mifos.org/files}} (see 
this [settings page|http://mifos.org/admin/settings/file-system]). Drupal 
describes this system variable as follows:

bq. A file system path where the files will be stored. This directory must 
exist and be writable by Drupal. If the download method is set to public, this 
directory must be relative to the Drupal installation directory and be 
accessible over the web. If the download method is set to private, this 
directory should not be accessible over the web. Changing this location will 
modify all download paths and may cause unexpected problems on an existing site.

Of the 703 entries in database table {{files}}, the {filepath}} field of 289 
are set to {{sites/rollout.mifos.org/...}}. If the virtual host name 
{{rollout.mifos.org}} is removed, Drupal won't be able to find the files.

Workaround: 

# After cleaning up virtual hosts, replace all file paths like 
"{{/sites/rollout.mifos.org/...}}" with "{{/sites/mifos.org/...}}"
# Change File System Path to {{sites/mifos.org/files}}.
# Files do not need to be moved, since directory {{sites/rollout.mifos.org}} is 
soft-linked to {{sites/mifos.org}}.

> Clean up virtual hosts on mifos.org/mifos.com
> ---------------------------------------------
>
>                 Key: MIFOSADMIN-185
>                 URL: http://mifosforge.jira.com/browse/MIFOSADMIN-185
>             Project: mifos administration
>          Issue Type: Task
>            Reporter: Keith Pierce
>
> Apache's virtual-host configuration for mifos.com and mifos.org needs to be 
> cleaned up and reorganized, in parallel with reorganizing the Drupal site's 
> subdomains. Proposed changes:
> h3. Production site ({{/var/www/mifos}})
> Reorganize the sites folder to contain just these three subdomains under Git 
> control:
> * {{default}}
> * {{all}}
> * {{mifos.org}}
> * {{mifos.com}}
> h5. Details: 
> * Remove these subdomains from {{/var/www/mifos/sites}}:
> ** {{beta.mifos.org}}
> ** {{rollout.mifos.org}}
> ** {{test.mifos.com}}
> ** {{mifos.com}} as a symlink to {{default}}
> ** {{www.mifos.com}} (Apache rewrites this url as mifos.com)
> ** {{www.mifos.org}} (Apache rewrites url as mifos.org)
> * Add subdomain {{mifos.com}} (not symlinked)
> An administrator will maintain git-ignored settings files 
> ({{sites/mifos.com/settings.php}} and {{sites/mifos.org/settings.php}}) 
> configured with their respective database settings.
> h3. Test site ({{/var/www/mifos_testing}}
> Reorganize to contain the three subdomains under Git control, plus two 
> ignored subdomains for testing.
> * {{default}}
> * {{all}}
> * {{mifos.org}}
> * {{mifos.com}}
> * {{test.mifos.org}} (ignored by Git)
> * {{test.mifos.com}} (ignored by Git)
> h5. Details:
> * Remove these subdomains from {{/var/www/mifos_testing/sites}}:
> ** {{beta.mifos.org}}
> ** {{rollout.mifos.org}}
> ** {{www.mifos.com}}
> ** {{www.mifos.org}}
> * Disable Apache virtual host {{mifos_testing} and remove it from 
> {{/etc/apache2/sites-available}}
> * Add Apache virtual hosts {{test.mifos.com}} and {{test.mifos.org}} rooted 
> at {{/var/www/mifos_testing}}.
> A test administrator will maintain git-ignored settings files 
> ({{test.mifos.com/settings.php}} and {{test.mifos.org}}) configured with test 
> databases, usually snapshots of production databases.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to