source: trunk/install.txt

Last change on this file was 2, checked in by george, 14 years ago
  • Přidáno: Trunk revize 13719.
File size: 20.6 KB
Line 
1Please, check this URL before installation: http://www.boonex.net/dolphin/wiki/ThingsToKnow
2
3
4== Brief Installation Overview ==
5
6These are quick instructions for those who already tried to install web scripts. More detailed instructions follow.
7
8 * Download and unzip the Dolphin package, if you haven't already.
9
10 * Create a database for Dolphin on your web server, as well as a MySQL user who will have all privileges for accessing and modifying it.
11
12 * Place the Dolphin files in the desired location on your web server::
13
14 If you want to install Dolphin in the root folder of your domain (e.g. http://mysite.com/), upload the unzipped files into the root directory of your web server.
15
16 If you want to have your Dolphin installation in its own subdirectory on your web site (e.g. http://mysite.com/mycommunity/), create the corresponding subdirectory under the root folder of your server and upload the unzipped files into that subdirectory.
17
18
19
20 * Run the Dolphin installation script by accessing install/index.php in your favorite web browser::
21
22 If you installed Dolphin in the root directory, you should visit: http://mysite.com/install/index.php
23
24 If you installed Dolphin in its own subdirectory called mycommunity, for example, you should visit: http://mysite.com/mycommunity/install/index.php
25
26 * Follow the instructions on the installation screen (setting permissions, inputting necessary info, setting cron jobs).
27
28 Dolphin should be installed now. If you still doubt that the above instructions are not enough for you. You are welcome the page with [wiki:DetailedInstall detailed instructions].
29
30
31
32
33== Detailed installation instructions ==
34
35=== Step 1: Download and Extract ===
36
37[http://www.boonex.com/products/dolphin/download/ Download] and unzip the Dolphin package.
38
39 * If you are going to upload Dolphin to a remote web server, download it to your computer with your favorite web browser and unzip the package into some folder on your local computer.
40
41 * If you have shell access to your web server, you may wish to upload the Dolphin archive directly to your web server using an FTP client. This way, you will avoid FTPing multiple files which usually takes a long time. Then you will ba able to unzip the package under your shell account using the following command:
42{{{
43 unzip Dolphin-v.X.X Dolphin-v.X.X.zip
44}}}
45
46 "v.X.X" stands for current latest version index. Thus, the Dolphin package will be extracted into the folder called Dolphin-v.X.X in the same directory where you have uploaded Dolphin-v.X.X.zip.
47
48
49=== Step 2: Create a Database and a User ===
50
51If your hosting provider has cPanel, you can follow these instructions to create your Dolphin database and user.
52
53 1. Log in to your cPanel.
54 2. Click MySQL Databases.
55 3. Create a database user:
56 1. Choose a username for Dolphin (for example "dolphin") and enter it in the Username field.
57 2. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and input it into the Password field.
58 3. Click Create user.
59 4. Create a Dolphin database and add the user to it:
60 1. Choose a name for your Dolphin database (for example "dolphin" or "community"), input it in the New Database field and click Create Database.
61 2. Under Add Users To Your Database, select your Dolphin username from the User dropdown list, then select your Dolphin database from the Database dropdown list. Make sure ALL is checked under Privileges, then click Add User To Database.
62 5. When you return to the main MySQL Account Maintenance screen, cPanel will list information about the database you just created. You should see the username you just added to the database (with ALL PRIVILEGES), as well as a few sample Connection Strings for you to use in Perl or PHP scripts to connect to the database. The PHP code will have the following format:
63{{{
64$dbh = mysql_connect("hostname", "username", "<PASSWORD HERE>") or die ("message");
65mysql_select_db("databasename");
66}}}
67 Write down the values of ''hostname'', ''username'', ''databasename'', and the password you have chosen. (Note that ''hostname'' will usually be ''localhost''.)
68
69
70'''Using phpMyAdmin'''
71
72If your web server has phpMyAdmin installed, and you are logged in as the MySQL administrator, you can follow these instructions to create your Dolphin username and database.
73
74'''Note''': These instructions are written for phpMyAdmin 2.6.1; the phpMyAdmin user interface can vary slightly between versions.
75
76 1. Create a database:
77 1. Choose a name for your Dolphin database (for example "dolphin" or "mycommunity"), enter it in the Create new database field and click Create.
78 2. Click the Home icon in the upper left to return to the main page, then click Privileges and follow these steps tp create a user:
79 1. Click Add a new User.
80 2. Chose a user name for Dolphin (for example "dolphin") and enter it in the User name field (make sure Use text field: is selected from the dropdown list).
81 3. Leave the Host field blank.
82 4. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field (make sure Use text field: is selected from the dropdown list.) Re-enter the password in the Re-type field.
83 3. Write down the username and password you have chosen.
84 4. Leave the default values for the Global privileges section.
85 5. Click Go.
86 2. Return to the Privileges screen and click the Edit privileges icon on the user you've just created for Dolphin. In the Database-specific privileges section, select the database you've just created for Dolphin from the Add privileges to the following database dropdown list. The page will refresh with privileges for that database. Click Check All to select all privileges, and click Go.
87 3. On the resulting page, make note of the host name listed after Server: at the top of the page. (This will usually be ''localhost''.)
88
89
90'''Using MySQL Client'''
91
92If you have shell access to your web server, are comfortable with using the command line, and your MySQL user has the permissions to create MySQL users and databases, you can follow the sample session below to create your Dolphin username and database.
93{{{
94$ mysql -u adminusername -p
95Enter password:
96Welcome to the MySQL monitor. Commands end with ; or \g.
97Your MySQL connection id is 5340 to server version: 3.23.54
98
99Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
100
101mysql> CREATE DATABASE databasename;
102Query OK, 1 row affected (0.00 sec)
103
104mysql> GRANT ALL PRIVILEGES ON databasename.* TO "dolphinusername"@"hostname" IDENTIFIED BY "password";
105Query OK, 0 rows affected (0.00 sec)
106
107mysql> FLUSH PRIVILEGES;
108Query OK, 0 rows affected (0.01 sec)
109
110mysql> EXIT
111Bye
112$
113}}}
114
115In the above:
116
117 * adminusername will typically be root, unless you have another high-privileged account set up.
118 * dolphin or mycommunity can be sample values for databasename.
119 * dolphin is a sample value for dolphinusername.
120 * hostname will usually be localhost. If you don't know what this value should be, refer to your system administrator. If you are the system administrator, just figure out what this value should be.
121 * password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.
122
123Write down the values you used for databasename, dolphinusername, hostname, and password.
124
125
126=== Step 3: Place the files ===
127
128Now you will need to decide where on your web site Dolphin script should be installed. These are possible options:
129
130 * In the root directory of your web site. (For example, http://mysite.com/)
131 * In a subdirectory of your web site. (For example, http://mysite.com/mycommunity/)
132
133Note: The location of your root web directory in the filesystem on your web server will vary across hosting providers and operating systems. Check with your hosting provider or system administrator if you do not know where this is.
134
135In the Root Directory
136
137 * If you need to upload your files into your web server, use your favorite FTP client to upload all the contents of the Dolphin-v.X.X.zip archive into the root directory of your web site.
138 * If your files are already on your web server, and you are using shell access to install Dolphin, move all of the contents of the Dolphin-v.X.X directory (but not the directory itself) into the root directory of your web site.
139
140
141In a Subdirectory
142
143 * If you need to upload your files into your web server, create a directory with your desired name in the root directory of your web site, then use your favorite FTP client to upload the contents of Dolphin-v.X.X.zip archive into the created directory.
144 * If your files are already on your web server, and you are using shell access to install Dolphin, move the Dolphin-v.X.X directory to your desired location within the root directory of your web site and rename the directory to your desired name.
145
146
147=== Step 4: Run the Install Script ===
148
149Using your favorite web browser, navigate to install/index.php within the directory into which you have just installed Dolphin on your web site:
150
151 * If you installed into a subdirectory called ''mycommunity'', you would navigate to http://mysite.com/mycommunity/install/index.php
152 * If you installed into the root directory of your web site, you would open http://mysite.com/install/index.php
153
154After this the installation instruction should appear in your browser's window. Follow them carefully to complete the installation. Here's a summary of the info you will have to specify:
155
156=== Permissions ===
157
1581. On the first page of the install process you can see the files and folders which permissions should be properly set up. There are two ways to do this:
159
160 * Using FTP client.
161 Log into your FTP account using your favorite FTP client and navigate to the folder in which you uploaded the contents of the Dolphin-v.X.X.zip archive.
162 Notice the folders and files names on the installation screen which are unwritable and set the following permissions using right click on the corresponding files and folders:
163{{{
164 writable for folder (777 means that the objects possessing these permissions will be readable, writable and executable).
165}}}
166{{{
167 writable for files (666 means that such objects will be readable and writable).
168}}}
169 NOTE: actual permissions may differ for different servers, depending on server configuation.
170
171 * Using shell client.
172 Log into your shell account using your favorite shell client and change directory for that which contains your Dolphin script files. Now run the following commands under your SSH prompt:
173
174Dolphin/Ray folders to be writable for script operation:
175
176{{{
177chmod -v 777 ./inc ./backup ./cache ./cache_public ./langs ./media/app ./media/images ./media/images/banners ./media/images/blog ./media/images/classifieds ./media/images/membership ./media/images/profile ./media/images/profile_bg ./media/images/promo ./media/images/promo/original ./tmp ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/Test ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI
178chmod -v 777 ./flash/modules/board/files ./flash/modules/chat/files ./flash/modules/photo/files ./flash/modules/im/files ./flash/modules/mp3/files ./flash/modules/video/files ./flash/modules/video_comments/files
179}}}
180
181Dolphin/Ray files to be writable to perform the installation of all of them:
182
183{{{
184chmod -v 666 inc/prof.inc.php
185}}}
186
187Ray XML files to be writable. This will allow you to install Ray Widgets via Ray Base easily:
188
189{{{
190chmod -v 666 ./flash/modules/global/data/integration.dat ./flash/modules/board/xml/config.xml ./flash/modules/board/xml/langs.xml ./flash/modules/board/xml/main.xml ./flash/modules/board/xml/skins.xml ./flash/modules/chat/xml/config.xml ./flash/modules/chat/xml/langs.xml ./flash/modules/chat/xml/main.xml ./flash/modules/chat/xml/skins.xml ./flash/modules/desktop/xml/config.xml ./flash/modules/desktop/xml/langs.xml ./flash/modules/desktop/xml/main.xml ./flash/modules/desktop/xml/skins.xml ./flash/modules/global/xml/config.xml ./flash/modules/global/xml/main.xml ./flash/modules/im/xml/config.xml ./flash/modules/im/xml/langs.xml ./flash/modules/im/xml/main.xml ./flash/modules/im/xml/skins.xml ./flash/modules/mp3/xml/config.xml ./flash/modules/mp3/xml/langs.xml ./flash/modules/mp3/xml/main.xml ./flash/modules/mp3/xml/skins.xml ./flash/modules/photo/xml/config.xml ./flash/modules/photo/xml/langs.xml ./flash/modules/photo/xml/main.xml ./flash/modules/photo/xml/skins.xml ./flash/modules/video/xml/config.xml ./flash/modules/video/xml/langs.xml ./flash/modules/video/xml/main.xml ./flash/modules/video/xml/skins.xml ./flash/modules/video_comments/xml/config.xml ./flash/modules/video_comments/xml/langs.xml ./flash/modules/video_comments/xml/main.xml ./flash/modules/video_comments/xml/skins.xml
191chmod -v 777 flash/modules/global/app/ffmpeg.exe
192}}}
193
194'''NOTE: Do not forget to install [http://www.boonex.net/ray/wiki/RayServerInstall Ray Media Server (RMS)] on your server or use some 3rd-party media server provided by your hosting provider'''.
195
196
197Click Next to continue.
198
199=== Script Paths ===
200
2012. On the second page of the install you will have to indicate the necessary paths demanded by the script. Here they are:
202
203 * Site URL: here you should indicate the URL of your Dolphin folder including "http", such as:
204 http://mysite.com/mycommunity/
205 (this path is usually properly determined by the installation script but you still should double check)
206
207 * Directory root: this should be the server absolute path to the Dolphin folder, such as:
208{{{
209 /home/myaccount/public_html/mycommunity/
210}}}
211(on Unix systems) or
212{{{
213 C:/webservers/home/myaccount/www/mycommunity/
214}}}
215(on Windows systems) This path is usually properly determined by the installation script but you still should double check.
216
217 * Path to php binary: here you should indicate the absolute path to php executable file on your server, such as:
218{{{
219 /usr/local/bin/php
220}}}
221(on Unix systems) or
222{{{
223 C:/php/php.exe
224}}}
225(on Windows systems) This executable will be used to run crons (periodic tasks).
226
227 * Path to ''mogrify'', Path to ''convert'' and Path to ''composite'': these paths indicate the location of [http://www.imagemagick.org/ ''ImageMagick''] applications, which will be necessary if ''php'' running on your server is not compiled with [http://www.boutell.com/gd/ ''GD library''];
228 ''Imagemagick'' is just an alternative for ''GD'' - image processing application;
229 if ''PHP'' is compiled with ''GD'' library and you're not going to use [http://www.imagemagick.org/ ''ImageMagick''] with Dolphin, you can omit these steps and keep the default values.
230 The actual paths can be such:
231{{{
232 /usr/local/bin/mogrify
233 /usr/local/bin/convert
234 /usr/local/bin/composite
235}}}
236 * Check ''GD'' installed: this field shows whether GD library is installed or not
237
238Click Next to continue.
239
240=== Database Credentials ===
241
2423. On the third page you will have to specify the database information:
243
244 * '''SQL file''': this is the relative path to the database creation file, which is determined by default. If your file resides in a different directory, you should indicate its relative path here. The base folder of the path is considered to be the Dolphin installation folder.
245
246 * '''Empty database''': choose "yes" or "no". Choosing "yes" will empty the whole database, i.e. removes its tables. Think twice before choosing this option. The option "no" is the default option and will make no harm to your database.
247
248 * '''Empty tables''': choose "yes" or "no". Choosing "yes" will empty all the tables in the database while keeping the tables structure intact. The default option is "yes" and you shouldn't make any changes here.
249
250 * '''Database host name''': here you should indicate the host name of your database, which is usually 'localhost'. Refer to the notes you made during database creation.
251
252 * '''Database name, Database user and Database password''': here you should indicate the name of the database and the user requisites you created in the '''Step 2'''. Again, refer to the notes you made when creating the database and the user.
253
254Click Next to continue.
255
256
257=== General Site Configuration ===
258
2594. On this page you will have to set up General Site Configuration:
260
261 * '''Site Title/Logo''': this is a word or phrase which will be displayed on the title bar of your web browser
262
263 * '''Site Description''': this is a phrase which will be placed to meta description in your site hmepage
264
265 * '''Site e-mail''': indicate the email which will be used for getting info about purchased memberships, mass mailer's status, spam reports, and requests for canceling subscriptions.
266
267 * '''Notify e-mail''': indicate the email address which will be shown in the "From" field of cupid and mass mails as well as profiles confirmation and activation messages.
268
269 * '''Bug report email''': indicate the email address to collecting MySQL bug reports for subsequent debugging.
270
271 * '''Set Admin Login information''' - you should choose the login and password for your Administration Panel.
272
273To enter your Administration panel please use the following URL:
274
275'''!http://www.mysitedomain.com/admin/''' - where ''!http://www.mysitedomain.com/'' is your actual domain.
276
277If you are installing Dolphin in a sub-directory then the URL will be:
278
279'''!http://www.mysitedomain.com/sub-directory/admin/'''.
280
281To login to the Administration Panel you should use the information which you have appointed above.
282
283
284=== Setting up Cron jobs ===
285
2866. If you made the previous steps correctly, the next step will guide you through the setting cron jobs.
287 To set up cron jobs, use one of the following ways:
288 1. Using CPanel:
289 1. Click the Cron Jobs link under your CPanel account and choose Advanced (Linux Style)
290 2. Indicate the email address for collecting information about cron execution
291 3. Return to the Dolphin installation page and copy the command to be run as cron (omitting the zeros and asterisks), for example:
292{{{
293 /usr/local/bin/php -q m:/home/localhost/www/d5605/periodic/cron.php
294}}}
295 and insert it into the first field of your CPanel cron jobs management page
296 schedule the time for this job, which also can be fetched from the Dolphin installation page, such as:
297{{{
298 * * * * *
299}}}
300 (which means: run the script every minute)
301
302 4. Apply the changes and click Back to return to the Cron Management page
303
304 2. Using shell (for experienced users):
305 run the following command
306{{{
307 crontab -e
308}}}
309 This will open your default text editor, where you will have to insert the following lines of code to be executed:
310{{{
311 MAILTO=myemail@mysite.com
312 * * * * * /usr/local/bin/php -q m:/home/localhost/www/d5605/periodic/cron.php
313 Save the file and exit the editor.
314}}}
315
316'''Hint: The above lines serve as an example. The actual Cron Job commands are generated by the script at 6th step of the installation process. And you can easily copy&paste them into the "crontab" file.'''
317
318=== Permission Reversal ===
319
3207. Now you should set the post-installation permissions and after '''delete the install folder'''.
321
322 * Using FTP client.
323 Log into your FTP account using your favorite FTP client and navigate to the folder in which you have installed Dolphin script.
324 Notice the chmod commands for specified folders and files on the final installation screen and set the following permissions using right click on the corresponding files and folders:
325{{{
326 755 for folders (755 means that the objects possessing these permissions will be readable and executable).
327}}}
328{{{
329 644 for files (644 means that such objects will be only readable).
330}}}
331
332
333 * Using shell client.
334 Log into your shell account using your favorite shell client and change directory for that which contains your installed Dolphin script. Now run the following commands under your SSH prompt:
335{{{
336 chmod -v 755 ./inc
337}}}
338 NOTE: it is ok to skip permission reversal step!
339
340'''Now you must delete the ''/install'' folder'''.
341
342'''NOTE: Do not forget to install [http://www.boonex.net/ray/wiki/RayServerInstall Ray Media Server (RMS)] on your server or use some 3rd-party media server provided by your hosting provider'''.
Note: See TracBrowser for help on using the repository browser.