LAMP on Ubuntu 14.04.1 LTS Container
A tutorial for using this LAMP image is at:
Configured using the Linode "Hosting a Website" guide:
A copy of the Apache default .conf file at: /etc/apache2/apache2.backup.conf
Changes to the Apache /etc/apache2/apache2.conf file are:
i. "KeepAlive Off" instead of on
ii. Module added to end of file: <IfModule mpm_prefork_module> StartServers 2 MinSpareServers 6 MaxSpareServers 12 MaxClients 30 MaxRequestsPerChild 3000 </IfModule>
iii. Hostname added to end of file: ServerName localhost
Enabled Virtual Host file at /etc/apache2/sites-available/example.com.conf
Created directories for Virtual Host file:
Temporary root password: "Admin2015" Change immediately!
Ran mysql_secure_installation :
i. Removed anonymous user accounts
ii. Disable remote root login
iii. Removed the test database
MySQL configuration file at /etc/mysql/my.cnf
i. Changed settings:
max_connections = 75 key_buffer = 32M max_allowed_packet = 1M thread_stack = 128K table_cache = 32
Example database: exampleDB
Example user: example_user
Example user password: Admin2015
PHP configuration file at /etc/php5/apache2/php.ini
i. Changed settings: max_execution_time = 30 memory_limit = 128M error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR display_errors = Off log_errors = On error_log = /var/log/php/error.log register_globals = Off
Created directory: /var/log/php
Changed /var/log/php ownership to www-data
I cant connect my MySQL DB to PHP doc on host server... Do anyone have an idea what I'm doing wrong?
I am a newbie docker and linux -- so forgive me if I missed something here. However, I cant seem to find the root password for this image. I am prompted for it when I try to SSH into it. I understand SSH isnt the ideal way to talk to docker containers but I'm just trying to do one step at a time :)
This image worked fine, however, the php-mysql package is missing.
apt-get install php5-mysql
The password is correct, you have to use it with the double quotes on each side password:"Admin2015"
Where can i find the Dockerfile of this project ?
Hi the password given for mysql is incorrect, please fix your guide/image.
I cannot login into mysql. The default password of root is not correct. Please check
is it possible having access to the dockerfile to personnalize a docker image ?