PHP: Hypertext Preprocessor[edit]

Links[edit]

Version[edit]

PHP7 [edit]
PHP8 [edit]

Install[edit]

configure[edit]
# zcat php-5.x.y.tar.gz |tar xfv -
# cd php-5.x.y
#./configure --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \
             --with-apxs2=/usr/local/apache/bin/apxs \
             --with-openssl=/usr/local/ssl --with-zlib=/usr \
             --enable-mbstring --with-iconv --enable-intl \
             --enable-zip --enable-soap --enable-pcntl \
             --enable-sockets --with-curl --with-xmlrpc --enable-opcache \
             --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir=/usr
# make
# make test
# make install
configure オプションの修正[edit]

設定 php.ini[edit]

設定ファイル[edit]
Upload サイズを増やす[edit]
upload_max_filesiz
post_max_size
エラーログ[edit]
log_errors = On
error_log = /var/log/php/php.log
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
Cache[edit]
拡張機能 dl()[edit]
enable_dl = On
extension = /usr/lib64/php/modules/php_jbxl_auth.so
Short Open Tag[edit]
short_open_tag = On

MySQL[edit]

PHP 関数拡張[edit]

Trouble Shooting[edit]

dl() でモジュールを呼んでくれない[edit]
php.ini の設定が反映されない[edit]
CetOS8 / Rocky Linux8 で PHPを 7.2から 7.4 にする[edit]
dnf module list php
dnf module reset php
dnf module enable php:7.4 -y
yum erase php
yum install php --allowerasing

PHP errors[edit]

opcache.so: undefined symbol: sapi_globals, opcache.so: undefined symbol: core_globals_id[edit]
doesn't appear to be a valid Zend extension[edit]
AH00052: child pid # exit signal Segmentation fault (11)[edit]
Notice: Undefined index:[edit]

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2025-04-16 (水) 12:32:58