-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathinstall.html
236 lines (179 loc) · 7.84 KB
/
install.html
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- $Id: install.html,v 1.15 2013/01/20 12:18:34 jact Exp $ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OpenClinic Install Instructions</title>
<meta http-equiv="imagetoolbar" content="no" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta name="author" content="Jose Antonio Chavarría" />
<meta name="copyright" content="2002-2013 Jose Antonio Chavarría" />
<meta name="keywords" content="OpenClinic, open source, gpl, healthcare, php, mysql, coresis" />
<meta name="description" content="OpenClinic is an easy to use, open source, medical records system written in PHP" />
<link rel="stylesheet" type="text/css" href="./css/openclinic.css" media="screen" title="OpenClinic" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="./css/ie6_fix.css" title="IE 6 Fix" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="./css/print.css" media="print" />
<link rel="shortcut icon" type="image/png" href="./img/miniopc.png" />
<link rel="bookmark icon" type="image/png" href="./img/miniopc.png" />
</head>
<body id="top">
<div id="wrap">
<div id="header">
<p id="logo">
<a accesskey="1" href="../index.php">
<img src="./img/openclinic-1.png" alt="OpenClinic" title="OpenClinic" height="58" width="291" />
</a>
</p>
<div id="shortcuts">
<ul>
<li><a href="./index.php">Start OpenClinic</a></li>
</ul>
</div><!-- #shortcuts -->
<div id="tabs">
<ul>
<li><a href="./index.html" class="first">Readme</a></li>
<li><a href="./install.html" class="selected">Install Instructions</a></li>
<li><a href="./changelog.html">Changelog</a></li>
<li><a href="./coding_guidelines.html">Coding Guidelines</a></li>
<li><a href="./demo_version.html">Demo Version Features</a></li>
</ul>
</div><!-- #tabs -->
</div><!-- #header -->
<hr />
<div id="main">
<div id="content">
<h1>Install Instructions</h1>
<h2 id="update"><a href="#top" title="To top of the page">Updating an Older Version of OpenClinic</a></h2>
<p>
If you have already created the OpenClinic database when installing an older version, follow these steps:
</p>
<ol>
<li>
Go to the <a href="./install/index.php">install <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> script</a>.
</li>
<li>
In the section <strong class="note">Install a SQL File</strong>, choose the right file in <code>install/upgrades/</code> directory.
</li>
<li>
If does not exist a correct upgrade file, <a href="#step7">skip to step 7 of next section</a>.
</li>
</ol>
<h2 id="install"><a href="#top" title="To top of the page">Installing OpenClinic for the First Time</a></h2>
<ol>
<li>
<p>Install a web server such as <a href="http://httpd.apache.org">Apache</a> that can execute cgi applications.</p>
<p>If you are running Linux, your Apache server should be packaged with your Linux installation and will start when you start Linux.</p>
</li>
<li>
<p>
Install the MySQL database from <a href="http://www.mysql.com">MySQL web site</a>.
</p>
<p>
If you are running Linux, MySQL should be packaged with your Linux installation and will start when you start Linux.
</p>
</li>
<li>
Get familiar with logging into MySQL with your admin account within a DOS prompt window. You can use the following command sequence as a test.
<pre class="sqlcode"><code>
C:\><kbd>c:\mysql\bin\mysql -u root -p mysql</kbd>
Enter password: <kbd>*********</kbd>
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: x.xx.xx
Type 'help;' or '\h' for help. Type '\c' to clear the buffer
mysql> <kbd>show databases;</kbd>
<samp>+--------------+
| Database |
+--------------+
| mysql |
| test |
+--------------+
2 rows in set (0.00 sec)
</samp>
mysql> <kbd>exit</kbd>
<samp>Bye
</samp>
C:\>
</code></pre>
</li>
<li id="step4">
Create an openclinic database. To do this, log into MySQL with your admin account and run the following SQL command.
<pre><code>
mysql> <kbd>create database openclinic;</kbd>
</code></pre>
<p>
To check to make sure the openclinic database was created properly run the following command.
</p>
<pre><code>
mysql> <kbd>show databases;</kbd>
<samp>+--------------+
| Database |
+--------------+
| mysql |
| openclinic |
| test |
+--------------+
3 rows in set (0.00 sec)</samp>
</code></pre>
</li>
<li id="step5">
Create an openclinic database user. To do this login to MySQL under the admin userid and run the following SQL command, substituting <var>openclinic_user</var> and <var>openclinic_password</var> with the userid and password of your choice.
<pre><code>
mysql> <kbd>grant all privileges on openclinic.* to <var>openclinic_user</var>@localhost</kbd>
-> <kbd>identified by '<var>openclinic_password</var>' with grant option;</kbd>
</code></pre>
</li>
<li>
Verify your openclinic database and user by logging into the new MySQL database under the new user.
<pre><code>
C:\><kbd>C:\mysql\bin\mysql -u <var>openclinic_user</var> -p<var>openclinic_password</var> openclinic</kbd>
</code></pre>
</li>
<li id="step7">
Copy the openclinic directory and all of its contents into your web server's htdocs root or any subdirectory within the htdocs root.
</li>
<li id="step8">
Edit the <code class="note">database_constants.php</code> file (located in the <code>openclinic/config/</code> directory) with the text editor of your choice. Change username and password to match the new MySQL user and password that you created in the previous steps.
</li>
<li>
Create the openclinic database tables. To do this run the <a href="./install/index.php">install <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> script</a>.
</li>
<li>
Make <code>css</code> and <code>tests</code> directories writtable for Apache user to allow upload files.
</li>
<li>
Access your new <a href="./index.php">clinic system</a>. Enter <code><kbd>admin</kbd></code> for both, the login and password whenever you are prompted to sign on. You can change the admin password from the <strong class="note">Admin » Users</strong>.
</li>
</ol>
</div><!-- #content -->
</div><!-- #main -->
<hr />
<div id="navigation">
<h2>Table of contents</h2>
<ul>
<li><a href="#update">Updating an Older Version of OpenClinic</a></li>
<li><a href="#install">Installing OpenClinic for the First Time</a></li>
</ul>
<p id="hosting">
<a href="http://sourceforge.net" title="Project hosted in SourceForge.net">Project hosted in SF.net</a>
</p>
</div><!-- #navigation -->
<hr />
<div id="footer">
<div id="app_info">
<p><a href="http://openclinic.sourceforge.net/">Powered by OpenClinic</a></p>
<p>
Copyright © 2002-2013 <a href="mailto:CUT-THIS.openclinic@gmail.com?subject=OpenClinic" accesskey="9">Jose Antonio Chavarría</a>
</p>
<p>
Under the <a href="./LICENSE" rel="license">GNU General Public License</a>
</p>
<p>
<a href="http://validator.w3.org/check/referer" id="xhtml11" title="Valid XHTML 1.1">Valid XHTML 1.1</a>
</p>
</div><!-- #app_info -->
</div><!-- #footer -->
</div><!-- #wrap -->
</body>
</html>