Error In Php file

Posted August 15, 2018 2.2k views

I got this issue please help me…

A PHP Error was encountered Severity: Warning Message: fopen(/var/lib/php/sessions/cisessionbjsk3ii2igj14muuc5t9p4t8k7d0buvh): failed to open stream: No space left on device Filename: drivers/Sessionfiles_driver.php Line Number: 172

A PHP Error was encountered
Severity: Warning

Message: sessionwriteclose(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions)

Filename: Unknown

Line Number: 0


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers


Could you run for us df -h and df -i and paste the output?

Hello, all

You can examine the disk space usage and delete any data which is not crucial to your application or website. What is the output of the following command:

  • df -h

Also, I could suggest following the steps from this answer here on how to find the folders that are using the most disk space:

The other option will be to resize the droplet. You can check this article on how to resize your droplet:

Hope that this helps!