A simple dockerfile for this purpose. Not sure for the last lines. Fix me if I'm wrong.
FROM dockerfile/ubuntu
# Install Java
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
RUN apt-get install -y oracle-java7-installer
RUN wget "http://download.neo4j.org/artifact?edition=community&version=1.9.6&distribution=tarball&dlid=notread"
RUN mv artifact\?edition\=community\&version\=1.9.6\&distribution\=tarball\&dlid\=notread neo.tar.gz
RUN tar xvfz neo.tar.gz
RUN mv neo4j-community-1.9.6 /opt/neo4j-community-1.9.6
RUN /opt/neo4j-community-1.9.6/bin/neo4j install
CMD service neo4j-service start
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Wednesday, March 5, 2014
Tuesday, December 17, 2013
Can't update wordpress on Ubuntu
I had a wordpress installation on an Ubuntu 13 machine but was unable to update the wordpress. I thought it was due to rwx permission problems but it turned out it was not.
The wordpress folder should be of group "www-data" if you're using apache. Apache by-default runs with www-data group and user. So if your wordpress folder does not belong to this group, apache can not copy the newer version in this folder so it says "I could not update."
I found the solution by following the inverse of the instructions here ( stylishjm at the bottom ).
She said we could change the user and group of apache to our own username but that cause some other problems since it caused:
So instead of changing apache's username, I changed the group of wordpress folder:
Hope that helps.
The wordpress folder should be of group "www-data" if you're using apache. Apache by-default runs with www-data group and user. So if your wordpress folder does not belong to this group, apache can not copy the newer version in this folder so it says "I could not update."
I found the solution by following the inverse of the instructions here ( stylishjm at the bottom ).
She said we could change the user and group of apache to our own username but that cause some other problems since it caused:
... waiting /var/lock/apache2 already exists but is not a directory owned by "username"
So instead of changing apache's username, I changed the group of wordpress folder:
chgrp -R www-data wordpress
Hope that helps.
Subscribe to:
Posts (Atom)