Line 4: |
Line 4: |
| {{Level|medium}} | | {{Level|medium}} |
| | | |
| + | {{Note box|See details here http://wiki.contribs.org/Joomla_3 for info on installing Joomla 3 on SME9, this is not a contrib}} |
| ===Maintainer=== | | ===Maintainer=== |
| [[User:Berdie/de|Dietmar Berteld]]<br/> | | [[User:Berdie/de|Dietmar Berteld]]<br/> |
Line 62: |
Line 63: |
| chmod 640 configuration.php | | chmod 640 configuration.php |
| | | |
| + | Have much fun with Joomla as your preferred CMS ! |
| | | |
| + | ===Search Engine Friendly URLS - SEF/SEO=== |
| + | In order to use Joomla SEF URL's you need to do the following: |
| + | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf |
| + | cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf |
| + | cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92joomla 92joomla |
| | | |
− | Have much fun with Joomla as your preferred CMS !
| + | Now edit 92joomla and add a line for the AllowOverride directive as below |
| + | $OUT .= "<Directory /opt/joomla>\n"; |
| + | $OUT .= " order deny,allow\n"; |
| + | $OUT .= " deny from all\n"; |
| + | $OUT .= " allow from $allow\n"; |
| + | $OUT .= " AllowOverride all\n"; |
| + | if ($pass) |
| + | { |
| + | $OUT .= " AuthName \"$joomla{'Name'}\"\n"; |
| + | $OUT .= " AuthType Basic\n"; |
| + | $OUT .= " AuthExternal pwauth\n"; |
| + | Close and save the file, then |
| + | expand-template /etc/httpd/conf/httpd.conf |
| + | sv t httpd-e-smith |
| + | Now assuming joomla is installed in /opt/joomla |
| + | cd /opt/joomla |
| + | mv htaccess.txt .htaccess |
| + | Edit .htaccess |
| | | |
− | ''Dietmar Berteld (berdie)'' | + | Uncomment the Rewritebase line and change it to |
| + | RewriteBase /joomla |
| + | Save and close the file. |
| + | This assumes that the 92joomla template fragment also set |
| + | Alias /joomla /opt/joomla |
| + | If you have set and wish to use a different URL by |
| + | config setprop joomla URL foo |
| + | you will need to set |
| + | RewriteBase /foo |
| + | Equally if you have redirected a VirtualDomain to point to your joomla application directly (www.virtualdomain.com instead of www.virtualdoamin.com/joomla) you will need to set |
| + | RewriteBase / |
| + | {{Note box| You will only be able to use whatever URL you set RewriteBase to in .htaccess even though other aliases might exist. For example if you have redirected a virtualdomain and set RewriteBase to /, /joomla and /foo won't work correctly. You may get to the home page but after that the SEF rewrites will fail}} |
| + | Now, in Joomla Administration go to ''Global Configuration - Site'' and set |
| + | Search Engine Friendly URLS - yes |
| + | Use Apache mod_rewrite - yes |
| + | Save the page, exit Administration and reload your Joomla site |
| | | |
| ---- | | ---- |