<commit_before>#PHP
sudo yum -y install epel-release
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

sudo yum install -y --enablerepo=remi,remi-php56 php \
php-cli \
php-common \
php-devel \
php-gd \
php-intl \
php-mbstring \
php-pdo \
php-mysqlnd \
php-pear \ 
php-xml \
php-mcrypt

# PECL
sudo yum install -y --enablerepo=remi,remi-php56 \
php-opcache \
php-pecl-memcache \
php-pecl-memcached \
php-pecl-apcu \
php-pecl-xdebug

sudo sed -i -e "/AddType text\/html \.php/i\AddType application\/x-httpd-php \.php \.html" /etc/httpd/conf.d/php.conf

# Error log
sudo mkdir -p /var/log/php/
sudo touch /var/log/php/php_errors.log
sudo chown -R apache:apache /var/log/php/
sudo sed -i -e "s/\;error_log = php_errors.log/error_log = \/var\/log\/php\/php_errors.log/g" /etc/php.ini
cat << EOT > /etc/logrotate.d/php
/var/log/php/php_errors.log
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}
EOT
<commit_msg>#12 Add timezone setting to php config<commit_after>#PHP
sudo yum -y install epel-release
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

sudo yum install -y --enablerepo=remi,remi-php56 php \
php-cli \
php-common \
php-devel \
php-gd \
php-intl \
php-mbstring \
php-pdo \
php-mysqlnd \
php-pear \ 
php-xml \
php-mcrypt

# PECL
sudo yum install -y --enablerepo=remi,remi-php56 \
php-opcache \
php-pecl-memcache \
php-pecl-memcached \
php-pecl-apcu \
php-pecl-xdebug

sudo sed -i -e "/AddType text\/html \.php/i\AddType application\/x-httpd-php \.php \.html" /etc/httpd/conf.d/php.conf

# Error log
sudo mkdir -p /var/log/php/
sudo touch /var/log/php/php_errors.log
sudo chown -R apache:apache /var/log/php/
sudo sed -i -e "s/\;error_log = php_errors.log/error_log = \/var\/log\/php\/php_errors.log/g" /etc/php.ini
cat << EOT > /etc/logrotate.d/php
/var/log/php/php_errors.log
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}
EOT

sudo sed -i -e "s/\;date.timezone =/date.timezone = \"Asia\/Tokyo\"/g" /etc/php.ini

{'fraction_non_alphanumeric': 0.15136363636363637, 'fraction_numerical': 0.006363636363636364, 'mean_word_length': 2.743197278911565, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2968421', 'n_tokens_mistral': 953, 'n_tokens_neox': 900, 'n_words': 190}