If there are issues with SELinux can someone help me make a policy or at least temporarily disable SELinux. A duplicate issue is on DevSense.com
The following have been investigated on CentOS 6.2 64 bit:
- I am able to see phpinfo(); configurations using the web.config from the root WP.NET (wpdotnet - folder) when index.php is changed with phpinfo() - only.
- mod_mono is configured for mod_monoserver4 w/ mono 2.10.9 (compiled from source)
- Bin/dynamic has read/write (and 3 assemblies show - MsSql,MySql,PHP.Core) after initialization
- Unable to disable SELinux
- Sometimes I get an Application '/' error unable to load assembly 'PHP.Core.dynamic.dll' or dependencies
and the correct mono version and .NET4 is showing at the bottom of the stack trace.
- GAC does not have any Phalanger assemblies
Here is the error log:
[Fri Jun 08 21:03:05 2012] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Jun 08 21:03:05 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 08 21:03:05 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 08 21:03:05 2012] [notice] Digest: done
[Fri Jun 08 21:03:05 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_mono/2.10 configured -- resuming normal operations
mod-mono-server4
Listening on: /tmp/mod_mono_server_global
Root directory: /
Listening on: /tmp/mod_mono_server_global
Root directory: /
Error: There's already a server listening on /tmp/mod_mono_server_global
mod-mono-server4
Listening on: /tmp/mod_mono_server_orangemilk.com
Root directory: /var/www/mono/phptest
- Assertion at reflection.c:2733, condition
field' not met
Stacktrace:
at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.getToken (System.Reflection.Emit.ModuleBuilder,object,bool) <IL 0x00023, 0xffffffff>
at System.Reflection.Emit.ModuleBuilder.GetToken (System.Reflection.MemberInfo,bool) [0x00000] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs:680
at System.Reflection.Emit.ModuleBuilderTokenGenerator.GetToken (System.Reflection.MemberInfo,bool) [0x00000] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs:938
at System.Reflection.Emit.ILGenerator.Emit (System.Reflection.Emit.OpCode,System.Reflection.FieldInfo) [0x00000] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs:552
at PHP.Core.Emit.ILEmitter.Emit (System.Reflection.Emit.OpCode,System.Reflection.FieldInfo) <IL 0x00012, 0x0004c>
at PHP.Core.CodeGenerator.InitializeField (PHP.Core.Reflection.PhpField,PHP.Core.AST.Expression) <IL 0x000f0, 0x003c3>
at PHP.Core.AST.FieldDecl.Emit (PHP.Core.CodeGenerator) <IL 0x0000d, 0x0001f>
at PHP.Core.AST.FieldDeclList.Emit (PHP.Core.CodeGenerator) <IL 0x0001f, 0x0006b>
at PHP.Core.AST.TypeDecl.EmitDefinition (PHP.Core.CodeGenerator) <IL 0x0005d, 0x00138>
at PHP.Core.AST.TypeDecl.Emit (PHP.Core.CodeGenerator) <IL 0x00009, 0x00027>
at PHP.Core.AST.GlobalCode.Emit (PHP.Core.CodeGenerator) <IL 0x001a5, 0x004c2>
at PHP.Core.Reflection.SourceUnit.Emit (PHP.Core.CodeGenerator) <IL 0x00054, 0x0008f>
at PHP.Core.Reflection.ScriptCompilationUnit.Emit (PHP.Core.CodeGenerator) <IL 0x00007, 0x0001b>
at PHP.Core.Reflection.InclusionGraphBuilder.EmitAllUnits (PHP.Core.CodeGenerator) <IL 0x00069, 0x0013b>
at PHP.Core.Emit.ScriptAssemblyBuilder.CompileScripts (System.Collections.Generic.IEnumerable1<PHP.Core.PhpSourceFile>,string,string,PHP.Core.CompilationContext) <IL 0x00043, 0x00143>
at PHP.Core.WebServerCompilerManager.CompileScriptNoLock (string,PHP.Core.PhpSourceFile,PHP.Core.RequestContext) <IL 0x00041, 0x0010b>
at PHP.Core.WebServerCompilerManager.GetCompiledScript (PHP.Core.PhpSourceFile,PHP.Core.RequestContext) <IL 0x00086, 0x00163>
at PHP.Core.RequestContext.GetCompiledScript (PHP.Core.PhpSourceFile) <IL 0x00013, 0x0003f>
at PHP.Core.RequestHandler.ProcessRequest (System.Web.HttpContext) <IL 0x00064, 0x00113>
at System.Web.HttpApplication/<Pipeline>c__Iterator3.MoveNext () [0x00dad] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/System.Web/System.Web/HttpApplication.cs:1368
at System.Web.HttpApplication.Tick () [0x00000] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/System.Web/System.Web/HttpApplication.cs:932
at System.Web.HttpApplication.Start (object) [0x00094] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/System.Web/System.Web/HttpApplication.cs:1568
at System.Web.HttpApplication.System.Web.IHttpHandler.ProcessRequest (System.Web.HttpContext) [0x0001a] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/System.Web/System.Web/HttpApplication.cs:1645
at System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest) [0x000c5] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/System.Web/System.Web/HttpRuntime.cs:540
at System.Web.HttpRuntime.RealProcessRequest (object) [0x00028] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/System.Web/System.Web/HttpRuntime.cs:466
at System.Web.HttpRuntime.ProcessRequest (System.Web.HttpWorkerRequest) [0x0002b] in /home/enzop/Downloads/build/mono-2.10.9/mcs/class/System.Web/System.Web/HttpRuntime.cs:571
at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x0000f] in /home/enzop/Downloads/build/xsp-2.10.2/src/Mono.WebServer/MonoWorkerRequest.cs:400
at Mono.WebServer.BaseApplicationHost.ProcessRequest (Mono.WebServer.MonoWorkerRequest) [0x0002d] in /home/enzop/Downloads/build/xsp-2.10.2/src/Mono.WebServer/BaseApplicationHost.cs:121
at Mono.WebServer.ModMonoApplicationHost.ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[],object) [0x0016d] in /home/enzop/Downloads/build/xsp-2.10.2/src/Mono.WebServer.Apache/ModMonoApplicationHost.cs:113
at (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost.ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[],object) <IL 0x0004f, 0xffffffff>
at Mono.WebServer.ModMonoWorker.InnerRun (object) [0x0017d] in /home/enzop/Downloads/build/xsp-2.10.2/src/Mono.WebServer.Apache/ModMonoWorker.cs:239
at Mono.WebServer.ModMonoWorker.Run (object) [0x00000] in /home/enzop/Downloads/build/xsp-2.10.2/src/Mono.WebServer.Apache/ModMonoWorker.cs:92
at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00052, 0xffffffff>
Native stacktrace:
/opt/mono-2.10/bin/mono() [0x80db680]
[0xf9e40c]
/lib/libc.so.6(abort+0x17a) [0x2593ca]
/opt/mono-2.10/bin/mono() [0x8212e1e]
/opt/mono-2.10/bin/mono() [0x8212eaf]
/opt/mono-2.10/bin/mono() [0x81baf5a]
/opt/mono-2.10/bin/mono() [0x81c0e20]
/opt/mono-2.10/bin/mono() [0x815740f]
[0x176e08]
[0x176dbc]
[0x176d88]
[0x179ec2]
[0x421c55]
[0x47b39c]
[0x47af98]
[0x47aed4]
[0x47a1c1]
[0x479ef8]
[0xa1496b]
[0xa14170]
[0xa140c4]
[0xa0b934]
[0xe66534]
[0xe660cc]
[0xe63c14]
[0xe63398]
[0x8fd1b4]
[0x200696]
[0x1fc8ee]
[0x1dfe70]
[0x1dfb88]
[0xd7a608]
[0xd7a394]
[0xd79f24]
[0xd799e8]
[0xd771d8]
[0xd7557c]
[0xd75124]
[0xd72148]
[0xd71a2c]
[0xa6a075]
/opt/mono-2.10/bin/mono() [0x80616a8]
/opt/mono-2.10/bin/mono(mono_runtime_invoke+0x3e) [0x81a120e]
/opt/mono-2.10/bin/mono(mono_runtime_delegate_invoke+0x34) [0x81a1484]
/opt/mono-2.10/bin/mono() [0x81cf20c]
/opt/mono-2.10/bin/mono() [0x81d4f46]
/opt/mono-2.10/bin/mono() [0x820313f]
/opt/mono-2.10/bin/mono() [0x8226982]
/lib/libpthread.so.0(+0x6a09) [0xcd0a09]
/lib/libc.so.6(clone+0x5e) [0x30a43e]
Debug info from gdb:
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
[Fri Jun 08 21:03:52 2012] [error] (70014)End of file found: read_data failed
[Fri Jun 08 21:03:52 2012] [error] Command stream corrupted, last command was 1