Coder Social home page Coder Social logo

Comments (8)

jtreminio avatar jtreminio commented on July 22, 2024

This may have something to do with the php module we're using:

https://github.com/puphpet/vagrant-puppet-lamp/blob/master/modules/php/manifests/params.pp#L43

from puphpet.

frastel avatar frastel commented on July 22, 2024

Thanks for the hint. The package and service params are however defined in nginx.pp.twig and overwrite the default values:
https://github.com/puphpet/puphpet/blob/master/src/Puphpet/View/Vagrant/Modules/PHP/nginx.pp.twig#L3

Maybe the workflow of Puppet is different to the one I have in mind. Have to debug it further more.

from puphpet.

elkangaroo avatar elkangaroo commented on July 22, 2024

I just stumpled upon this problem (apache running, although nginx was chosen) while trying to get my website to show up in the vm.

The problem here is, that you install the php5 meta package in nginx.pp.twig on line 3, which depends on

  • libapache2-mod-php5 or
  • libapache2-mod-php5filter or
  • php5-cgi or
  • php5-fpm

If none of the dependencies are installed, it will automatically install the first one (libapache2-mod-php5), which is what is happening here.

Removing php5-fpm from php::module and making sure the php5-fpm package is installed before the php5 package did work, though I didn't manage to do it with only editing the Modules/PHP/nginx.pp because of some dependency cycles.

Someone with more puppet knowledge can surely figure out how to best do this :)

from puphpet.

elkangaroo avatar elkangaroo commented on July 22, 2024

(!) Be aware, that if PHP 5.4 or 5.5 is selected, the php5-fpm package must be installed AFTER the apt::ppa['ppa:ondrej/php5'] was added and BEFORE the php5 package will be installed.

UPDATE: Maybe have a look at https://github.com/saz/puppet-php it looks quiet good as far as I can see.

from puphpet.

frastel avatar frastel commented on July 22, 2024

Thank you @elkangaroo , your hints pointed me to the solution. The only thing I had to change is to assign php5-fpm to the php resource and not php5. There was a problem in the composer class of vagrant-puppet-lamp but I added a fix for it there.
Will test this furthermore after the next deployment.

from puphpet.

jtreminio avatar jtreminio commented on July 22, 2024

I've gone through all possible install configs for nginx: php 5.5/5.4/5.3, mysql/postgresql/none, apache is no longer being installed.

from puphpet.

gorhgorh avatar gorhgorh commented on July 22, 2024

i have got hte exact opposite problem, i installed my box and up it, to realise that although i took apache as web server nginx is running AND is the main server mapped to my vhost. i'm not sure on what info should i look at to understand why.

from puphpet.

frastel avatar frastel commented on July 22, 2024

@gorhgorh Please create a new issue for this and dump your puphpet.json there.

from puphpet.

Related Issues (20)

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.