Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: mbocian on March 02, 2010, 04:08:40 PM
-
Hi, I'm new in this forum, but I'm using SME about one year (recently i have translated SME to a Polish). I've installed successfully Mono (step by step, it's shown in wiki) in a clean SME Server 7.4 system. I've created simple 'Hello World!' like page in Visual Web Developer, but Apache returned me an error like 'Internal Server Error'. What's wrong i do? :-(
-
Your mono program did not work. Look in /var/log/httpd/error_log. There should be error messages there.
You will get better help in debugging mono programs in a mono phorum than you will here.
-
I look at my error_log file. This is its results:
[Tue Mar 02 20:46:35 2010] [warn] RSA server certificate CommonName (CN) `serwer.dom.local' does NOT match server name!?
[Tue Mar 02 20:46:35 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 02 20:46:35 2010] [notice] Digest: done
[Tue Mar 02 20:46:35 2010] [warn] RSA server certificate CommonName (CN) `serwer.dom.local' does NOT match server name!?
[Tue Mar 02 20:46:36 2010] [notice] Apache configured -- resuming normal operations
System.UnauthorizedAccessException: Access to the path "/home/e-smith/files/ibays/Primary/html" is denied.
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String pattern, FileAttributes mask, FileAttributes attrs) [0x00000]
at System.IO.Directory.GetFiles (System.String path, System.String pattern) [0x00000]
at System.IO.DirectoryInfo.GetFiles (System.String pattern) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:GetFiles (string)
at Mono.WebServer.ModMonoWorker.CheckDirectory (System.IO.DirectoryInfo info) [0x00000]
at Mono.WebServer.ModMonoWorker.GetOrCreateApplication (System.String vhost, Int32 port, System.String filepath, System.String virt) [0x00000]
at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000]
at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x00000]
[Tue Mar 02 20:53:56 2010] [error] (70014)End of file found: read_data failed
[Tue Mar 02 20:53:56 2010] [error] Command stream corrupted, last command was -1
[Tue Mar 02 20:53:56 2010] [error] [client 192.168.1.10] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico, referer: http://192.168.1.3/
It seems to be permissions to folders and files problem :-(
-
It seems to be permissions to folders and files problem :-(
It's a mono issue. Ask in a mono forum.
-
I have also been playing with mono on a SME 7.4.
I needed to chmod 777 from ibay root to folders with .aspx files to get it running. I don't guess that is the idea on a production environment.
I hope it helps, but would like to hear if anyone else knows something.
-
I needed to chmod 777 from ibay root to folders with .aspx files to get it running. I don't guess that is the idea on a production environment.
I doubt that was really needed. Which files did you modify with this? The ones in the html folder of the ibay? Are you sure they have the proper ownership?
-
Without the chmod I got the same error as described in this post...
Do you have any experience with mono running on sme?
-
Without the chmod I got the same error as described in this post...
Do you have any experience with mono running on sme?
No, but I do have plenty of experience with SME Server. Are you sure ownership of the files was correct so the webserver had access to them for instance?
-
sure and sure. I am not an expert
All html and php files where running fine. I uploaded the aspx files through samba and I normally don't need to change permission.
-
sure and sure. I am not an expert
All html and php files where running fine. I uploaded the aspx files through samba and I normally don't need to change permission.
please post the result of
ls -la
of the dir where you have your aspx files
-
I needed to chmod 777 from ibay root to folders with .aspx files to get it running.
Mode 777 is always unnecessary and is always a security risk. Changing the ownership will usually fix the problem, with less security risk.
-
I just made an small test.
signal-event ibay-modify xxx
this brakes executing any aspx files. rwxrwxr-x to html --> test --> dotnet makes it work again
ls -la of the folder containing the aspx files is
[root@server dotnet]# ls -la
total 32
drwxrwxr-x 5 root ext_developer 4096 Mar 5 17:45 .
drwxrwxr-x 16 admin ext_developer 4096 Feb 7 11:07 ..
-rwxrwx--x 1 root ext_developer 156 Dec 13 13:41 helloworld.aspx
-rwxrwxr-x 1 root ext_developer 1827 Dec 13 13:27 index2.aspx
-rwxrwxr-x 1 root ext_developer 1032 Dec 13 12:03 index2.aspx.cs
After signal-event ibay-modify
[root@server dotnet]# ls -la
total 32
drwxrws--- 5 root ext_developer 4096 Mar 5 17:45 .
drwxrws--- 16 admin ext_developer 4096 Feb 7 11:07 ..
-rwxrwx--x 1 root ext_developer 156 Dec 13 13:41 helloworld.aspx
-rwxrwx--x 1 root ext_developer 1827 Dec 13 13:27 index2.aspx
-rwxrwx--x 1 root ext_developer 1032 Dec 13 12:03 index2.aspx.cs
-
post the output of
db accounts show xxx
where xxx is your ibay
-
[root@server ~]# db accounts show xxx
xxx=ibay
CgiBin=enabled
Gid=5007
Group=ext_developer
Name=fugl-villumsen.dk Website
PHPBaseDir=/home/e-smith/files/ibays/xxx/:/usr/bin/:/
PasswordSet=no
PublicAccess=global
Uid=5007
UserAccess=wr-group-rd-group
php5=yes