https://wiki.mahara.org/index.php?title=Developer_Area/Developer_Environment_(Windows)&feed=atom&action=history
Developer Area/Developer Environment (Windows) - Revision history
2024-03-29T09:40:00Z
Revision history for this page on the wiki
MediaWiki 1.35.10
https://wiki.mahara.org/index.php?title=Developer_Area/Developer_Environment_(Windows)&diff=7164&oldid=prev
Aaronw: /* Initial installation of your developer environment on your computer */
2015-12-01T08:46:07Z
<p><span dir="auto"><span class="autocomment">Initial installation of your developer environment on your computer</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:46, 1 December 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l14" >Line 14:</td>
<td colspan="2" class="diff-lineno">Line 14:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cd /c/xampp/htdocs</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cd /c/xampp/htdocs</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> git clone git://<del class="diffchange diffchange-inline">gitorious</del>.org/mahara/mahara.git</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> git clone git://<ins class="diffchange diffchange-inline">mahara</ins>.org/mahara/mahara.git</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>3. Open pgAdmin. Create a user called 'maharauser' with password 'mahara', then create a database called 'mahara-master' making sure that it's owned by 'maharauser'</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>3. Open pgAdmin. Create a user called 'maharauser' with password 'mahara', then create a database called 'mahara-master' making sure that it's owned by 'maharauser'</div></td></tr>
</table>
Aaronw
https://wiki.mahara.org/index.php?title=Developer_Area/Developer_Environment_(Windows)&diff=5100&oldid=prev
Mingard: /* Initial installation of your developer environment on your computer */
2014-01-29T08:20:40Z
<p><span dir="auto"><span class="autocomment">Initial installation of your developer environment on your computer</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:20, 29 January 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l11" >Line 11:</td>
<td colspan="2" class="diff-lineno">Line 11:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>''The rest of the guide assumes you install these in their default locations''</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>''The rest of the guide assumes you install these in their default locations''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>2. <del class="diffchange diffchange-inline">Checkout </del>the code<del class="diffchange diffchange-inline">. Open </del>Git Bash and run the following commands:</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>2. <ins class="diffchange diffchange-inline">To checkout </ins>the code<ins class="diffchange diffchange-inline">, open </ins>Git Bash and run the following commands:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cd /c/xampp/htdocs</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cd /c/xampp/htdocs</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l88" >Line 88:</td>
<td colspan="2" class="diff-lineno">Line 88:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>11. Open the XAMPP control panel and restart Apache. Go to http://mahara in your browser and you should be greeted with the Mahara installer</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>11. Open the XAMPP control panel and restart Apache. Go to http://mahara in your browser and you should be greeted with the Mahara installer</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Installing the Mahara cron task ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Installing the Mahara cron task ==</div></td></tr>
<!-- diff cache key maharawikidb-mediawiki-:diff::1.12:old-5099:rev-5100 -->
</table>
Mingard
https://wiki.mahara.org/index.php?title=Developer_Area/Developer_Environment_(Windows)&diff=5099&oldid=prev
Mingard at 08:19, 29 January 2014
2014-01-29T08:19:50Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:19, 29 January 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>'''Important: This guide is a <del class="diffchange diffchange-inline">variation on what I used </del>and has not been tested fully. If you find any problems, feel free to edit this page.'''</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>'''Important: This guide is a <ins class="diffchange diffchange-inline">simplified version of a more long-winded process </ins>and has not been tested fully. If you find any problems, feel free to edit this page.'''</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Initial installation of your developer environment on your computer ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Initial installation of your developer environment on your computer ==</div></td></tr>
</table>
Mingard
https://wiki.mahara.org/index.php?title=Developer_Area/Developer_Environment_(Windows)&diff=5098&oldid=prev
Mingard: Created page with "'''Important: This guide is a variation on what I used and has not been tested fully. If you find any problems, feel free to edit this page.''' == Initial installation of your …"
2014-01-29T08:17:54Z
<p>Created page with "'''Important: This guide is a variation on what I used and has not been tested fully. If you find any problems, feel free to edit this page.''' == Initial installation of your …"</p>
<p><b>New page</b></p><div>'''Important: This guide is a variation on what I used and has not been tested fully. If you find any problems, feel free to edit this page.'''<br />
<br />
<br />
== Initial installation of your developer environment on your computer ==<br />
<br />
1. Install dependencies:<br />
<br />
* [http://www.apachefriends.org/index.html XAMPP]<br />
* [http://www.postgresql.org/download/windows/ PostgreSQL]<br />
* [http://code.google.com/p/msysgit/ Git for Windows]<br />
<br />
''The rest of the guide assumes you install these in their default locations''<br />
<br />
2. Checkout the code. Open Git Bash and run the following commands:<br />
<br />
cd /c/xampp/htdocs<br />
git clone git://gitorious.org/mahara/mahara.git<br />
<br />
3. Open pgAdmin. Create a user called 'maharauser' with password 'mahara', then create a database called 'mahara-master' making sure that it's owned by 'maharauser'<br />
<br />
4. Create the file C:\xampp\htdocs\mahara\htdocs\config.php containing the following:<br />
<br />
<?php<br />
$cfg = new StdClass;<br />
<br />
$branch = 'master';<br />
<br />
// database connection details<br />
// valid values for dbtype are 'postgres8' and 'mysql5'<br />
$cfg->dbtype = 'postgres8';<br />
$cfg->dbhost = 'localhost';<br />
$cfg->dbport = 5432; // Check pgAdmin for the actual port number<br />
$cfg->dbuser = 'maharauser';<br />
$cfg->dbname = "mahara-$branch";<br />
$cfg->dbpass = 'mahara'; <br />
$cfg->dbprefix = ''; <br />
<br />
$cfg->dataroot = "C:/xampp/maharadata/$branch";<br />
<br />
$cfg->sendemail = true;<br />
$cfg->sendallemailto = '<your email address>';<br />
<br />
$cfg->log_dbg_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;<br />
$cfg->log_info_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;<br />
$cfg->log_warn_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;<br />
$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;<br />
$cfg->perftofoot = true;<br />
<br />
If you're doing a lot of development, and you're frequently adding calls to log_debug() to examine data structures, for example, you will find LOG_TARGET_SCREEN in the $cfg->log_..._targets lines will send long messages to your screen which get in the way. You can safely remove all those lines provided you watch the webserver log for warnings.<br />
<br />
If you're mainly testing, and you don't find the stack traces in these screen messages particularly useful, adding "$cfg->log_backtrace_levels = LOG_LEVEL_ENVIRON;" to config.php will display important warning messages on a single line, without stack traces.<br />
<br />
6. Create the directory C:\xampp\maharadata\master<br />
<br />
7. Add the following to C:\Windows\System32\drivers\etc\hosts<br />
<br />
127.0.0.1 mahara<br />
<br />
8. Open C:\xampp\php\php.ini. Set the following configuration ...<br />
<br />
post_max_size = 32M<br />
<br />
... and uncomment this line<br />
<br />
extension=php_pgsql.dll<br />
<br />
9. Copy the following into C:\xampp\apache\conf\extra\httpd-vhosts.conf<br />
<br />
<VirtualHost *:80><br />
ServerName mahara<br />
DocumentRoot "C:\xampp\htdocs\mahara\htdocs"<br />
<br />
<Directory "C:\xampp\htdocs\mahara"><br />
Options Indexes FollowSymLinks MultiViews<br />
Order allow,deny<br />
Allow from all<br />
</Directory><br />
<br />
ErrorLog "C:\xampp\apache\logs\error.log"<br />
LogLevel info<br />
<br />
CustomLog "C:\xampp\apache\logs\access.log" combined<br />
DirectoryIndex index.php index.html<br />
</VirtualHost><br />
<br />
10. Open C:\xampp\apache\conf\httpd.conf and add the following line<br />
<br />
LoadFile "C:/xampp/php/libpq.dll"<br />
<br />
11. Open the XAMPP control panel and restart Apache. Go to http://mahara in your browser and you should be greeted with the Mahara installer<br />
<br />
<br />
== Installing the Mahara cron task ==<br />
<br />
This allows scheduled tasks to run, which enables various features of Mahara.<br />
<br />
1. Install [http://curl.haxx.se/ cURL]<br />
<br />
2. Start Task Scheduler<br />
<br />
3. Create a new task. Set the condition to 'Log on', set it to repeat every 1 minute indefinitely and add an action to run<br />
<br />
curl http://mahara/lib/cron.php<br />
<br />
It's good to set this to run as another user (in which case you'll need to set the task to run regardless of whether the user is logged on) since otherwise it will open a command window every 60 seconds.<br />
<br />
== Switching branches, using Gerrit, etc. ==<br />
<br />
You should be able to do all developer actions the same way as in Ubuntu. However, make sure you use Git Bash to do them as it's a more Linux-like environment and Command Prompt and PowerShell do not support various features used in the listed commands.</div>
Mingard