root@ubuntu-14:~# docker logs 5a478de05149
ssh user password: phaiHoo8
140603 11:19:43 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
140603 11:19:43 mysqld_safe Logging to '/var/log/mysql/error.log'.
140603 11:19:43 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
mysql root password: fa6ahs3Ohs8t
wordpress password: Xah9Pae3thu8
140603 11:19:54 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
/usr/local/lib/python2.7/dist-packages/supervisor-3.0-py2.7.egg/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2014-06-03 11:20:03,597 CRIT Supervisor running as root (no user in config file)
2014-06-03 11:20:03,621 INFO RPC interface 'supervisor' initialized
2014-06-03 11:20:03,622 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2014-06-03 11:20:03,622 INFO supervisord started with pid 406
2014-06-03 11:20:04,627 INFO spawned: 'httpd' with pid 409
2014-06-03 11:20:04,633 INFO spawned: 'sshd' with pid 410
2014-06-03 11:20:04,642 INFO spawned: 'mysqld' with pid 411
2014-06-03 11:20:06,414 INFO success: httpd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-06-03 11:20:06,415 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-06-03 11:20:06,418 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
root@ubuntu-14:~#
But If I open site in browser I get
Not Found
The requested URL / was not found on this server.
Apache/2.4.7 (Ubuntu) Server at 192.168.1.31 Port 90
I loged into docker container via ssh (supervisor is awesome!)
And found that
$ cat 000-default.conf
<VirtualHost *:80>
The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
Vhost point to unexisting document root (/var/www/html)
I builded and start container. It llooks good
root@ubuntu-14:~# docker logs 5a478de05149 ssh user password: phaiHoo8 140603 11:19:43 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect. 140603 11:19:43 mysqld_safe Logging to '/var/log/mysql/error.log'. 140603 11:19:43 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql mysql root password: fa6ahs3Ohs8t wordpress password: Xah9Pae3thu8 140603 11:19:54 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended /usr/local/lib/python2.7/dist-packages/supervisor-3.0-py2.7.egg/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security. 'Supervisord is running as root and it is searching ' 2014-06-03 11:20:03,597 CRIT Supervisor running as root (no user in config file) 2014-06-03 11:20:03,621 INFO RPC interface 'supervisor' initialized 2014-06-03 11:20:03,622 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2014-06-03 11:20:03,622 INFO supervisord started with pid 406 2014-06-03 11:20:04,627 INFO spawned: 'httpd' with pid 409 2014-06-03 11:20:04,633 INFO spawned: 'sshd' with pid 410 2014-06-03 11:20:04,642 INFO spawned: 'mysqld' with pid 411 2014-06-03 11:20:06,414 INFO success: httpd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2014-06-03 11:20:06,415 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2014-06-03 11:20:06,418 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) root@ubuntu-14:~#
But If I open site in browser I get Not Found
The requested URL / was not found on this server.
Apache/2.4.7 (Ubuntu) Server at 192.168.1.31 Port 90
I loged into docker container via ssh (supervisor is awesome!) And found that
$ cat 000-default.conf <VirtualHost *:80>
The ServerName directive sets the request scheme, hostname and port that
Vhost point to unexisting document root (/var/www/html)