SynologyのNASでWordPressをパッケージでインストールすると、PHP7.3 が関連付けられる。
だが、WordPressをバージョンアップするとPHP7.4が要求されるので PHP7.3 ⇒ PHP7.4 に変更する。
PHP7.4 パッケージをインストールする
DSMでPHP7.4のパッケージをインストールする。
SynorogyのNASにSSL接続する
TeraTerm などを用いてSynoloyのNASにSSHで接続する。
Synology strongly advises you not to run commands as the root user, who has the highest privileges on the system. Doing so may cause major damages to the system. Please note that if you choose to proceed, all consequences are at your own risk. xxx@ds218:~$
resource の変更
vi を使って、INFOファイルを変更する。
※ Synology の NAS には vi しか入ってない!
xxx@ds218:~$ sudo vi /var/packages/WordPress/conf/resource Password:(ログインユーザのパスワード)
「“backend”:7,」を「“backend”:8,」に変更する。
※ 7:PHP7.3、8:PHP7.4 です。
{"indexdb":{"app-index":{"conf-relpath":"ui/index.conf","db-relpath":"indexdb/appindexdb"}},"mariadb10-db":{"admin-account-m10":"{{wizard_m10_acc}}","admin-account-m5":"{{wizard_m5_acc}}","admin-pw-m10":"{{wizard_m10_pass}}","admin-pw-m5":"{{wizard_m5_pass}}","create-db":{"db-collision":"{{create_db_collision}}","db-name":"{{pkgwizard_db_name}}","flag":"{{create_db_flag}}"},"drop-db-inst":{"db-name":"{{old_db_name}}","flag":"{{drop_db_flag}}","ver":"{{mariadb_ver}}"},"drop-db-uninst":"{{pkgwizard_remove_additional}}","grant-user":{"db-name":"{{pkgwizard_db_name}}","flag":"{{grant_user_flag}}","user-name":"{{pkgwizard_db_user_account}}","user-pw":"{{pkgwizard_db_user_password}}"},"migrate-db":{"db-collision":"error","flag":"{{need_migrate}}","m10-db-name":"{{pkgwizard_db_name}}","m5-db-name":"{{old_db_name}}"}},"sdk-plugin":{"plugins":[{"event":"mariadb10_chpw","relpath":"synology_added/etc/mariadb_chpw_wordpress"}]},"systemd-unit":{},"webservice":{"migrate":{"vhost":[{"root":"wordpress","service":"wordpress"}]},"pkg_dir_prepare":[{"group":"http","mode":"0755","source":"/var/packages/WordPress/target/src","target":"wordpress","user":"WordPress"}],"portals":[{"alias":"wordpress","app":"SYNO.SDS.WordPress","display_name":"WordPress","name":"wordpress","service":"wordpress","type":"alias"}],"services":[{"backend":1,"connect_timeout":60,"display_name":"WordPress","icon":"ui/Wordpress_{0}.png","intercept_errors":false,"php":{"backend":7,"extensions":["mysql","mysqli","pdo_mysql","curl","gd","iconv"],"group":"http","open_basedir":"/var/services/web_packages/wordpress:/tmp:/var/services/tmp","php_settings":{"mysql.default_socket":"/run/mysqld/mysqld10.sock","mysqli.default_socket":"/run/mysqld/mysqld10.sock","pdo_mysql.default_socket":"/run/mysqld/mysqld10.sock"},"profile_desc":"PHP Profile for WordPress","profile_name":"WordPress Profile","user":"WordPress"},"read_timeout":3600,"root":"wordpress","send_timeout":60,"service":"wordpress","support_alias":true,"support_server":true,"type":"apache_php"}]}}
~
~
~
~
~
~
~
"/var/packages/WordPress/conf/resource" 1L, 2030C 1,1 All
INFO の変更(これはやらなくてもいいかもしれない)
vi を使って、INFOファイルを変更する。
xxx@ds218:~$ sudo vi /var/packages/WordPress/INFO Password:(ログインユーザのパスワード
「PHP7.3>=7.3.24-0160」を「PHP7.4>=7.4.9-0005」に変更する。
version="5.7.2-1039" install_dep_packages="WebStation>=3.0.0-0302:MariaDB10:PHP7.3>=7.3.24-0160:Apache2.2>=2.2.34-0120" thirdparty="yes" ↓ distributor_url="http://www.synology.com/" PHP7.4>=7.4.9-0005 os_min_ver="7.0-41300" maintainer="WordPress" dsmappname="SYNO.SDS.WordPress" package="WordPress" distributor="Synology Inc." startstop_restart_services="nginx.service" maintainer_url="http://tw.wordpress.org/" silent_upgrade="no" auto_upgrade_from="4.7.4-0136" instuninst_restart_services="nginx.service" @ @ @ @ "/var/packages/WordPress/INFO.org" 46L, 38506C 1,1 Top
コメント