Travis Tran

Travis Tran

BREAKTHROUGH the limits

PHP Notes

Modules

opcache

sudo yum -y install php-opcache
sudo yum -y install php56-php-opcache

zip

sudo yum -y install php-pecl-zip
sudo yum -y install php56-php-pecl-zip

mysqli

sudo yum install -y php-mysqli

Commands

Checking version

php -v

Listing modules

php -m
php -r "print_r(get_loaded_extensions());"
php -m | grep -i modulename

Finding where is php.ini located in

find / -name php.ini

Install php7 with docker-compose

sudo docker pull php

nano docker-compose.yml
php:
    image: php:7-fpm
    volumes:
        - ./code:/code

sudo docker-compose up

 

X
Glad to have you at travistran.me
Welcome to TravisBot
wpChatIcon