Comments (10)
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.
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.
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.
@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.
@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.
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.
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.
Fixed in 46bfada
from puphpet.
Cool, I added that in manually and trying again.
from puphpet.
That did the trick - nice one.
Thank you both
from puphpet.
Related Issues (20)
- Failed to start The PHP 5.6 FastCGI Process Manager
- Windows 10 provision error
- Error: While executing gem ... invalid option: --no-rdoc HOT 5
- Error: Evaluation Error: Error while evaluating a Resource Statement
- Can't start vagrant box: "gpg: keyserver receive failed: keyserver error" HOT 1
- Apache redirects to https HOT 2
- Centos7 partial failure HOT 1
- elasticsearch version is wrong
- Mariadb install failed HOT 1
- elasticsearch 2.4.6 not installed
- rsync auto not work
- synced_folder: few projects
- Failed to create the host-only adapter HOT 3
- r
- PGAdmin 4 - not able to connect through SSH Tunneling HOT 1
- Do not have permissions to write to a file HOT 1
- PHP not working in fresh bento/ubuntu-16.04 box HOT 5
- Finite number of databases allowed
- puphpet.com is offline HOT 16
- Install Puphpet site en development computer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puphpet.