Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/fatal error: allowed memory size of 268435456 bytes exhausted - How to fix?
Next
Answered
Tom
  • 2
Tom
Asked: July 5, 20222022-07-05T14:30:48+00:00 2022-07-05T14:30:48+00:00In: Error

fatal error: allowed memory size of 268435456 bytes exhausted – How to fix?

  • 2

. Advertisement .

..3..

. Advertisement .

..4..

In Plesk, I had an unsuccessful operation with the following error messages:

PLESK_INFO: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /path/to/plesk/file.php on line 228

How can I fix the fatal error: allowed memory size of 268435456 bytes exhausted? Please help me. Thanks a lot.

  • 1 1 Answer
  • 59 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    dttutoria Expert
    2022-07-05T15:05:08+00:00Added an answer on July 5, 2022 at 3:05 pm

    The cause: The reason for the fatal error: allowed memory size of 268435456 bytes exhausted is that the PHP back-end of Plesk exceeds the memory limit. This could occur if the thing being operated on has a complicated structure.

    Solution:

    Solution for Plesk on Linux

    1. By using SSH, connect to the Plesk server.
    2. Open a text editor and the php.ini settings file for Plesk. We are use the vi editor in this example:

                 # vi /usr/local/psa/admin/conf/php.ini

    3. Raise the memory_limit limit to 512

    4. Save the modifications then close file

    5. The Plesk management service to be restarted:

    # service sw-engine restart && service sw-cp-server restart

    6. Retry the unsuccessful procedure you just did. Restart the services and increase the memory_limit limit if it continues to fail with the same problem.

    7. Replace the following line in /etc/cron.daily/50plesk-daily using a text editor to stop the        modifications from being undone during the Plesk update:

    -On CentOS/RHEL-based, use with:

    / usr / local / psa / bin / sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php> / dev / null 2> & 1 && sed -i '/ memory_limit / cmemory_limit = 512M' /usr/local/psa/admin/conf/php.ini

    -On Debian/Ubuntu-based, use with:

    /opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1 && sed -i '/memory_limit/cmemory_limit = 512M' /usr/local/psa/admin/conf/php.ini

    Solution for Plesk on Windows Server

    1. Utilize RDP to establish a connection to the Plesk server.
    2. In a text editor, open the  %plesk_dir%adminconfphp.ini file for Plesk PHP.
    3. Raise the memory limit level to 512.
    4. Close the file after saving the modifications.
    5. Restart the Plesk management service:
      Launch PowerShell and execute each command individually:
      PS import-module WebAdministration
      net stop “Plesk PopPass Service”
      net stop “Plesk Management Service”
      net start “Plesk Management Service”
      net start “Plesk PopPass Service”
      Restart-WebAppPool PleskControlPanel
    6. Retry the unsuccessful operation. Adjust the memory_limit value to a higher number and restart the services if it still fails with the same problem.
    • 1
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.