Question

By using the file below, I am only able to get 'PHP 5.3.10-1ubuntu3.8'. I need at least php 5.4 and would really like php 5.5.

Can anyone help me out? I've been looking around for hours and it seems as if this is not a topic that is talked about a lot.

Thanks in advance.

php.sls

php5-fpm:
  pkg:
    - installed
  service.running:
    - enable: True
    - watch:
      - file: /etc/php5/fpm/pool.d/www.conf
    - require:
      - pkg: php5-fpm
      - pkg: php5-mcrypt
      - pkg: php5-curl
      - pkg: php5-mysql
      - pkg: php5-cli
  file.managed:
    - name: /etc/php5/fpm/pool.d/www.conf
    - source: salt://packages/php/www.conf
    - user: root
    - group: root
    - mode: '0640'
    - require:
      - pkg: php5-fpm
Was it helpful?

Solution

Just figured out you can use repos!

php5_ppa:
  pkgrepo.managed:
    - ppa: ondrej/php5

php5-fpm:
  pkg.latest:
    - refresh: True
    - require:
      - pkgrepo: php5_ppa
  service.running:
    - enable: True
    - watch:
      - file: /etc/php5/fpm/pool.d/www.conf
    - require:
      - pkg: php5-fpm
      - pkg: php5-mcrypt
      - pkg: php5-curl
      - pkg: php5-mysql
      - pkg: php5-cli
  file.managed:
    - name: /etc/php5/fpm/pool.d/www.conf
    - source: salt://packages/php/www.conf
    - user: root
    - group: root
    - mode: '0640'
    - require:
      - pkg: php5-fpm
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top