Chapters
30 Chapters
|
2:45:48
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: >=5.5.9
Subscribe to download the code!Compatible PHP versions: >=5.5.9
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
09.
Extensions, php.ini & lineinfile
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
This tutorial is built using an older version of Symfony, but the core concepts of Ansible are still valid. New versions of Ansible may contain some features that we don't use here.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.1.*", // v3.1.4
"doctrine/orm": "^2.5", // v2.7.2
"doctrine/doctrine-bundle": "^1.6", // 1.6.4
"doctrine/doctrine-cache-bundle": "^1.2", // 1.3.0
"symfony/swiftmailer-bundle": "^2.3", // v2.3.11
"symfony/monolog-bundle": "^2.8", // 2.11.1
"symfony/polyfill-apcu": "^1.0", // v1.2.0
"sensio/distribution-bundle": "^5.0", // v5.0.12
"sensio/framework-extra-bundle": "^3.0.2", // v3.0.16
"incenteev/composer-parameter-handler": "^2.0", // v2.1.2
"doctrine/doctrine-migrations-bundle": "^1.2", // v1.2.0
"snc/redis-bundle": "^2.0", // 2.0.0
"predis/predis": "^1.1", // v1.1.1
"composer/package-versions-deprecated": "^1.11" // 1.11.99
},
"require-dev": {
"sensio/generator-bundle": "^3.0", // v3.0.8
"symfony/phpunit-bridge": "^3.0", // v3.1.4
"doctrine/data-fixtures": "^1.1", // 1.3.3
"hautelook/alice-bundle": "^1.3" // v1.4.1
}
}
7 Comments
<b>PSA</b>: using ansible 2.7.0 produces:
Hey Ivan,
Thank you for this report! It's good to know, we'll add a note about it.
Cheers!
Hey Ho,
thanks for the php.ini line replacement. But wouldn't it be better to use:
http://docs.ansible.com/ansible/latest/ini_file_module.html
Like:
And what if I want to set it to PHP FPM and CLI? More Irems? Some Python way I don't know? One more use of ini_file?
Cheers Karsten
Okay my last entry is sadly wrong. Every setting than goes to the "Date" section...
Oh, thanks for this update! Looks like important one
Cheers!
Hey Karsten,
Good question! Actually, Id say it would be better. But why didn't we use it in our screencasts? Well, the simplest answer is because... I see this module for the first time :p So, I think we'll add a note about this module, but you're right, if there's a specific module for some kind of tweaks - better to use that specific module instead of re-inventing the wheel ;)
Thanks for sharing it with us!
Cheers!
What about setting it for both FPM and CLI - take a look at this trick:
This is the most simple solution of doing it in a single task I think. Or, yes, use another one task for CLI.
Cheers!
"Houston: no signs of life"
Start the conversation!