MonsterFile - Installation Guide
Thank you for purchasing MonsterFile. If you have any questions that are beyond the scope of this guide, please feel free to email via my user page contact form here. Thanks so much!
Requirements
- A Website On Which You Can Create A Subfolder (e.g. http://www.example.com/monster/)
- URL Re-Writing (Mod_Rewrite) On Domain (usually included as part of your web site hosting by default)
- PHP 5.3 (usually included as part of your web site hosting by default)
- A MySQL Database (usually included as part of your web site hosting by default)
Installation Guide
- Step 1 - Database Details
- Step 2 - Upload
- Step 3 - Rename htaccess
- Step 4 - Web Installation
- Step 5 - Accessing MonsterFile
Step 1 - Database Details
Before you upload anything to your website, in the application/configs
directory you will find a file called monster.ini
. Edit this file with a text editor and insert your MySQL database details. These are the lines to change:
- code
- source
- resources.db.params.host = "localhost"
- resources.db.params.dbname = ""
- resources.db.params.username = ""
- resources.db.params.password = ""
- monsterFile.directory = ""
resources.db.params.host = "localhost"
resources.db.params.dbname = ""
resources.db.params.username = ""
resources.db.params.password = ""
monsterFile.directory = ""
As an example, lets say your hostname stays as localhost
(usually the case, and if you can´t find what your hostname is, it will probably be localhost), your username is my_user
, your password is example
, your database name is my_database
then this is what you should have:
- code
- source
- resources.db.params.host = "localhost"
- resources.db.params.dbname = "my_database"
- resources.db.params.username = "my_user"
- resources.db.params.password = "example"
- monsterFile.directory = "/monster" // If you installed in root directory then leave this field blank
resources.db.params.host = "localhost"
resources.db.params.dbname = "my_database"
resources.db.params.username = "my_user"
resources.db.params.password = "example"
monsterFile.directory = "/monster" // If you installed in root directory then leave this field blank
Tip: Be careful to leave the double quotation marks around each item you change in place.
Step 2 - Upload
Upload the files from the package using FTP to a location that is accessible via the web. It is usually best to upload these files to their own folder, such as a folder called monster
that would be located at http://www.example.com/monster/
.
Step 3 - Rename htaccess
In root directory, there is a file named _.htaccess
. Before it can be used, this file should be renamed to .htaccess
If you wish to install in a subdirectory, you have to edit the .htaccess
Add the directory to the paths on line 9, 10, 11 and 16.
- code
- source
- SetEnv APPLICATION_ENV production
-
- RewriteEngine On
-
- RewriteRule ^\.htaccess$ - [F]
-
- RewriteCond %{REQUEST_URI} =""
- RewriteRule ^.*$ /monster/public/index.php [NC,L]
-
- RewriteCond %{REQUEST_URI} !^/monster/public/.*$
- RewriteRule ^(.*)$ /monster/public/$1
-
- RewriteCond %{REQUEST_FILENAME} -f
- RewriteRule ^.*$ - [NC,L]
-
- RewriteRule ^public/.*$ /monster/public/index.php [NC,L]
-
SetEnv APPLICATION_ENV production
RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ /monster/public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/monster/public/.*$
RewriteRule ^(.*)$ /monster/public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ /monster/public/index.php [NC,L]
Step 4 - Web Installation
Once the files are located somewhere that is accessible via the web, you'll be able to install the script (provided your MySQL details are correct). Point your web-browser to http://www.example.com/monster/install/
Step 5 - Accessing
After the web installation, you will be redirected to the login page. You can login using the email and password you selected during installation.