diff --git a/ansible/provision.yml b/ansible/provision.yml index f1e3086..3fcfafb 100644 --- a/ansible/provision.yml +++ b/ansible/provision.yml @@ -4,7 +4,7 @@ vars: root_folder: /var/www/amsphp document_root: "{{ root_folder }}/web/" - write_to_folder: /dev/shm + write_to_folder: /var/shm dbname: amsphp dbuser: root dbpasswd: root diff --git a/ansible/tasks/development.yml b/ansible/tasks/development.yml index 84e4ab9..ccbac2b 100644 --- a/ansible/tasks/development.yml +++ b/ansible/tasks/development.yml @@ -71,6 +71,7 @@ - php5-intl - php5-memcached - php5-xdebug + - libapache2-mod-php5 # Configurations diff --git a/ansible/tasks/host.yml b/ansible/tasks/host.yml index eac7edb..f88492d 100644 --- a/ansible/tasks/host.yml +++ b/ansible/tasks/host.yml @@ -6,8 +6,14 @@ command: a2ensite amsphp-vhost.conf notify: restart apache +- name: Apache | Disable Default Host Config + command: a2dissite default + ignore_errors: true + notify: restart apache + - name: Apache | Disable Default Host Config command: a2dissite 000-default.conf + ignore_errors: true notify: restart apache - name: Apache | Ensure application files are present diff --git a/app/AppKernel.php b/app/AppKernel.php index b9572a8..d477258 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -73,7 +73,7 @@ protected function getContainerBaseClass() public function getLogDir() { if (in_array($this->environment, array('dev', 'test'))) { - return '/dev/shm/amsphp/logs'; + return '/var/shm/amsphp/logs'; } return parent::getLogDir();