Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Unable to open the domain’s logs in Plesk: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8192 bytes)

 
domainsphpplesk for linuxplesk service interfaceserver

Symptoms

  • Unable to open Domains > example.com > Logs where nothing happens after the clic or an error is received:

    500 error

  • The following is found on the /var/log/plesk/panel.log log file:

    PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8192 bytes) in /usr/local/psa/admin/plib/LogBrowser/Reader/PhpFopen.php on line 105

  • The compressed error logs of example.com are large in size:

    # ls -lah /var/www/vhosts/system/example.com/logs/
    total 31M
    drwx------ 2 psaadm root 4,0K dic 24 03:59 .
    drwx--x--x 6 root psaserv 4,0K jun 27 16:14 ..
    -rw-r--r-- 3 root root 2,1K dic 24 09:22 access_log
    -rw-r--r-- 3 root root 3,4M dic 24 03:59 access_log.processed
    -rw-r--r-- 3 root root 0 dic 23 05:29 access_ssl_log
    -rw-r--r-- 3 root root 51K dic 24 03:59 access_ssl_log.processed
    -rw-r--r-- 3 root root 9,8K dic 19 12:19 error_log
    -rw-r--r-- 3 root root 27M nov 16 17:51 error_log.1.gz

  • The compressed logs have a huge amount of lines:

    # zcat /var/www/vhosts/system/example.com/logs/error_log.1.gz | wc -l
    20022263

Cause

Due to insufficient PHP memory limit Plesk Log manager fails to process big-sized rotated log files.

Resolution

  1. Connect to the server via SSH.

  2. Increase the memory_limit value in /usr/local/psa/admin/conf/php.ini using a text editor.

    # grep 'memory_limit' /usr/local/psa/admin/conf/php.ini
    memory_limit = 512M

  3. Restart Plesk service:

    # service sw-cp-server restart

As preventive measure move the old domain logs and enable log rotation by size

  1. Connect to the server via SSH.

  2. Move old and compressed log files from logs directory with following 3 commands:

    # mkdir -p /root/oldlogs/example.com
    # find /var/www/vhosts/system/example.com/ -name '*.gz' -exec mv {} /root/oldlogs/example.com/ ;
    # find /var/www/vhosts/system/example.com/ -name '*.processed' -exec mv {} /root/oldlogs/example.com/ ;

  3. Set the log rotation as instructed on this article, e.g. by size of 5000kb.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Ruby on Rails vs PHP: Which one’s right for your needs?

Read More »

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »

Unveiling Sitejet Builder: The Perfect Match for Your Effortless Website Creation Needs

Read More »
Knowledge Base

“View the phpinfo() page” button in Plesk does not work: Error: Unable to retrieve information about the PHP configuration

Read More »

Unable to open a table in phpMyAdmin or restore a snapshot in Web Presence Builder for Plesk: Allowed memory size of X bytes exhausted

Read More »

Different operations on Plesk for Linux server fail: /usr/sbin/usermod execution failed: usermod: user is currently used by process

Read More »

Plesk home page shows error: php_admin_value takes two arguments, PHP Value Modifier

Read More »

Hosting Wiki

  • Server Redundancy
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • Domain
  • Plesk
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family