How to create a website using WordPress/How to use plugins/No-code construction blog

Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 14684160 bytes) Error: On Lollipop
At HanamiWEB Online School,
●Ask questions in real-time in the virtual study room!
●Ask as many questions as you want via chat!
●E-learning materials that you can learn as much as you want, 24 hours a day!
All included for just 2,500 yen/month!
WordPressサイトでこのようなエラーが出たのですが、解決したので備忘録。
Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 14684160 bytes)
サーバー環境はロリポップになります。phpのメモリが足りなくなって表示が出来なくなったというエラー内容になります。
「モジュール版」を利用している場合はの操作方法です。まずは「CGI版」に変更してから作業を進めます。
ロリポップへログインし、PHP設定へ移動
まずはロリポップへログインをして、PHP設定へ移動します。

php.ini設定を開く
CGIバージョンでの解説になりますので、現在利用のバージョンをCGIになっているか確認をして作業を進めて下さい。

php_value,php_flagを利用可能にする
php_value,php_flagを利用可能にするをONにして、.htaccessの設定を優先するようにします。
ONにしたら、【php.ini】を設定するボタンをクリックします。

Edit the .htaccess file
次に、ロリポップFTPへアクセスをして、.htaccessファイルを編集します。

こちらが.jhtaccessファイルです。クリックして編集画面を開きます。

とても大切なファイルなので、触る前に【ダウンロード】をしてください。
万が一、編集後にサイトが表示されなくなったら、ダウンロードしていたファイルをアップして、元に戻してください。

こちらのコードを一番上に追加して、保存します。
今回、重たいサイトだったので、1024Mまで上げるコードを追加しました。
環境に応じて、数字を変えて下さい。
php_value memory_limit 1024M

Released as soon as the next morning! Weekends and holidays are also available!
Super rush website creation plan
We offer a rush website creation plan for those who need a website in a hurry!
We can publish your content as soon as the next morning, even on weekends and holidays! If you have any questions, please check the details below!
Latest Articles






