Skip to content

Commit

Permalink
Several PHP7 fixes: TalkRight, xhprof, mongo, php5_module
Browse files Browse the repository at this point in the history
* Fix Extension:TalkRight fix for PHP7
* Temporarily remove profiling since xhprof doesn't work on PHP7
* Fix mongodb PECL package for PHP7
* Fix httpd.conf statements about php5_module
  • Loading branch information
jamesmontalvo3 committed Apr 20, 2018
1 parent ecc9e42 commit 3ea4a9f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/core/MezaCoreExtensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ list:
legacy_load: true
- name: TalkRight
repo: https://github.com/enterprisemediawiki/TalkRight.git
version: extreg
version: master
legacy_load: true
- name: AdminLinks
repo: https://gerrit.wikimedia.org/r/mediawiki/extensions/AdminLinks.git
Expand Down
10 changes: 5 additions & 5 deletions src/roles/apache-php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
include_role:
name: composer

- name: Ensure PHP profiling configured
include: profiling.yml
# http://docs.ansible.com/ansible/playbooks_roles.html#dynamic-versus-static-includes
static: yes
when: m_setup_php_profiling
# - name: Ensure PHP profiling configured
# include: profiling.yml
# # http://docs.ansible.com/ansible/playbooks_roles.html#dynamic-versus-static-includes
# static: yes
# when: m_setup_php_profiling

# If profiling not enabled, disable MongoDB if it exists (e.g. profiling had
# previously been enabled)
Expand Down
2 changes: 1 addition & 1 deletion src/roles/apache-php/tasks/profiling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
state: present
with_items:
- pecl/xhprof-beta
- pecl/mongo
- pecl/mongodb

- name: Ensure XHGui present
git:
Expand Down
5 changes: 2 additions & 3 deletions src/roles/apache-php/templates/httpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ ServerRoot "/etc/httpd"
# LoadModule foo_module modules/mod_foo.so
#
Include conf.modules.d/*.conf
LoadModule php5_module modules/libphp5.so

<IfModule unixd_module>
#
Expand Down Expand Up @@ -426,7 +425,7 @@ Listen 8080

{% if m_setup_php_profiling -%}
# Prepends file all files to initiate profiling
php_admin_value auto_prepend_file "{{ m_profiling_xhgui_directory }}/external/header.php"
# php_admin_value auto_prepend_file "{{ m_profiling_xhgui_directory }}/external/header.php"
{% endif %}

</VirtualHost>
Expand Down Expand Up @@ -473,7 +472,7 @@ Listen 8090
<FilesMatch "\.ph(p[2-6]?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<IfModule !php5_module>
<IfModule !php7_module>
<FilesMatch "\.ph(p[2-6]?|tml)$">
Order allow,deny
Deny from all
Expand Down

0 comments on commit 3ea4a9f

Please sign in to comment.