# Forums | Mahara Community

## Support / Install Mahara on WAMPSERVER

Account deleted
Posts: 3

09 July 2009, 16:52

Hi!

I want to intall Mahara on a WAMPSERVER 2.0h.

First it shows the error that the curl extension is not included.  I include it and try it again but then it did not find any files(HTTP 404).

Can somebody help me?

Account deleted
Posts: 338
##### Re: Install Mahara on WAMPSERVER

10 July 2009, 4:16

Hello Philipp,

It was me who wrote the documentation for installing Mahara in Wampserver, I don't know if you did read already this document in the wiki:

However, I didn't test the installation of Mahara 1.1.5  in Wampserver (which is the version that you are trying to install, I guess) since I am (or trying to be) a good  "new born Linux-er" now.

Have you checked that in the config.php, both the $cfg->wwwroot and the$cfg->dataroot are pointing to the right places?

Regards

Account deleted
Posts: 3
##### Re: Install Mahara on WAMPSERVER

10 July 2009, 4:51

Yes I have checked the $cfg->wwwroot and the$cfg->dataroo, but there's the right place.

Should I try it with an older version?

Account deleted
Posts: 338
##### Re: Install Mahara on WAMPSERVER

10 July 2009, 7:03

Phillipp,

You spurred my curiosity, so I upgraded to Wampserver 2.0.h. Then I downloaded Mahara 1.1.5 and followed the whole installation process again. Like you, I had to enable the curl extension.

Then, my problem is that when it launches the http://localhost/mahara1.1.5/htdocs/admin/upgrade.php page, during the installation, I get stuck in the first step, when the software is installing the core component.  It never moves on to the next steps, just gets stuck in a sort of loop. So, I think that the problem may be wampserver itself (I have the other sites installed with the previous versions of Wampserver 2o.)

The messages in my Apache error log are:

127.0.0.1 - - [10/Jul/2009:12:53:04 +0100] "POST /mahara1.1.5/htdocs/admin/upgrade.php HTTP/1.1" 200 21159
127.0.0.1 - - [10/Jul/2009:12:53:07 +0100] "GET /mahara1.1.5/htdocs/admin/upgrade.json.php?name=core&sesskey= HTTP/1.1" 200 -

and in the  Apache error log:

Fri Jul 10 12:28:23 2009] [notice] Server built: Dec 10 2008 00:10:06
[Fri Jul 10 12:28:23 2009] [notice] Parent: Created child process 4568
[Fri Jul 10 12:28:23 2009] [notice] Child 4568: Child process is running
[Fri Jul 10 12:28:23 2009] [notice] Child 4568: Acquired the start mutex.
[Fri Jul 10 12:28:23 2009] [notice] Child 4568: Starting 64 worker threads.
[Fri Jul 10 12:28:23 2009] [notice] Child 4568: Starting thread to listen on port 80.
[Fri Jul 10 12:36:14 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Fri Jul 10 12:48:14 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Fri Jul 10 12:48:14 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Fri Jul 10 12:49:24 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Fri Jul 10 12:49:25 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico

I don't know it those messages make sense to somebody. I have no clue.

I think that, because Mahara was originally designed to run in Linux, we are really trying patches to make it work on windows.

Account deleted
Posts: 3
##### Re: Install Mahara on WAMPSERVER

10 July 2009, 8:19

Okay thanks for your help.

I didn't change the files and use the same system but now there's a new error

The requested URL /Maharaadmin/ was not found on this server.

I think I should install Ubuntu for a second system and try it with Linux

Account deleted
Posts: 1
##### Re: Install Mahara on WAMPSERVER

11 July 2009, 7:44

I am also getting hung up on the Core first step. (Wampserver 2.0h, windowsXP, mahara 1.1.5). I had the same curl error- fixed that and at one time saw the same errors in the apache log you report (not finding the favicon.ico).  I don't remember exactly how I resolved that one.  Just check to be sure you have the trailing slash / after the last directory in $cfg->wwwroot in my case$cfg->wwwroot = 'http://localhost/mahara/htdocs/';

I have also adjusted the php.ini raising the limits

max_execution_time = 120

and

memory_limit = 256M

I have also changed the potential columns issue referenced at   http://mahara.org/interaction/forum/topic.php?id=131

as

I changed the following in mahara/lib/db/install.xml:

<TABLE NAME="view_layout">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="
1columns" TYPE="int" LENGTH="1" NOTNULL="true"/>
<FIELD NAME="widths" TYPE="char" LENGTH="255" NOTNULL="true"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
<KEY NAME="columnwidthuk" TYPE="unique" FIELDS="
1columns,widths"/>
</KEYS>
</TABLE>

The table was then created with the field called "1columns" instead of simply "columns."  After the install completed successfully, I used phpMyAdmin to change the field name back to "columns."

-obviously I haven't done the last step since I haven't got that far.

Nothing in the apache error log but here is the last error reporting from the php error log

[11-Jul-2009 08:43:04] [WAR] 65 (C:\wamp\www\mahara\htdocs\lib\mahara.php:578) Invalid argument supplied for foreach()

[11-Jul-2009 08:43:04] Call stack (most recent first):

[11-Jul-2009 08:43:04]   * log_message("Invalid argument supplied for foreach()", 8, true, true, "C:\wamp\www\mahara\htdocs\lib\mahara.php", 578) at C:\wamp\www\mahara\htdocs\lib\errors.php:378

[11-Jul-2009 08:43:04]   * error(2, "Invalid argument supplied for foreach()", "C:\wamp\www\mahara\htdocs\lib\mahara.php", 578, array(size 2)) at C:\wamp\www\mahara\htdocs\lib\mahara.php:578

[11-Jul-2009 08:43:04]   * load_config() at C:\wamp\www\mahara\htdocs\init.php:149

[11-Jul-2009 08:43:04]   * require("C:\wamp\www\mahara\htdocs\init.php") at C:\wamp\www\mahara\htdocs\admin\index.php:31

[11-Jul-2009 08:43:04]

Any help in on this would be great.

thanks.

Rick

Account deleted
Posts: 338
##### Re: Install Mahara on WAMPSERVER

20 July 2009, 12:20

Rick, you are my heroe!!

I changed the settings in the php.ini + view_layout and it does work now!!!

I guess that if that because of the low values in the php.ini, the installation process got stuck in a loop before it could finish.

I will update the wiki with this information, in case I would be useful to somebody else.

Regards

7 results