This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
INSTALL.txt
134 lines (88 loc) · 5.03 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
ASP-VBScript-CMS Installation Instructions
This document is intended to help you get started using the application and
contains instructions for installing and configuring the software on your
local development server as well as on production servers.
INTRODUCTION
ASP VBScript CMS is built for rapid configuration AND deployment to enable
you to get your client sites up as quickly as possible. There are as little
as three steps to getting setup on localhost.
ASP-VBScript-CMS tends to use more convention over configuration, so if you
accept this and go with the flow, things will be much quicker to setup. That
being said, the cms facilitates customization and configuration to fit your
development or production environment. These are the basic steps to setup the
software. Each step is explained in further detail below.
1. Unzip and create a new project.
2. Rename the database file.
3. Update the PROJECT_NAME in the configuration file.
4. Create the virtual directory in IIS.
Note that if your only testing out ASP VBScript CMS then you can simply unzip
the file and skip to the last step, setting up your virtual directory, name
it "cms" and it should work out of the box at http://localhost/cms/
INSTALLATION
1.a) Download and unzip the source code.
Unzip the downloaded project file (asp-vbscript-cms.zip) to your projects
directory. The path to the project can be anything you like. For example:
* C:\Projects\
* C:\Documents and Settings\username\My Documents\Projects\
1.b) Create a new project
Rename the unzipped folder asp-vbscript-cms to the name of the project you
are creating. For demonstrative purposes, lets create a project called "New
Project".
* C:\Projects\new_project\ is the project path
* C:\Projects\new_project\public\ is the site root
TIP: When assigning a Project name (PROJECT_NAME in the code) please use only
lowercase letters ASCII letters, numbers, underscores and dashes. A short
string of 3 to 10 characters works best. Spaces are not advised.
The standard project folder structure looks like this:
new_project\
.\core\ <-- all CMS core files
.\data\ <-- databases should be located above the web root
.\public\ <-- web root (aka public_html)
.\public\admin\ <-- default CMS Administration interface location
.\public\modules\ <-- add-on modules location
.\public\
.\assets\ <-- project assets (information architecture, design comps, etc)
2) Update PROJECT_NAME in the configuration file to match the Project name.
Open the file .\core\configuration.asp and change the PROJECT_NAME string to
match the Project name.
const PROJECT_NAME = "new_project"
3) Create the virtual directory.
In IIS Administrator, add a new virtual directory using the *public* folder,
NOT the project root folder!
* Virtual directory alias: new_project
* Virtual directory folder: C:\Projects\new_project\public\
NOTE: The virtual directory alias MUST BE THE SAME as the the Project name,
the database file name, and the PROJECT_NAME configured in the previous steps.
Now your done setting up the CMS on localhost you will be able to access your
new project's front end website here:
* http://localhost/new_project/
* http://localhost/new_project/admin/
o user: admin
o pass: password
INSTALLING TO PRODUCTION SERVER
1) Upload the entire project to the webserver, via FTP (SFTP recommended), or
using your favorite code revision control utility. GIT and Subversion are our
recommended choices for keeping code in sync between development, staging,
and production servers.
2) If you are using a production server, you should set the ENVIRONMENT const to
"production" in .\core\configuration.asp. While this is technically not a
required step, it helps to avoid accidental loss of data and other random
fatalities that often happen while synchronizing local development code with
production server code.
Rename or copy .\data\development.mdb to: .\data\production.mdb
*NOTE: Only Microsoft Access MDB files are supported by ASP VBScript CMS.*
CUSTOMIZATIONS THAT VARY FROM THE CONVENTIONS
To get an idea of the variables available to customize your applicaiton,
including its installation location and the database locations look at the
following files:
.\core\configuration.asp
.\core\config\globals.asp
TROUBLESHOOTING ON LOCALHOST
Getting strange errors creating new pages in the admin?
In order to create pages from the administration web interface, IIS must be
given permission to create files in your project folder. The IUSR_ must have
write permissions on the site folder.
This was my solution to getting around not having a url rewrite module
available on the production server (1and1.com).
The file created can be placed in subfolders and its contents are simply an
include of 404.asp (the file that currently drives everything on the site).