#author("2025-03-20T14:19:48+00:00","default:iseki","iseki")
#author("2025-03-20T14:21:08+00:00","default:iseki","iseki")
* PHP7 [#o8968616]

** Rocky Linux 9
*** PHP8から PHP7 へダウングレード
<pre>
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
dnf module list php
dnf module enable php:remi-7.4
dnf install php74 php74-php-fpm php74-php-cli
dnf install php74-php-{mysqlnd,curl,gd,mcrypt,json,pear,common,xml,zip,devel,xsl,soap,bcmath,mbstring,gettext,imagick}
dnf rm php-8.0.30
dnf install php
php -v
</pre>
** php7.4 [#sb2a986d]
 dnf module list php
 dnf module reset php
 dnf module enable php:7.4 -y
 dnf remove php
 dnf install php

- 7.4 にしたら php-zip がない とか言われる。
 HP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib64/php/modules/zip.so (/usr/lib64/php/modules/zip.so: undefined symbol: zip_register_cancel_callback_with_state), /usr/lib64/php/modules/zip.so.so (/usr/lib64/php/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
- libzip を削除して、入れなおす


** CentOS7 [#m89e8cdc]
*** Install 7.4.26 [#x3e97eb1]

**** Sodium [#w7c198c5]
 yum install  libsodium libsodium-devel
**** SQLite3 [#p882f0ef]
 yum install libsqlite3x
 yum install libsqlite3x-devel

**** Oniguruma [#s1d459a4]
 git clone https://github.com/kkos/oniguruma.git
 cd oniguruma
 ./autogen.sh
 ./configure 
 make
 make install
**** Configure [#nf8400dd]
 ./configure --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \
          --with-apxs2=/usr/local/apache/bin/apxs \
          --with-openssl  --with-zip --with-zlib \
          --enable-mbstring --with-iconv --enable-intl \
          --enable-soap --enable-pcntl --enable-sockets \
          --with-curl --with-xmlrpc --enable-opcache \
          --with-sodium --enable-exif \
          --enable-gd --with-jpeg --with-png --with-freetype
**** RAND_EGD [#r2621d62]
- リンクで RAND_egd() がないと怒られる.
- 確かに何処にもない.自分でコンパイルした openssl にもない.
- 良く分からんので ./main/php_config.h の #define HAVE_RAND_EGD 1 をコメントアウト.大丈夫かな?


** CentOS6 [#se167466]

*** Install (7.1) [#q7ec32f4]
- EPELとRemiリポジトリを使用する
 yum install epel-release
 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
 rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
 
 yum remove php-*
 yum install --enablerepo=remi,remi-php73 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt 
 yum install --enablerepo=remi,remi-php73 php-zip php-mysqli php-intl php-xmlrpc php-soap php-opcache   (for Moodle)


** CentOS7 (未検証:多分これで行く筈) [#l7be8d8b]

*** Install (パッケージ 7.1) [#rf354955]
- EPELとRemiリポジトリを使用する
 yum install epel-release
 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
 rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
 
 yum remove php-*
 yum install --enablerepo=remi,remi-php73 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt
 yum install --enablerepo=remi,remi-php73 php-zip php-mysqli php-intl php-xmlrpc php-soap php-opcache   (for Moodle)



** Source [#t5f5b638]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS