My favorites | Sign in
Logo
                
Search
for
Updated Yesterday (33 hours ago) by samuli.jarvela
Labels: Phase-Deploy, Featured
Installation  
Installation instructions

1. Installation

  1. Unzip Mollify installation package (for example with command "unzip mollify_[VER].zip")
  2. Copy extracted directory "mollify" into your web server root directory (or any other place of your choice)
  3. Create configuration file, see instructions in chapter 3.
  4. You are ready to go. Open address "http://your.host.name/mollify" (if installed into root) to enter Mollify.
  5. If you've chosen database configuration, remember to configure users and published folders in configuration (accessible to admin users in the menu under the user name in top right corner)

2. Upgrading

Upgrading Mollify requires following steps:
  1. For backup, move or rename old installation directory "mollify" into different name or location
  2. Copy directory "mollify" from the latest Mollify installation package
  3. From backup, restore "configuration.php" into the new installation directory (as well as other customized files, such as "index.html")
  4. Remove backup directory
If you are upgrading from Mollify version 0.9, remove also directory "org.sjarvela.mollify.App" (in 1.0, this is located at "mollify/client").
With MySQL installations, also database may require an upgrade. Check this by opening installation script with at "http://your.host.name/mollify/backend/install", and it will start upgrade if required.

3. Configuration

Mollify supports different kind of configuration options.

From technical point of view, Mollify supports file based configuration, and database (MySQL) based configuration. File based configuration is configured manually and is static. Database configuration, on the other hand, can be configured from client.
From functional point of view, Mollify supports single user configuration and multi user configuration. In single user configuration, no authentication is required and all access rules apply to everybody. In multi user configuration different user accounts are set up, where different users can have different published directories and different access permissions.
Database configuration is always multi user configuration, where file based configuration can be set to either kind.
To choose the configuration type, consider following:
  • Single user configuration is suitable only when you don't want to control or limit the way how different users access files.
  • File based configuration is best for static environments, ie. where users or published directories don't change often.
  • Database configuration requires a bit more effort in installation, but allows configuration directly from Mollify client.
Backend file "configuration.php" contains all configuration properties needed by Mollify, and contents depend on which type of configuration is chosen. Create "configuration.php" under directory "mollify/backend", examples can be found in folder "example" in installation package.

Then, follow instructions based on configuration type:

Also, see instructions on additional configuration options.

4. Modifying Installation

4.1. Relocating host page or backend interface files

Host page can be located anywhere, the only thing that matters is that backend interface files (*.php) are located under the same directory or in its subdirectories.
If you wish to locate backend interface files (*.php) into a subdirectory, you must define this location in the host html file, with following format:
	<html>
		<head>
			...
			<meta name="mollify:property" content="service-path=[RELATIVE_PATH]">
		</head>
		...
	</html>
Replace [RELATIVE_PATH] with path to the backend interface files, relative to the host file. Note that path can only descend, you cannot go upwards in the folder hierarchy, and thus all leading dots and slashes are removed ("." and "/").
For example, if you place host file in http://your_host_name/mollify.html and the backend interface files into http://your_host_name/mollify/scripts/, the setting should be as follows:
	<meta name="mollify:property" content="service-path=mollify/scripts">

4.2. Relocating client application files

Client application files ("/mollify/client") can be located anywhere, only the javascript and theme css references in the host page must be updated to match the new location. While the location and the name of the client folder can be changed, do not alter its contents.

4.3. Customizing Mollify host page, or integrating Mollify into existing web page

Host page structure can be freely modified, as long as following rules are met:
  • Page must declare charset as UTF-8 with following: <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  • Javascript file "org.sjarvela.Mollify.nocache.js" must be linked
  • In the page, there must be a div with id "mollify". Client application is injected inside this element.

Comment by fauzievolute, Dec 20 (3 days ago)

i get this message when install from backend/install/ "MySQLI extension not detected"

How to fix it?

Comment by samuli.jarvela, Yesterday (33 hours ago)

MySQLI is required for the installer, and you have to manually create needed tables. See instructions at http://code.google.com/p/mollify/wiki/ConfigurationMySql


Sign in to add a comment
Hosted by Google Code