Page 1 of 1

WordPress Compilation

PostPosted: June 18th, 2013, 1:16 pm
by netspark
When trying to run a pre-compiled version of the WordPress application I see the following error:
It seems that you are missing MySQL extension for PHP that is needed for WordPress

[list=]
[*]1. I have created web.config file (see attachment)
[*]2. Copied sources of my customized wp v3.5.1 + plugins into this dir
[*]3. Precompiled WordPress using the following command:
"d:\Projects\Netspark\Projects\Perevozki.NET\PhalangerBin\phpc.exe" /target:web /root:. /recurse:. /out:Bin /static+ /debug+
Result: 0 errors, 45 warnings[/*]
[*]4. Copied the following dlls into the Bin folder:
    dynamic\
    WebPages.dll
    WebPages.pdb
    PhpNetMySql.dll
    MySql.Data.dll
    PhpNetPDOMySQL.dll
    System.Data.SQLite.dll
    PhpNetZlib.dll
    PhpNetZip.dll
    PhpNetXmlDom.dll
    PhpNetXml.dll
    PhpNetSQLite.dll
    PhpNetSoap.dll
    PhpNetPDOSQLServer.dll
    PhpNetPDOSQLite.dll
    PhpNetPDO.dll
    PhpNetMbstring.dll
    PhpNetIconv.dll
    PhpNetGd2.dll
    PhpNetCurl.dll
    WpDotNet.dll
    PhpNetCore.dll
    PhpNetClassLibrary.dll
[/list]

Does anybody know what could be the reason of the fault? I am trying to make a pre-compiled version working for a long time, but see this error
Very much appreciate for any hints!

Re: WordPress Compilation

PostPosted: June 19th, 2013, 11:29 am
by Jakub Misek
I've tried your case, and it works ok for me with latest Phalanger binaries and MySQL 5.5

Just one more thing, add following into your web.config, it may be needed
Code: Select all
<add assembly="PhpNetXmlDom, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2771987119c16a03" section="xmldom"/>


Also please try to run the site without compiling it first. Does the first WP page load, or you see the error message immediately?

Thanks!