Menu

Alpine linux docker "Unknown PHP error"

Help
neurocis
2015-12-09
2015-12-19
  • neurocis

    neurocis - 2015-12-09

    Hi, I am trying to port over my Debian 8.2 dockerised phpvirtualbox to Alpine but am stuck at the "An unknown PHP error occurred."

    Docker build source is available on development branch at qlustor/docker-phpvirtualbox

    Container has phpinfo.php, which returns expected results, so php is running. The config.php and setup scripts are identical to the functional Debian-based master branch. Builds are also available on DockerHub under the development tag.

    Any help appreciated, going bald(er) on this one ;)

    neurocis.

     
  • Ian Moore

    Ian Moore - 2015-12-09

    Oh, hey, cool. Thanks for dockerizing this! The first thing I see in your config.php is this:

    public function construct()
    {
    $this->servers = require(
    DIR__ . '/config-servers.php');
    }

    Where as ./config-servers.php does not exist.

     
  • neurocis

    neurocis - 2015-12-09

    Thanks, it's a fork of Christian Lück's good work at clue/docker-phpvirtualbox.

    Re ./config-servers.php, the Dockerfile creates an empty array constructor on line 14 upon build, together with servers-from-env.php upon run which itterates env. variables / links and constructs config-servers.php.

    It's rather a creative way to overcome not being able to define the servers array from within the GUI (credits to Christian) and stunnel the vboxwebservice into the container.

    Thanks for helping track my problem down. As I say, the Debian-based dockers work fine for 5.0 and 4.3. I would like it on Alpine as it shaves ~100MB off of the container, making it pull in at ~25MB.

    <edit> I have pushed a new revision to development basing it directly off of apline:3.2 and cleaning alot of things up. The only thing I can come up with is some dependency is missing, but it evades me what it may be. </edit>

     

    Last edit: neurocis 2015-12-10
  • Ian Moore

    Ian Moore - 2015-12-17

    Sorry it took so long. I downloaded your Dockerfile and messed around with the image. I've never heard of Alpine, but once I did apk --update add php-soap php-json things seemed to work

     
  • neurocis

    neurocis - 2015-12-19

    I too just got back to look at this. Thanks for your effort, I thought I had checked those, agh.

    Anyhow I have pushed a final Alpine rev out (~82mb vs ~325mb, not bad) as well as added a fallback that will have phpVBox automagically configure to the docker hosts IP address so all that should be needed to get it up and running on VBox host itself is the usual VBox/vboxwebsrv prereq &:

    docker run -d -p 88:80 qlustor/phpvirtualbox
    

    Cheers!

     

    Last edit: neurocis 2015-12-19

Log in to post a comment.