Joomla Portability: Difference between revisions
m
Reverted edits by Upazixorys (Talk); changed back to last version by Ric
Upazixorys (talk | contribs) No edit summary |
m (Reverted edits by Upazixorys (Talk); changed back to last version by Ric) |
||
Line 1: | Line 1: | ||
<span id="top"></span> | |||
<div style="padding:0;margin:0; border-bottom:3px inset #000000"> | |||
{| | {| | ||
| [[Image:uc_small_logo.gif | MPG UniCenter]] || | | [[Image:uc_small_logo.gif | MPG UniCenter]] || | ||
Joomla (Version 1.0.13 ) portability on Uniform Server 3.5-Apollo. | Joomla (Version 1.0.13 ) portability on Uniform Server 3.5-Apollo. | ||
|} | |} | ||
</div> | |||
{| cellpadding= | {| cellpadding="2" | ||
| | | | ||
__TOC__ | __TOC__ | ||
Line 23: | Line 22: | ||
Using php, we can access the environment variable “Disk” for example: | Using php, we can access the environment variable “Disk” for example: | ||
''' | '''<nowiki><? $jo_dsk = getenv('Disk'); ?></nowiki>''' | ||
This gets the environment variable '''Disk''' using '''getenv''' and assigns it to our variable '''$jo_dsk'''. | This gets the environment variable '''Disk''' using '''getenv''' and assigns it to our variable '''$jo_dsk'''. | ||
Line 31: | Line 30: | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
== Implementation == | == Implementation == | ||
Edit the configuration file '''configuration.php''' located in folder ''' | Edit the configuration file '''configuration.php''' located in folder '''<nowiki>*\Uniform Server\udrive\www\joomla</nowiki>''' with a suitable text editor. | ||
Follow these three steps: | Follow these three steps: | ||
{|cellpadding= | {|cellpadding="4" | ||
|-style= | |-style="background:#f0f0f0" | ||
!Step | !Step | ||
!Action | !Action | ||
!Result after modification | !Result after modification | ||
|-style= | |-style="background:#f8f8f8" | ||
|valign= | |valign="top"| | ||
& | 1 | ||
|valign= | |valign="top"| | ||
Just below | Just below <?php add the line:<br> | ||
$jo_dsk = getenv('Disk'); | $jo_dsk = getenv('Disk'); | ||
|valign= | |valign="top"| | ||
<nowiki><?php</nowiki><br> | |||
'''$jo_dsk = getenv('Disk');''' | '''$jo_dsk = getenv('Disk');'''<br> | ||
$mosConfig_offline = '0'; | $mosConfig_offline = '0'; | ||
|-style= | |-style="background:#f8f8f8" | ||
|valign= | |valign="top"| | ||
& | 2 | ||
|valign= | |valign="top"| | ||
Locate the line: | Locate the line:<br> | ||
$mosConfig_absolute_path = 'W:/www/joomla'; | $mosConfig_absolute_path = 'W:/www/joomla';<br> | ||
Either comment out the line or delete it and replace with: | Either comment out the line or delete it and replace with:<br> | ||
$mosConfig_absolute_path = $jo_dsk . ':/www/joomla'; | $mosConfig_absolute_path = $jo_dsk . ':/www/joomla'; | ||
|valign= | |valign="top"| | ||
$mosConfig_lang = 'english'; | $mosConfig_lang = 'english';<br> | ||
''' | '''<nowiki>#</nowiki>'''$mosConfig_absolute_path = 'W:/www/joomla';<br> | ||
'''$mosConfig_absolute_path = $jo_dsk . ':/www/joomla';''' | '''$mosConfig_absolute_path = $jo_dsk . ':/www/joomla';'''<br> | ||
$mosConfig_live_site = 'http://localhost/joomla'; | $mosConfig_live_site = 'http://localhost/joomla'; | ||
|-style= | |-style="background:#f8f8f8" | ||
|valign= | |valign="top"| | ||
& | 3 | ||
|valign= | |valign="top"| | ||
locate the line: | locate the line:<br> | ||
$mosConfig_cachepath = 'W:/www/joomla/cache'; | $mosConfig_cachepath = 'W:/www/joomla/cache';<br> | ||
Either comment out the line or delete it and replace with: | Either comment out the line or delete it and replace with:<br> | ||
$mosConfig_cachepath = $jo_dsk . ':/www/joomla/cache'; | $mosConfig_cachepath = $jo_dsk . ':/www/joomla/cache'; | ||
|valign= | |valign="top"| | ||
$mosConfig_caching = '0'; | $mosConfig_caching = '0';<br> | ||
''' | '''<nowiki>#</nowiki>'''$mosConfig_cachepath = 'W:/www/joomla/cache';<br> | ||
'''$mosConfig_cachepath = $jo_dsk . ':/www/joomla/cache';''' | '''$mosConfig_cachepath = $jo_dsk . ':/www/joomla/cache';'''<br> | ||
$mosConfig_cachetime = '900'; | $mosConfig_cachetime = '900'; | ||
|} | |} | ||
Line 80: | Line 79: | ||
A quick explanation for line: $mosConfig_absolute_path = $jo_dsk . ':/www/joomla'; | A quick explanation for line: $mosConfig_absolute_path = $jo_dsk . ':/www/joomla'; | ||
The variable '''$jo_dsk''' contains a string character of the drive letter in use. | The variable '''$jo_dsk''' contains a string character of the drive letter in use.<br> | ||
The string defined by a single quote either end of it ''':/www/joomla''' is concatenated (added to) our variable '''$jo_dsk''' this creates the '''full path'''. | The string defined by a single quote either end of it ''':/www/joomla''' is concatenated (added to) our variable '''$jo_dsk''' this creates the '''full path'''.<br> | ||
The result is assigned to variable '''$mosConfig_absolute_path'''. | The result is assigned to variable '''$mosConfig_absolute_path'''. | ||