~hamed-5/charms/trusty/wordpress/trunk

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Marco Ceppi
  • Date: 2014-06-20 15:09:21 UTC
  • mfrom: (73.1.1 fix_apache2)
  • Revision ID: marco@ceppi.net-20140620150921-67q57j7zu9vxkt6u
[hackedbellini] This is to fix using wordpress with apache2. Without this, apache will fail to start everytime the machine restarts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        fi
57
57
        sed -i -e "s/# deb \(.*\) multiverse/deb \1 multiverse/g" /etc/apt/sources.list #for libapache2-mod-fastcgi
58
58
        apt-get update
59
 
        apt-get -y purge nginx
 
59
        apt-get -y purge nginx*
60
60
        apt-get install -y apache2-mpm-worker libapache2-mod-fastcgi
61
61
        service apache2 stop
62
62