| 1 | Dolphin can be configured to work on a cluster. Cluster environment was provided by HostForWeb. |
| 2 | |
| 3 | '''Firstly'''. Do not delete this file on your hosting server. It must be put on your server by your hosting provider. |
| 4 | |
| 5 | '''''status.html''''' - in root folder for load balancer. |
| 6 | |
| 7 | |
| 8 | |
| 9 | '''Secondly'''. This is what must be done to configure Dolphin to work on 2 clusters. |
| 10 | |
| 11 | You should install Dolphin on both servers. |
| 12 | |
| 13 | Enter the root folder of Dolphin installation on both servers via SSH |
| 14 | and run the following script. It will link the folders of Dolphin to Network File System. |
| 15 | |
| 16 | |
| 17 | '''Note''': This is only an example of what must be done. The path to the |
| 18 | "'''/mnt/nas/'''" (Network File System) could be different on your server. So, the whole script must be re-written accordingly. |
| 19 | For this you can consult with your hosting provider or contact us. |
| 20 | |
| 21 | |
| 22 | {{{ |
| 23 | mv media /mnt/nas/ |
| 24 | ln -s /mnt/nas/media/ media |
| 25 | |
| 26 | mv groups/gallery/ /mnt/nas/groups_gallery |
| 27 | ln -s /mnt/nas/groups_gallery groups/gallery |
| 28 | |
| 29 | mv langs/ /mnt/nas/ |
| 30 | ln -s /mnt/nas/langs/ langs |
| 31 | |
| 32 | |
| 33 | mkdir /mnt/nas/inc |
| 34 | mv inc/menu_content.inc.php /mnt/nas/inc |
| 35 | ln -s /mnt/nas/inc/menu_content.inc.php inc/menu_content.inc.php |
| 36 | mv inc/params.inc.php /mnt/nas/inc |
| 37 | ln -s /mnt/nas/inc/params.inc.php inc/params.inc.php |
| 38 | |
| 39 | |
| 40 | mv ray/modules/board/xml/ /mnt/nas/ray_board_xml |
| 41 | ln -s /mnt/nas/ray_board_xml ray/modules/board/xml |
| 42 | |
| 43 | mv ray/modules/chat/xml/ /mnt/nas/ray_chat_xml |
| 44 | ln -s /mnt/nas/ray_chat_xml ray/modules/chat/xml |
| 45 | |
| 46 | mv ray/modules/im/xml/ /mnt/nas/ray_im_xml |
| 47 | ln -s /mnt/nas/ray_im_xml ray/modules/im/xml |
| 48 | |
| 49 | mv ray/modules/movie/xml/ /mnt/nas/ray_movie_xml |
| 50 | ln -s /mnt/nas/ray_movie_xml ray/modules/movie/xml |
| 51 | |
| 52 | mv ray/modules/mp3/xml/ /mnt/nas/ray_mp3_xml |
| 53 | ln -s /mnt/nas/ray_mp3_xml/ ray/modules/mp3/xml |
| 54 | |
| 55 | mv ray/modules/music/xml/ /mnt/nas/ray_music_xml |
| 56 | ln -s /mnt/nas/ray_music_xml/ ray/modules/music/xml |
| 57 | |
| 58 | mv ray/modules/presence/xml/ /mnt/nas/ray_presence_xml |
| 59 | ln -s /mnt/nas/ray_presence_xml/ ray/modules/presence/xml |
| 60 | |
| 61 | mv ray/modules/video/xml/ /mnt/nas/ray_video_xml |
| 62 | ln -s /mnt/nas/ray_video_xml/ ray/modules/video/xml |
| 63 | |
| 64 | mkdir /mnt/nas/ray_global |
| 65 | mv ray/modules/global/inc/cron.inc.php /mnt/nas/ray_global/cron.inc.php |
| 66 | ln -s /mnt/nas/ray_global/cron.inc.php ray/modules/global/inc/cron.inc.php |
| 67 | mv ray/modules/global/js/integration.js /mnt/nas/ray_global/integration.js |
| 68 | ln -s /mnt/nas/ray_global/integration.js ray/modules/global/js/integration.js |
| 69 | |
| 70 | mv ray/modules/board/files /mnt/nas/ray_board_files |
| 71 | ln -s /mnt/nas/ray_board_files ray/modules/board/files |
| 72 | |
| 73 | mv ray/modules/im/files /mnt/nas/ray_im_files |
| 74 | ln -s /mnt/nas/ray_im_files ray/modules/im/files |
| 75 | |
| 76 | mv ray/modules/movie/files /mnt/nas/ray_movie_files |
| 77 | ln -s /mnt/nas/ray_movie_files ray/modules/movie/files |
| 78 | |
| 79 | mv ray/modules/mp3/files /mnt/nas/ray_mp3_files |
| 80 | ln -s /mnt/nas/ray_mp3_files ray/modules/mp3/files |
| 81 | |
| 82 | mv ray/modules/music/files /mnt/nas/ray_music_files |
| 83 | ln -s /mnt/nas/ray_music_files ray/modules/music/files |
| 84 | |
| 85 | }}} |
| 86 | |
| 87 | |
| 88 | '''Third'''. Some changes should be applied in Orca. |
| 89 | |
| 90 | In '''xml/config.php''' file, you should change your domain name to "http://localhost/: |
| 91 | |
| 92 | {{{ |
| 93 | |
| 94 | $gConf['url']['xml'] = 'http://localhost/orca/xml/orca.php'; // xml integration file url |
| 95 | |
| 96 | }}} |
| 97 | |
| 98 | Dolphin Home page and Account Builder are affected. The URLs should be changed as follows: |
| 99 | |
| 100 | |
| 101 | {{{ |
| 102 | homepage builder: {SiteUrl}orca/?action=rss_all -> http://localhost/orca/?action=rss_all |
| 103 | account builder : {SiteUrl}orca/?action=rss_user&user={NickName} -> http://localhost/orca/?action=rss_user&user={NickName} |
| 104 | }}} |
| 105 | |
| 106 | |
| 107 | Dolphin's '''inc/header.inc.php''' file should be affected too: |
| 108 | |
| 109 | |
| 110 | {{{ |
| 111 | header.inc.php : if( isset($_SERVER['HTTP_HOST']) and $_SERVER['HTTP_HOST'] != 'localhost' and $_SERVER['HTTP_HOST'] != $aUrl['host'] ) |
| 112 | }}} |
| 113 | |
| 114 | added -> '''and $_SERVER['HTTP_HOST'] != 'localhost'''' |
| 115 | |