質問内容
MAMPを使用してPHPの開発を行っています。
PCの再起動後、今まで表示できていた画面が表示できず真っ白な状態になりました。(特定のページではなく、すべてのページが同様の状態です。 データベース操作をしているファイルでこの状態になります。)
考えうる原因を教えていただければ幸いです。
環境
- Mac Monterey バージョン12.4
- PHP 7.2.34
- MAMP バージョン 6.6
試したこと
他サイトで挙げられている以下の解消方法は一通り試しましたが、解決に至りませんでした。
- メモリ制限を増やす
- PHPのコードの誤り
- MAMPの再インストール
また、ApacheもMySQLもPHPもエラーを吐いておらず、どこに原因があるのか特定できない状態です。
(エラーログを吐き出す設定は行っております。)
補足:MAMP起動時のログ
原因とは関係ないかもしれませんが、念の為に載せておきます。
何かおかしな箇所などございましたら教えていただければ幸いです。
- Apache
log
1[Mon May 30 15:05:49.952237 2022] [:notice] [pid 13389] FastCGI: process manager initialized (pid 13389) 2[Mon May 30 15:05:49.954162 2022] [mpm_prefork:notice] [pid 13386] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.2.34 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 3[Mon May 30 15:05:49.954472 2022] [core:notice] [pid 13386] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd'
- MySQL
log
12022-05-30T06:08:45.6NZ mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error.log'. 22022-05-30T06:08:45.6NZ mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql57 32022-05-30T06:08:45.857548Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 42022-05-30T06:08:45.857809Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 52022-05-30T06:08:45.857865Z 0 [Note] /Applications/MAMP/Library/bin/mysqld (mysqld 5.7.34) starting as process 13733 ... 62022-05-30T06:08:45.862564Z 0 [Warning] Setting lower_case_table_names=2 because file system for /Applications/MAMP/db/mysql57/ is case insensitive 72022-05-30T06:08:45.863982Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 82022-05-30T06:08:45.864017Z 0 [Note] InnoDB: Uses event mutexes 92022-05-30T06:08:45.864056Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 102022-05-30T06:08:45.864063Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 112022-05-30T06:08:45.864336Z 0 [Note] InnoDB: Number of pools: 1 122022-05-30T06:08:45.864482Z 0 [Note] InnoDB: Using CPU crc32 instructions 132022-05-30T06:08:45.865849Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 142022-05-30T06:08:45.874544Z 0 [Note] InnoDB: Completed initialization of buffer pool 152022-05-30T06:08:45.891919Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 162022-05-30T06:08:45.934457Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 172022-05-30T06:08:45.934680Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 182022-05-30T06:08:45.941135Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 192022-05-30T06:08:45.941704Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 202022-05-30T06:08:45.941727Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 212022-05-30T06:08:45.941915Z 0 [Note] InnoDB: Waiting for purge to start 222022-05-30T06:08:45.996358Z 0 [Note] InnoDB: 5.7.34 started; log sequence number 631959343 232022-05-30T06:08:45.996612Z 0 [Note] InnoDB: Loading buffer pool(s) from /Applications/MAMP/db/mysql57/ib_buffer_pool 242022-05-30T06:08:45.996804Z 0 [Note] Plugin 'FEDERATED' is disabled. 252022-05-30T06:08:46.002410Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220530 15:08:46 262022-05-30T06:08:46.004013Z 0 [Warning] InnoDB: Table mysql/innodb_table_stats has length mismatch in the column name table_name. Please run mysql_upgrade 272022-05-30T06:08:46.004092Z 0 [Warning] InnoDB: Table mysql/innodb_index_stats has length mismatch in the column name table_name. Please run mysql_upgrade 282022-05-30T06:08:46.009869Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them. 292022-05-30T06:08:46.009904Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory. 302022-05-30T06:08:46.011972Z 0 [Warning] CA certificate ca.pem is self signed. 312022-05-30T06:08:46.012088Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory. 322022-05-30T06:08:46.012890Z 0 [Note] Server hostname (bind-address): '*'; port: 8889 332022-05-30T06:08:46.013698Z 0 [Note] IPv6 is available. 342022-05-30T06:08:46.013731Z 0 [Note] - '::' resolves to '::'; 352022-05-30T06:08:46.013870Z 0 [Note] Server socket created on IP: '::'. 362022-05-30T06:08:46.062505Z 0 [Note] Event Scheduler: Loaded 0 events 372022-05-30T06:08:46.062691Z 0 [Note] /Applications/MAMP/Library/bin/mysqld: ready for connections. 38Version: '5.7.34' socket: '/Applications/MAMP/tmp/mysql/mysql.sock' port: 8889 MySQL Community Server (GPL) 39

回答1件
あなたの回答
tips
プレビュー