Drupal on Docker in 30 seconds

Install Docker

After that you just need to pull a drupal container from docker hub

Access new docker environment on http://yourdockerserver:8080

account login is admin / admin


Grab a beer

Installing Apache2, PHP5, MySQL on Centos

yum -y install httpd php mysql mysql-server php-mysql
mysqladmin -u root password ‘ENTER-PASSWORD-HERE’

mysql -u root -p
 mysql> DRO P DATABASE test;
 mysql> DELETE FROM mysql.user WHERE user = ”;
  /sbin/chkconfig httpd on
  /sbin/chkconfig –add mysqld
  /sbin/chkconfig mysqld on
  /sbin/service httpd start
  /sbin/service mysqld start
Check your php is working

<php echo phpinfo(); ?>

Centos, LifeRay with mysql database install

  • Install Centos 4.8 using DVD
  • vi /etc/yum.conf to include proxy server if internal
  • Run “yum update” to upgrade your CENTOS to the latest.
  • Install MySQL server “yum install mysql-server”
  • /etc/init.d/mysqld start
  • mysqladmin -u root password ‘hardpassword’
  • mysqladmin -u root -p create liferay
  • mysqladmin -u root -p reload

Setup MySQL Permissions

To access the user, host databases, etc… type this;

To give localhost permission to access all databases, enter this:

Note, the ‘%’ can be replaced with a database name. The ‘%’ is a wildcard.

Following the previous format, to allow access from another hostname (in this case “windowsbox”) add this:

Again, ‘%’ is used as a Wild-Card.

To create a user ‘djg’ who can access the MySQL server from localhost, type this:

To give the user access from another hostname, domain, etc… add other entries accordingly. For example, to give user djg access from windowsbox:

Now… to give the user permissions to access a database from localhost, add this entry and change with your appropriate information:

mysql> insert into
-> db (host,db,user,Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv)
-> values (‘localhost’,’mydatabase’,’djg’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’);

To give the user permissions from windowsbox, add this:

mysql> insert into
-> db (host,db,user,Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv)
-> values (‘windowsbox’,’mydatabase’,’djg’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’);

Now, type: quit and you will exit mysql.

Finally, create the actual database (in this case, ‘mydatabase’) type this:

mysqladmin -u root -p create mydatabase

After prompting you for a password, it should create the database.

At this point, you must reload MySQL. Type:

mysqladmin -u root -p reload

After prompting you for a password it should reload MySQL.