justvanbloom / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
0 stars 0 forks source link

selinux and phpvirtualbox #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have so problems getting phpvirtualbox to run on a centos 5.5 with selinux 
enabled.

I have set the the phpvirtualbox files in to correct context:

chcon -Rv --type=httpd_sys_content_t phpvirtualbox-4.0-3/

I have also added port 18083 to the http_port_t

semanage port -a -t http_port_t -p tcp 18083

now I can start phpvirtualbox but i get the attached error message.

in the /var/log/audit.log, I get the following error:

type=USER_AUTH msg=audit(1297419791.587:140895): user pid=30181 uid=0 auid=0 
subj=root:system_r:java_t:s0 msg='PAM: authentication acct="root" : 
exe="/usr/lib/virtualbox/vboxwebsrv" (hostname=?, addr=?, terminal=? 
res=failed)'

in the vboxwebserv log i get the following infos:

2011-02-11 11:23:03 [ P ] Request 21 on socket 14 queued for processing (1 
items on Q)
2011-02-11 11:23:03 [ P ] Request 22 on socket 10 queued for processing (2 
items on Q)
2011-02-11 11:23:03 [  3] Processing connection from IP=127.0.0.1 socket=14 (4 
out of 5 threads idle)
2011-02-11 11:23:03 [  2] Processing connection from IP=127.0.0.1 socket=10 (3 
out of 5 threads idle)
2011-02-11 11:23:03 [ P ] Request 23 on socket 11 queued for processing (1 
items on Q)

can anybody help me out?

I am using:
CentOS 5.5
PHP 5.1.6 (I know 5.2.x is required, but should not be in conflict with this 
error)
Virtualbox 3.2.12 (4.0.2 has currently a bug, I have to wait for the next 
release)

Original issue reported on code.google.com by law.sky...@gmail.com on 11 Feb 2011 at 10:32

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

You'll have to use phpVirtualBox 0.5 if you are using VirtualBox 3.2. Downgrade 
to that.

vboxwebsrv is trying to authenticate with the system and failing. You can try 
running:

VBoxManage setproperty websrvauthlibrary null

as the same user that runs VirtualBox. Let me know if that does it.

Original comment by imooreya...@gmail.com on 11 Feb 2011 at 12:55

GoogleCodeExporter commented 9 years ago
Hi,

thanks for the infos, so I´ll wait for the next release of Virtualbox and 
setup phpVirtualBox 4.0-3 after that.

I have set:

VBoxManage setproperty websrvauthlibrary nul

now. Now I get the following error message:
Method 'ns1:ISystemProperties_getInfoVDSize' not implemented: method name or 
namespace not recognized

I think the problem appears in combination with phpVirtualBox 4.0-3 and 
VirtualBox 3.2.x or?

Original comment by law.sky...@gmail.com on 14 Feb 2011 at 8:33

GoogleCodeExporter commented 9 years ago
Hi,

I currently updated to version 4.0.4 now phpVirtualBox 4.0-3 works fine!

So we can close this thread / issue.

Original comment by law.sky...@gmail.com on 18 Feb 2011 at 7:51

GoogleCodeExporter commented 9 years ago

Original comment by imooreya...@gmail.com on 18 Feb 2011 at 11:24