-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from druidfi/php-conf-changes
PHP conf changes
- Loading branch information
Showing
11 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
#!/bin/bash | ||
|
||
EP="sudo --preserve-env ep"; [ "$APP_ENV" = "dev" ] && EP+=" -v" | ||
TEMPLATE=/etc/php$PHP_INSTALL_VERSION/conf.d/99_dynamic.ini.ep | ||
TARGET=/etc/php$PHP_INSTALL_VERSION/conf.d/99_dynamic.ini | ||
|
||
if [ -f "$TEMPLATE" ]; then | ||
echo "Prepare PHP 99_custom.ini conf..." | ||
echo "- Prepare PHP 99_custom.ini conf..." | ||
|
||
sudo --preserve-env ep -v "$TEMPLATE" | ||
$EP "$TEMPLATE" | ||
sudo mv "$TEMPLATE" "$TARGET" | ||
fi | ||
|
||
if [ $APP_ENV = 'prod' ]; then | ||
echo "- Enable 99_production.ini..." | ||
sudo mv \ | ||
/etc/php$PHP_INSTALL_VERSION/conf.d/99_production.ini.dist \ | ||
/etc/php$PHP_INSTALL_VERSION/conf.d/99_production.ini | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
|
||
echo "Prepare Nginx conf..." | ||
echo "- Prepare Nginx conf..." | ||
|
||
sudo --preserve-env ep -v /etc/nginx/conf.d/default.conf | ||
EP="sudo --preserve-env ep"; [ "$APP_ENV" = "dev" ] && EP+=" -v" | ||
$EP /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
[PHP] | ||
expose_php=Off | ||
memory_limit=512M | ||
|
||
[Date] | ||
date.timezone="Europe/Helsinki" | ||
|
||
# Default value 128 | ||
opcache.memory_consumption=512 | ||
# Default value 8 | ||
opcache.interned_strings_buffer=64 | ||
# Default value 10000 | ||
opcache.max_accelerated_files=30000 | ||
# Default value 0 | ||
opcache.enable_file_override=1 | ||
# Default value 1 | ||
opcache.validate_timestamps=1 | ||
# Default value 4096K | ||
realpath_cache_size=8M | ||
# Default value 32M | ||
apc.shm_size=64M | ||
# Default value 30 | ||
max_execution_time=180 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
opcache.validate_timestamps=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[xdebug] | ||
zend_extension=xdebug.so | ||
|
||
xdebug.mode=debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters