-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphp.config
33 lines (32 loc) · 1.02 KB
/
php.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
files:
"/etc/php.d/99custom.ini":
mode: "000644"
owner: root
group: root
content: |
upload_max_filesize=20M
post_max_size=24M
realpath_cache_size=4096K
realpath_cache_ttl=600
opcache.enable=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
# session.save_handler = redis
# session.save_path = "tcp://127.0.0.1:6379"
commands:
01_redis_install:
# run this command from /tmp directory
cwd: /tmp
# don't run the command if phpredis is already installed (file /etc/php.d/redis.ini exists)
test: '[ ! -f /etc/php.d/redis.ini ] && echo "redis not installed"'
# executed only if test command succeeds
command: |
wget https://github.com/phpredis/phpredis/zipball/master -O phpredis.zip \
&& unzip -o phpredis.zip \
&& cd phpredis-phpredis-* \
&& phpize \
&& ./configure \
&& make \
&& make install \
&& echo extension=redis.so > /etc/php.d/99redis.ini