Changes between Version 33 and Version 34 of GenDolTShooter


Ignore:
Timestamp:
May 6, 2009, 5:57:50 AM (16 years ago)
Author:
IgorL
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenDolTShooter

    v33 v34  
    219219        == I receive this error when I try to install Dolphin: ''The server encountered an internal error or misconfiguration and was unable to complete your request'' == 
    220220         
    221 This is most probably caused by some '''.htaccess''' instructions which your server refuses to handle. 
     2211) This is most probably caused by some '''.htaccess''' instructions which your server refuses to handle. 
    222222These instructions usually are 
    223223{{{ 
     
    237237}}} 
    238238and try to run installation again. 
     239 
     2402) This problem can also be caused by inappropriate permissions if your PHP is installed as CGI (common gateway interface). 
     241 
     242To check the mode your PHP is running in, create the file '''phpinfo.php''' with the following contents: 
     243{{{ 
     244<?php 
     245phpinfo(); 
     246?> 
     247 
     248}}} 
     249and upload it to the Dolphin installation directory. Then open this file in a browser. 
     250 
     251When you're sure that your PHP is running in CGI mode, you should set the permissions of all folders to 755 and files to 644; the file '''ray/modules/global/app/ffmpeg.exe''' should be set to 755 as well. 
     252To do this quickly, you can run the following commands when you're in the Dolphin installation folder under your SSH account: 
     253{{{ 
     254find ./ -type d -exec chmod 755 {} \; 
     255find ./ -type f -exec chmod 644 {} \; 
     256chmod 755 ray/modules/global/app/ffmpeg.exe; 
     257 
     258}}} 
     259 
     260Now you need to let Ray determine your new permissions properly. To do so, open the file '''ray/modules/global/inc/function.inc.php''' and insert these lines of code: 
     261{{{ 
     262$sResult = ""; 
     263$bDir = is_dir($sFilePath); 
     264if(is_readable($sFilePath)) $sResult = $bDir ? "755" : "644"; 
     265if(is_writable($sFilePath)) $sResult = $bDir ? "777" : "666"; 
     266if(!$bDir && is_executable($sFilePath)) $sResult = "777"; 
     267 
     268}}} 
     269 
     270before the line 
     271 
     272{{{ 
     273return $sResult; 
     274 
     275}}} 
     276 
     277in the function '''checkPermissions($sFileName)'''. 
    239278 
    240279---- 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub