a2enmod php5: | a2enmod php5: | ||||
cmd.run: | cmd.run: | ||||
- unless: ls /etc/apache2/mods-enabled/php5.load | - unless: ls /etc/apache2/mods-enabled/php5.load | ||||
- order: 225 | |||||
- require: | - require: | ||||
- pkg: mod-php5 | - pkg: mod-php5 | ||||
- watch_in: | - watch_in: |
a2enmod rewrite: | a2enmod rewrite: | ||||
cmd.run: | cmd.run: | ||||
- unless: ls /etc/apache2/mods-enabled/rewrite.load | - unless: ls /etc/apache2/mods-enabled/rewrite.load | ||||
- order: 225 | |||||
- watch_in: | - watch_in: | ||||
- cmd: apache-restart | - cmd: apache-restart | ||||