Question

PhpMyAdmin not Working

I have set up phpmyadmin for my droplet. It was working fine last night, but as of today I keep getting an error.

I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04

Image and code of the error:

Warning in ./libraries/session.inc.php#105
 session_start(): open(/var/lib/php/sessions/sess_d4ird29f4per3ljp2li7prhniljibmk4, O_RDWR) failed: Permission denied (13)

Backtrace

./libraries/session.inc.php#105: session_start()
./libraries/common.inc.php#357: require(./libraries/session.inc.php)
./index.php#12: require_once(./libraries/common.inc.php)

I am accessing it via http://000.000.0.000/phpmyadmin/

I have tried clearing my cookies and that is not fixing it either.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Ryan Quinn
DigitalOcean Employee
DigitalOcean Employee badge
September 12, 2016
Accepted Answer

I would check that your phpmyadmin installation has the proper permissions (should be owned by www-data if it’s not). It sounds like the server-side files written for the php session cannot be properly written. I’ve encountered something similar before and before digging deeper I would recommend doing a reboot of your droplet. Temporary files in /tmp are cleared out on reboot and this would likely be the cleanest way to resolve this problem. I would then review file permissions and check your log files for any other potential errors that could point to an underlying cause.

I guess need restart PHP-FMP.

service php-fpm restart

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.