Coder Social home page Coder Social logo

PHP version about puphpet HOT 10 CLOSED

puphpet avatar puphpet commented on June 24, 2024
PHP version

from puphpet.

Comments (10)

jtreminio avatar jtreminio commented on June 24, 2024

Sean,

Can you paste your default.pp file?

On Sat, May 18, 2013 at 5:40 PM, Sean Downey [email protected]:

The "Use PHP 5.4" option doesn't seem to work. PHP 5.3.10 has install for
me when I run "php -v"


Reply to this email directly or view it on GitHubhttps://github.com//issues/16
.

from puphpet.

 avatar commented on June 24, 2024

Sure

I manually added the php modules as they were blank - I put a comment in on another ticket about that.

Thanks

exec { 'apt-get update':
command => 'apt-get update',
path => '/usr/bin/',
timeout => 60,
tries => 3,
}

class { 'apt':
always_apt_update => true,
}

package { ['python-software-properties']:
ensure => 'installed',
require => Exec['apt-get update'],
}

file { '/home/vagrant/.bash_aliases':
source => 'puppet:///modules/puphpet/dot/.bash_aliases',
ensure => 'present',
}

package { ['build-essential', 'vim', 'curl']:
ensure => 'installed',
require => Exec['apt-get update'],
}

class { 'apache': }

apache::dotconf { 'custom':
content => 'EnableSendfile Off',
}

apache::module { 'rewrite': }
apache::module { 'expires': }

apache::vhost { 'www.example.org':
server_name => 'www.example.org',
serveraliases => [],
docroot => '/var/www/example/public/',
port => '80',
env_variables => [],
priority => '1',
}

apt::ppa { 'ppa:ondrej/php5': }

class { 'php':
service => 'apache',
require => Package['apache'],
}

php::module { 'php5-cli': }
php::module { 'php5-curl': }
php::module { 'php5-intl': }
php::module { 'php5-mcrypt': }
php::module { 'php5-common': }
php::module { 'php5-gd': }
php::module { 'php5-fpm': }
php::module { 'php5-mysql': }

class { 'php::devel':
require => Class['php'],
}

class { 'php::pear':
require => Class['php'],
}

class { 'xdebug': }

xdebug::config { 'cgi': }
xdebug::config { 'cli': }

class { 'php::composer': }

php::ini { 'default':
value => [
'date.timezone = America/Chicago',
'display_errors = On',
'error_reporting = -1'
],
target => 'error_reporting.ini',
}

class { 'mysql':
root_password => 'secure_not',
}

from puphpet.

jtreminio avatar jtreminio commented on June 24, 2024

I've tested this several times on local and on prod, both work correctly. Maybe you got one of my earlier buggy releases.

Care to try again?

from puphpet.

 avatar commented on June 24, 2024

@jtreminio I got the same again 5.3.10. I used Ubuntu Precise 64 Bit (12.04.2 LTS) in case that was the issue?

from puphpet.

frastel avatar frastel commented on June 24, 2024

@jtreminio Seems that in this case the provisioning installs PHP first before the ppa is registered.

This should do the trick:

apt::ppa { 'ppa:ondrej/php5':
  before => Class['php'],
}

from puphpet.

jtreminio avatar jtreminio commented on June 24, 2024

Actually I see what happened - I had this before:

class { 'apache' :
    require => Apt::Ppa['ppa:ondrej/php5'],
}

but removed it in a previous commit. It was the only way I found I could get the PPA to install, run apt-get update, then install php5.4

@frastel I'll see if your code does the same!

from puphpet.

jtreminio avatar jtreminio commented on June 24, 2024

Thanks @frastel, per documentation that's what I should have been using. I had tried to use it before, but I had been doing backwards!

@seandowney it should work now. Try again?

from puphpet.

jtreminio avatar jtreminio commented on June 24, 2024

Fixed in 46bfada

from puphpet.

 avatar commented on June 24, 2024

Cool, I added that in manually and trying again.

from puphpet.

 avatar commented on June 24, 2024

That did the trick - nice one.

Thank you both

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.