Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I logged in into our cpanel to view phpMyAdmin but I can't open it. It give me this error message:

Warning: session_write_close() [function.session-write-close]: write failed: No space left on device (28) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42

Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/cpanel/userhomes/cpanelphpmyadmin/sessions) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php:42) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 99

I contacted the support to assist me with. They just told me that the server is unmanaged. They told me to delete the free the partition but I don't know how to do it. I'm noob on that matter. The /var/log/btmp is over 8GB as they said. I want to delete that file.

How would I do this?

I need to free the space of the partition. I need some steps on how to do it and also steps on how to delete the /var/log/btmp.

I have been googling around but I haven't found anything.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

to delete the btmp file in ssh, use:

rm -f /var/log/btmp

If you dont have ssh access, there should be a filemanage in the CPanel that you can use to remove the file.

This will of course free up the 8GB on that partition that this file is currently using.

Other than going through the entire partition and deleting stuff you no longer need (using rm command in ssh or filemanager in cpanel), I would suggest asking your provider for a hardware/quota upgrade to give you more space.

The errors you are recieving in Cpanel when trying to access PHPMyAdmin should disappear when the system has enough space to do what it needs to do :)

share|improve this answer
I am in cpanel right now, i went into filemanager but i dont see that var/log/btmp. –  user1149244 Mar 21 '12 at 15:31
I login through SSH but i can't delete the file. Permission denied. –  user1149244 Mar 21 '12 at 15:44
try "sudo rm -f /var/log/btmp" without "s. If you still cant delete it, get back in touch with your provider and tell them to do something about it :) –  LloydOliver Mar 21 '12 at 15:48
I was able to did it now, i just logged in as root and it allows me too. Provider is talking about, the partition need to be managed. What are they trying to rely? I dont really understand it. –  user1149244 Mar 21 '12 at 17:21
You either need full access over your system and need to learn how to manage your system yourself, or the provider can manage it for you (but likely charge you extra for it). I would suggest you get them to manage it for you for now if you can afford to, until you are more comfortable with doing these things yourself. Good luck! –  LloydOliver Mar 21 '12 at 18:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.