php - docker website opens after a while - ec2/virtualbox -


i have created docker image, tested locally. working well.

after used same dockerfile - built , run on ec2.

the apache webserver listening connections, have opened firewall in ec2 machine security settings, if try navigate webisite, seems opening approx 2.5 minutes.

and website opens. each navigation step takes 2.5 minutes.

later:

i have tried replicate environment on windows machine virtual box , has same issue. website take long time , open. broke connect machine that not docker related (ubuntu dev box)

can advice something?

here docker file:

from ubuntu run apt-get update -y run apt-get install -y apache2 php5 vim libapache2-mod-php5 php5-mcrypt   run echo "servername localhost" >> /etc/apache2/apache2.conf env apache_run_user www-data env apache_run_group www-data env apache_log_dir /var/log/apache2 env apache_lock_dir /var/lock/apache2 env apache_pid_file /var/run/apache2.pid expose 80 run ln -sf /dev/stderr /var/log/apache2/error.log cmd /usr/sbin/apache2ctl -d foreground 

as illustrated in "debug php in docker intellij/phpstorm , xdebug", possible debug php within container.

the op activated directly in php.ini:

[xdebug]   zend_extension="/usr/lib/php5/20121212/xdebug.so"    xdebug.remote_enable=on xdebug.remote_handler=dbgg   xdebug.remote_host=172.17.0.1   xdebug.remote_port=9000   xdebug.remote_connect_back=on   xdebug.remote_autostart=on   xdebug.remote_log="/var/log/xdebug/xdebug.log"  

removing module enough bring response time down.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -