Sign inSign up

shirishk/wp_base

By shirishk

•Updated over 8 years ago

Docker image to host wordpress with all prerequisites.

Image
0

134

shirishk/wp_base repository overview

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04⁠ mysql -u root -p CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; GRANT ALL ON wordpress.* TO 'admin'@'localhost' IDENTIFIED BY 'admin123'; FLUSH PRIVILEGES; EXIT;

apt-get install php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc libapache2-mod-php7.0 php7.0-mysql service apache2 restart

vi /etc/apache2/apache2.conf

Options FollowSymLinks AllowOverride None # Require all denied Allow from all

<Directory /var/www/html/> AllowOverride All

a2enmod rewrite apache2ctl configtest service apache2 restart

Download WordPress: cd /tmp curl -O http://docker.pure.synerzip.in/repository/wordpress/wp_gid/wp_artId1/1.0.0.24/wp_artId1-1.0.0.24-Wordpress.tar.gz⁠ tar xzvf *.tar.gz touch /tmp/wordpress/.htaccess chmod 660 /tmp/wordpress/.htaccess cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php mkdir /tmp/wordpress/wp-content/upgrade cp -a /tmp/wordpress/. /var/www/html

Configure the WordPress Directory: chown -R www-data:www-data /var/www/html find /var/www/html -type d -exec chmod g+s {} ; chmod g+w /var/www/html/wp-content

Tag summary

Content type

Image

Digest

Size

233.8 MB

Last updated

over 8 years ago

docker pull shirishk/wp_base