在以下IP下,我的容器在我的Webbrowser中成功运行
我还创建了一个卷来在我的容器和我的文件系统之间共享文件
docker run --name lampf -d -p 32775:80 -v /Users/sja/Sites/lamkepf2:/var/www/html --link=lampf_db:db codinglimo/apache_php540_gs_imgmck_pdflib9
Run Code Online (Sandbox Code Playgroud)
现在我使用以下xdebug.ini在我的容器中成功安装了xDebug
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/temp/profiledir"
Run Code Online (Sandbox Code Playgroud)
PHPStorm也已配置
http://img2.picload.org/image/iowdpww/xdebug.png
但是我的index.php中的断点被忽略了?我的错是什么?
问题是在谢尔盖的帮助下解决的
我的新xdebug.ini
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=on
#xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_connect_back=On
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/temp/profiledir"
Run Code Online (Sandbox Code Playgroud) 我将boot2docker更新为DockerToolbox.
现在我尝试使用Sequal Pro(MySQL客户端)连接到我的数据库,但是我的ssh登录到我的VM失败了以下用户名和密码:
IP:192.168.99.100
用户:docker
密码:tcuser
如何在DockerToolbox中找到ssh登录的正确用户名和密码?
当我尝试连接终端时,我看到以下警告
我的NGINIX(带有php-fpm)上有一个php文件,可创建一个简单的txt文件。
<?php
$content = "some text here 123 myText.txt";
$fp = fopen($_SERVER['DOCUMENT_ROOT'] . "/myText.txt","wb");
fwrite($fp,$content);
fclose($fp);
?>
Run Code Online (Sandbox Code Playgroud)
但这仅在我授予“ www”文件夹777许可时有效。我的Index.php放在我的www文件夹中。
我在nginix和php-fpm上的用户设置有什么问题?