| 88 | ==== Userdir Configuration ==== |
| 89 | |
| 90 | If you're using iPeer on an mod_userdir configuration (e.g.: your site appears at {{{http://domain/~yourname/}}}), some additional configuration is required. |
| 91 | |
| 92 | Three .htaccess files needs to be edited, adding "{{{RewriteBase /~user/ipeer_install_dir}}}" after "{{{RewriteEngine On}}}". The .htaccess files are located at: |
| 93 | |
| 94 | * ipeer_install_dir/.htaccess |
| 95 | * ipeer_install_dir/app/.htaccess |
| 96 | * ipeer_install_dir/app/webroot/.htaccess |
| 97 | |
| 98 | In this example, iPeer is installed in {{{/home/john/public_html/ipeer/}}} and can be accessed at {{{http://domain/~john/}}}. The three .htaccess files to be edited are located at: |
| 99 | |
| 100 | * /home/john/public_html/ipeer/.htaccess |
| 101 | * /home/john/public_html/ipeer/app/.htaccess |
| 102 | * /home/john/public_html/ipeer/app/webroot/.htaccess |
| 103 | |
| 104 | After editing, each of the .htaccess files will have a {{{RewriteBase}}} directive like this: |
| 105 | |
| 106 | {{{ |
| 107 | <IfModule mod_rewrite.c> |
| 108 | RewriteEngine On |
| 109 | RewriteBase /~john/ipeer/ |
| 110 | ... |
| 111 | </IfModule> |
| 112 | }}} |
| 113 | |
| 114 | ===== Troubleshooting ===== |
| 115 | |
| 116 | * Note that the default userdir configuration on Ubuntu has PHP disabled, iPeer requires PHP to be enabled. |
| 117 | * You might need to edit the Apache configuration to enable "AllowOverride All" for the user directories. |
| 118 | |