WP Rocket - WordPress Caching Plugin
{{brizy_dc_image_alt entityId=

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!

{{brizy_dc_image_alt imageSrc=

Latest Articles

{{brizy_dc_image_alt entityId=
Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 14684160 bytes) Error: On Lollipop
{{brizy_dc_image_alt entityId=
Explaining how to set up the Post SMTP plugin when using Google Workspace
{{brizy_dc_image_alt entityId=
Explaining the Meta Pixel feature of the paid version of the WordPress booking system plugin Amelia (9.x and later)
{{brizy_dc_image_alt entityId=
Explaining the Zoom Integration Feature of the Paid Version of the WordPress Amelia Booking System Plugin (9.x and later)
en_USEnglish