Migrate Moodle from Windows to Linux

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Migrate Moodle from Windows to Linux

Postby mlazzarotto » 15. November 2011 12:22

Hi, I migrated Moodle 1.9 from Windows to Linux.
In the linux server with Ubuntu 11.04 Server 32 bit I installed XAMPP 1.7.7.
Now I need to enable some "Dynamic Extensions" in the php.ini file.
Ex. I need to enable the php_curl.dll extension but obviously in linux I can't find it.
So, how can I do to enable these extensions?

    php_curl.dll
    php_gd2.dll
    php_gettext.dll
    php_imap.dll
    php_mbstring.dll
    php_exif.dll
    php_mime_magic.dll
    php_ming.dll
    php_mssql.dll
    php_mysql.dll
    php_mysqli.dll
    php_openssl.dll
    php_pdf.dll
    php_pdo.dll
    php_pdo_mssql.dll
    php_pdo_mysql.dll
    php_sockets.dll
    php_sqlite.dll
    php_xmlrpc.dll
    php_xsl.dll
    php_zip.dll

Thank you
mlazzarotto
 
Posts: 2
Joined: 15. November 2011 12:07
Operating System: Ubuntu 10.04 Server 32bit

Re: Migrate Moodle from Windows to Linux

Postby Sharley » 15. November 2011 13:01

To help speed things up until our Linux guru JonB comes online take a look at these
Google Search Results
and see if there is anything in them that helps. (first glance they look promising). :)

Also this from the Moodle forum may give you some ideas:
http://moodle.org/mod/forum/discuss.php?d=162925

Good luck and best wishes. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Migrate Moodle from Windows to Linux

Postby JonB » 15. November 2011 13:59

Did you run phpinfo()???

If not, go to http://localhost/xampp, and select phpinfo() in the left column.

I think you will find a majority of those extensions are already enabled by default.

You ONLY need be concerned about enabling ones that DON'T appear on that page.

The method of 'enabling' is the same as it is on Windows. You edit php.ini, locate the extension, uncomment it, save the file and restart Apache - check phpinfo()

'Enabling' is NOT the same as 'installing' (for wont of a better term) missing extensions - but you may not need to worry about that.

Good Luck
8)




ycf
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Migrate Moodle from Windows to Linux

Postby mlazzarotto » 15. November 2011 19:56

JonB wrote:Did you run phpinfo()???

Yes, I ran it, and I saw most of extensions are enabled but 4:
    php_mime_magic.dl (but I found mod_mime_magic in the loaded modules on the phpinfo())
    php_pdf.dll
    php_pdo_mssql.dll
    php_xmlrpc.dll

Where should I find the remaining extensions?
mlazzarotto
 
Posts: 2
Joined: 15. November 2011 12:07
Operating System: Ubuntu 10.04 Server 32bit

Re: Migrate Moodle from Windows to Linux

Postby JonB » 15. November 2011 21:07

Ok - one further thing about phpinfo() -

There is a section called Configure Command - Everything that is listed in there is hard-linked (you don't need to enable them in php.ini) - they are compiled into PHP.

example: '--with-openssl=/opt/lampp' -- so no need to enable Open SSL - built-in.

I think some of those you listed are superceded by other functions - like the 'mod_mime_magic'. Others may not be needed - like 'php_pdo_mssql.dll' - its a driver for Microsoft SQL Server(AFAIK). I think the php_pdf is a superceded one also. Not sure on the php_xmlrpc issue, BUT I think it is also superceded by XML_RPC2 (libxml2) - and thus installed.

The BEST tactic would be to ask on a Moodle forum, describe your setup - Linux/XAMPP-LAMPP/MySQL(with version 1.7.7) and ask what is needed in your specific environment. :)

Good Luck (and you learned something already, LOL)

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests