Koozali.org: home of the SME Server

client denied by server configuration: /opt/phpvirtualbox

Offline compsos

  • *
  • 472
  • +0/-0
client denied by server configuration: /opt/phpvirtualbox
« on: July 20, 2014, 04:29:45 AM »
Hi Steph
After installing phpvirtualbox got the above error in the /var/log/httpd/error.log but creating a custom-template of the 92phpvirtualbox and changing the lines

Code: [Select]
      $OUT .= "    order deny,allow\n";
      $OUT .= "    deny from all\n";

to $OUT .= "    Require all granted";

Changed block of code.
Code: [Select]
     
      $OUT .= "Alias  /phpvirtualbox  /opt/phpvirtualbox\n";     
      $OUT .= "\n";
      $OUT .= "<Directory /opt/phpvirtualbox>\n";
      $OUT .= "    SSLRequireSSL\n";
      $OUT .= "    Require all granted";
      $OUT .= "    allow from $localAccess\n";
      $OUT .= "    php_admin_value upload_tmp_dir /tmp\n";

Has allowed access. Not sure this is the best solution but it does handle the issue. Most other stanzas have a line following "deny ..." as "allow from... " and maybe it is the absence of that is blocking access. Your thoughts.
Regards

Gordon............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #1 on: July 21, 2014, 02:31:04 PM »
Has allowed access. Not sure this is the best solution but it does handle the issue. Most other stanzas have a line following "deny ..." as "allow from... " and maybe it is the absence of that is blocking access. Your thoughts.

If you have "deny from all" and no "allow ..." then that's obviously where your problem is.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #2 on: July 21, 2014, 09:29:43 PM »
HI compsos.

I will look about that after my holydays, if i understand well you cannot connect to phpvirtualbox except if you do your custom template ???
« Last Edit: July 21, 2014, 10:04:49 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #3 on: July 21, 2014, 10:03:51 PM »
In the meanwhile phpvirtualbox is not maintained by its author but another software merits our attention....i have not tested yet : http://remotebox.knobgoblin.org.uk/

Maybe it is time to trye something else.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline compsos

  • *
  • 472
  • +0/-0
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #4 on: July 21, 2014, 11:58:22 PM »
Thanks Steph
Thanks for that. Enjoy the rest of your summer holidays.

Charlie
Yes I can see that. I was basically asking if there was a reason for the way it is and found a workaround, maybe not the best and open to debate.
Regards

Gordon............

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #5 on: July 25, 2014, 08:27:45 PM »
what is your sme version ?

I do not understand your issue as it is common way to allow access in apache !!!!!

here another example for an ibay called ola

Code: [Select]
#------------------------------------------------------------
# ola ibay directories (essai)
#------------------------------------------------------------

<Directory /home/e-smith/files/ibays/ola/html>
    SSLRequireSSL
    Options None
    Options +Indexes
    Options +Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "essai"
    AuthType Basic
    AuthBasicProvider external
    AuthExternal pwauth
    require user ola
    Satisfy all
</Directory>

<Directory /home/e-smith/files/ibays/ola/cgi-bin>
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "essai"
    AuthType Basic
    AuthBasicProvider external
    AuthExternal pwauth
    require user ola
    Satisfy all
</Directory>

<Directory /home/e-smith/files/ibays/ola/files>
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "essai"
    AuthType Basic
    AuthBasicProvider external
    AuthExternal pwauth
    require user ola
    Satisfy all
</Directory>
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #6 on: July 25, 2014, 10:07:24 PM »
what is your sme version ?

well it works as expected on a sme8 32 bit, could you answer on the question above and moreover can you give back

Code: [Select]
config show phpvirtualbox
from scratch the only user allowed is the admin user of smeserver. Could you maybe post the relevant part of the error file please.
« Last Edit: July 25, 2014, 10:15:32 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline compsos

  • *
  • 472
  • +0/-0
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #7 on: July 26, 2014, 04:31:33 AM »
Hi Steph
Will do but I am out of the office till next week. It was on SME9 that had the error. The boxes that had the error are now onsite but not installed so will try to replicate on another unit.
Thanks
Regards

Gordon............

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: client denied by server configuration: /opt/phpvirtualbox
« Reply #8 on: July 26, 2014, 12:54:11 PM »
no problem :)

your sme9 version is 32 or 64 bit ?

EDIT:
I have just tested with a sme9-64 and it works :/
« Last Edit: July 26, 2014, 01:48:26 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!