Tag: hhvm

如何在主机上访问docker容器内运行的unit testing的xdebug会话?

我有一个PHP应用程序使用hhvm在Docker容器中运行。 我的IDE是在本地主机上运行的phpstorm,我设置了xdebug。 我的/etc/hhvm/php.ini部分看起来像: ; xdebug hhvm.debug.server_error_message = true xdebug.enable=1 xdebug.remote_enable=1 xdebug.idekey="PHPSTORM" xdebug.remote_port = 9999 xdebug.remote_autostart=1 xdebug.remote_connect_back=1 xdebug.remote_handler=dbgp xdebug.remote_log="/var/log/xdebug/xdebug.log" 而在我的nginx conf中,我不得不添加指定服务器名称以匹配我的反向代理。 反向代理在我的本地主机上运行,​​并将容器的IP(例如127.0.0.1:8080映射到可读的http://my_app.local 。 nginx conf条目看起来像这样: cat nginx/conf.d/my_app.conf server { listen 80 default_server; server_name my_app.local; root /var/www/my_app/web; index index.php index.html index.htm; include hhvm.conf; error_log /var/log/nginx/sandbox/error.log; access_log /var/log/nginx/sandbox/access.log main; location /status { return 200; access_log off; } location […]

Docker中的HHVM总是以root身份运行

我在Docker容器内运行下面的命令 ps -ef | grep hhvm 结果是: 根1 0 0 01:50? 00:00:00 hhvm –mode = server –user = www-data –port = 9001 –config = /etc/hhvm/server.ini –config = /etc/hhvm/php.ini –config = / etc / hhvm / config.hdf root 15 8 0 01:58? 00:00:00 grep hhvm 这是HHVM的错误,如果在Docker中运行,或者我失去了一些东西?

在Docker容器中运行HHVM的“hh_server”工具失败

在Docker中运行HHVM的hh_server工具失败,出现以下错误: Fatal error: exception Not_found. 同样的操作系统(Ubuntu 14.04)和HTTP服务器(nginx)的主机工作正常。 任何想法如何可能发生?

如何在Docker中将HHVM作为守护进程运行?

HHVM在使用hhvm -m daemon在Docker中运行时不会进入hhvm -m daemon 。 该过程开始,但不会返回到命令提示符。 ctl^c杀死进程。 我的解决方法如下所示: 安装screen 运行exec >/dev/tty 2>/dev/tty </dev/tty 运行screen 从screen运行HHVM 任何想法为什么? 谢谢。

如何将环境variables传递给HHVM?

我正在尝试将一个网站从php5-fpm迁移到hhvm 。 我们在本地开发环境中使用Docker,并使用Docker的–link创build的环境variables设置MySQL和Redis的详细信息。 使用php5-fpm ,通过在www.conf设置这些variables,可以很容易地将这些variables传递给PHP。 与hhvm 3.5.0,我似乎无法find相同的。 当我在这个页面的示例configuration中findEnvVariables时,我已经接近了,但是hhvm 3.5.0现在使用了INI文件来configuration,我似乎无法find使用这些设置的位置。 有任何想法吗? 谢谢。

docker工人“无法find替代telinit实现产卵”

我是MAC用户,在VM“ubuntu 14.04”中安装了docker。 (我手动安装了所有东西, 不使用docker工具箱) 问题是当我启动特定的容器(其他容器正常运行),它给了我这个奇怪的错误消息“ 找不到一个替代telinit实现产卵 ”。 这里是我用来构build图像的Dockerfile: FROM diegomarangoni/hhvm:cli # install php composer. # It needs git and the PHP zip extension # zlib1g-dev is needed to compile the PHP zip extension # openssh-client provides ssh-keyscan RUN apt-get update \ && apt-get install –assume-yes –no-install-recommends curl git zlib1g-dev openssh-client \ && apt-get clean && […]