Page 1 of 1

Migrate Moodle from Windows to Linux

PostPosted: 15. November 2011 12:22
by mlazzarotto
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

Re: Migrate Moodle from Windows to Linux

PostPosted: 15. November 2011 13:01
by Sharley
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. :)

Re: Migrate Moodle from Windows to Linux

PostPosted: 15. November 2011 13:59
by JonB
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

Re: Migrate Moodle from Windows to Linux

PostPosted: 15. November 2011 19:56
by mlazzarotto
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?

Re: Migrate Moodle from Windows to Linux

PostPosted: 15. November 2011 21:07
by JonB
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)