Moodle

Xampp Windows package is broken on Windows XP

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9.4
  • Fix Version/s: 1.9.5
  • Component/s: Installation
  • Labels:
    None
  • Environment:
    Windows XP + Moodle Package 1.9
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

On a Windows XP virtual machine (my host is Ubuntu 64), the Moodle Windows Package cannot be launched. In fact if you run /server/apache_start.bat, the apache server doesn't start. It's the reason why "Start Moodle.exe" doesn't work anymore.

The error:
apache.exe: Syntax error on line 478 of C:/Documents and Settings/jerome/Desktop
/MoodleWindowsInstaller-latest-19/server/apache/conf/httpd.conf: Syntax error on
line 7 of C:/Documents and Settings/jerome/Desktop/MoodleWindowsInstaller-lates
t-19/server/apache/conf/extra/httpd-xampp.conf: Cannot load C:/Documents and Set
tings/jerome/Desktop/MoodleWindowsInstaller-latest-19/server/apache/bin/php5apac
he2_2.dll into server: The specified module could not be found.

It does work on Windows Vista but not on Windows XP. Note that it used to work on XP. I guess this bug has been introduce during the previous update of Xampp, last January. I have a look.

Activity

Hide
Jerome Mouneyrac added a comment -

I downloaded the last xampplite 1.7.0, and the problem seems to come from it. On win XP, the error is:
apache.exe: Syntax error on line 477 of C:/xampplite/apache/conf/httpd.conf: Syn
tax error on line 7 of C:/xampplite/apache/conf/extra/httpd-xampp.conf: Cannot l
oad C:/xampplite/apache/bin/php5apache2_2.dll into server: The specified module
could not be found.

It seems to me it's because, Win XP do not understand "/" it should be "\" :
C:\xampplite\apache\bin\php5apache2_2.dll

Show
Jerome Mouneyrac added a comment - I downloaded the last xampplite 1.7.0, and the problem seems to come from it. On win XP, the error is: apache.exe: Syntax error on line 477 of C:/xampplite/apache/conf/httpd.conf: Syn tax error on line 7 of C:/xampplite/apache/conf/extra/httpd-xampp.conf: Cannot l oad C:/xampplite/apache/bin/php5apache2_2.dll into server: The specified module could not be found. It seems to me it's because, Win XP do not understand "/" it should be "\" : C:\xampplite\apache\bin\php5apache2_2.dll
Hide
Jerome Mouneyrac added a comment - - edited

In fact it's a Xampp problem with windows XP. I wrote a warning note into http://docs.moodle.org/en/Complete_install_packages_for_Windows#Second_-_start_the_webserver:
"If apache doesn't start on Windows XP, your /windows/system32/msvcr71.dll file could be missing. You can resolve it installing the .Net 1.1 framework"

Show
Jerome Mouneyrac added a comment - - edited In fact it's a Xampp problem with windows XP. I wrote a warning note into http://docs.moodle.org/en/Complete_install_packages_for_Windows#Second_-_start_the_webserver: "If apache doesn't start on Windows XP, your /windows/system32/msvcr71.dll file could be missing. You can resolve it installing the .Net 1.1 framework"
Hide
Jerome Mouneyrac added a comment -

I updated the Readme.txt file into the Moodle Windows Package.

Show
Jerome Mouneyrac added a comment - I updated the Readme.txt file into the Moodle Windows Package.
Hide
Eloy Lafuente (stronk7) added a comment -

Hi Jerome,

I just found this:

http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/

where it's said that the msvcr71.dll dependency is caused by the postgresql php extension.

So, I've disabled it in the php.ini file and rebuilt all the packages. It would be great if you can try new packages tomorrow (with Net 1.1 not installed).

Ciao

P.S.: I'd make the tests myself, my XP box has a lot of MS development tools installed (to be able to build the MSSQL drivers and others) and I'd prefer not to modify anything here.

Show
Eloy Lafuente (stronk7) added a comment - Hi Jerome, I just found this: http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/ where it's said that the msvcr71.dll dependency is caused by the postgresql php extension. So, I've disabled it in the php.ini file and rebuilt all the packages. It would be great if you can try new packages tomorrow (with Net 1.1 not installed). Ciao P.S.: I'd make the tests myself, my XP box has a lot of MS development tools installed (to be able to build the MSSQL drivers and others) and I'd prefer not to modify anything here.
Hide
Jerome Mouneyrac added a comment -

Hi Eloy,
the new windows package doesn't work without the missing file. I still needed to add it to the windows/system32 folder.

Show
Jerome Mouneyrac added a comment - Hi Eloy, the new windows package doesn't work without the missing file. I still needed to add it to the windows/system32 folder.
Hide
Jerome Mouneyrac added a comment -

Note that for me, installing the .Net framework didn't resolve the issue. I had to look for the file on Google and directly copy it in my /windows/system32 folder.

Show
Jerome Mouneyrac added a comment - Note that for me, installing the .Net framework didn't resolve the issue. I had to look for the file on Google and directly copy it in my /windows/system32 folder.
Hide
Eloy Lafuente (stronk7) added a comment -

Hi Jerome,

was playing here with one old version of xampplite ... and found that it includes the msvcr71.dll (and the msvcr80.dll too) file in the apache/bin dir. In the other side, current version of xampplite (1.7) doesn't include them anymore.

Also have found some pages pointing about to copy the file into that apache/bin dir as a solution for the problem.

Do you think we could try to do that when packages are built?

Show
Eloy Lafuente (stronk7) added a comment - Hi Jerome, was playing here with one old version of xampplite ... and found that it includes the msvcr71.dll (and the msvcr80.dll too) file in the apache/bin dir. In the other side, current version of xampplite (1.7) doesn't include them anymore. Also have found some pages pointing about to copy the file into that apache/bin dir as a solution for the problem. Do you think we could try to do that when packages are built?
Hide
Jerome Mouneyrac added a comment -

I though about that and I confirm that it works. However I couldn't find a licence for this file. It is a file provided by Microsoft.

Show
Jerome Mouneyrac added a comment - I though about that and I confirm that it works. However I couldn't find a licence for this file. It is a file provided by Microsoft.
Hide
Jerome Mouneyrac added a comment -

I found that: http://support.microsoft.com/kb/326922
Microsoft recommends to copy the file into our application (not windows/system32), in our case: apache/bin
It "seems" to be ok to add it to the package.
What do you think Eloy?

Show
Jerome Mouneyrac added a comment - I found that: http://support.microsoft.com/kb/326922 Microsoft recommends to copy the file into our application (not windows/system32), in our case: apache/bin It "seems" to be ok to add it to the package. What do you think Eloy?
Hide
Tony Bowes added a comment -

This issue is also in 2.0 dev. Fixed using the same method: placing msvcr71.dd into server\apache\bin.

(Sorry if there needs to be a new ticket for this in 2.0. Just getting started)

Show
Tony Bowes added a comment - This issue is also in 2.0 dev. Fixed using the same method: placing msvcr71.dd into server\apache\bin. (Sorry if there needs to be a new ticket for this in 2.0. Just getting started)
Hide
Eloy Lafuente (stronk7) added a comment -

Done. Now the msvcr71.dll and msvcr80.dll files are added to apache/bin if missing from XAMPPLite distro.

Packages are being rebuilt right now and will be available in a couple of minutes (from 1.6 to HEAD).

Please, confirm it solves de problem and .Net and friends aren't needed anymore... ciao

Show
Eloy Lafuente (stronk7) added a comment - Done. Now the msvcr71.dll and msvcr80.dll files are added to apache/bin if missing from XAMPPLite distro. Packages are being rebuilt right now and will be available in a couple of minutes (from 1.6 to HEAD). Please, confirm it solves de problem and .Net and friends aren't needed anymore... ciao
Hide
Jerome Mouneyrac added a comment -

I confirm that it works fine now. Thanks Eloy.

Show
Jerome Mouneyrac added a comment - I confirm that it works fine now. Thanks Eloy.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: