Giter Club home page Giter Club logo

ansible-php's People

Contributors

hanxhx avatar totooow avatar xelgand avatar zerwes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ansible-php's Issues

Potential bug with nginx/php-fpm in wheezy

I found a potential issue with travis.

stdout should contains php version.

In jessie:

TASK: [SHELL | Check vhost] *************************************************** 

<localhost> REMOTE_MODULE command curl -v -H 'Host: test.local' http://127.0.0.1/phpinfo.php 2> /dev/null | grep h1 | grep -o 'PHP Version 5.*<' | sed -r 's/<//g' #USE_SHELL

ok: [localhost] => {"changed": false, "cmd": "curl -v -H 'Host: test.local' http://127.0.0.1/phpinfo.php 2> /dev/null | grep h1 | grep -o 'PHP Version 5.*<' | sed -r 's/<//g'", "delta": "0:00:00.410377", "end": "2015-08-04 10:32:56.731093", "rc": 0, "start": "2015-08-04 10:32:56.320716", "stderr": "", "stdout": "PHP Version 5.6.9-0+deb8u1", "warnings": ["Consider using get_url module rather than running curl"]}

In Wheezy:

TASK: [SHELL | Check vhost] *************************************************** 

<localhost> REMOTE_MODULE command curl -v -H 'Host: test.local' http://127.0.0.1/phpinfo.php 2> /dev/null | grep h1 | grep -o 'PHP Version 5.*<' | sed -r 's/<//g' #USE_SHELL

ok: [localhost] => {"changed": false, "cmd": "curl -v -H 'Host: test.local' http://127.0.0.1/phpinfo.php 2> /dev/null | grep h1 | grep -o 'PHP Version 5.*<' | sed -r 's/<//g'", "delta": "0:00:00.498481", "end": "2015-08-04 10:26:39.635515", "rc": 0, "start": "2015-08-04 10:26:39.137034", "stderr": "", "stdout": "", "warnings": ["Consider using get_url module rather than running curl"]}

Possible actions:

  • fastcgi_params / fastcgi.conf problem
  • check if PHP-FPM running?

Template error

When running this role as

- { role: HanXHX.php, php_version: '8.1', php_install_fpm: true }

I get this error:

TASK [HanXHX.php : TEMPLATE | Deploy pool configuration] ***************************************************************************************************************************************************************************************************************************************************************************************** fatal: [playground]: FAILED! => {"msg": "'dict object' has no attribute 'hanxhx_php'"}

The target host is running Debian 11.

Manage many php versions at the same time

Idea: call this role twice (only php_version changes). It can work.

Problems:

  • Manage many vhosts (1 per PHP version)
  • On Jessie, install dotdeb + php7 first (prevent idempotence issue with nginx)
  • variables are shared between role calls :/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.