Phpmyadmin set up

So previously I was using a webhost that set up phpmyadmin for me and I loved the gui rather than going through a terminal so after switching to a server rather than a webhost I tried to do it myself I have run into many errors since the start of the install I recently created a account pma and a db phpmyadmin this seemed to fix many issues though now I am getting the following error

Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)

session_start(): Failed to read session data: files (path: /var/lib/php/sessions)

this is preventing me from logging in entirely note this is over http as well though I have tried the https has not worked the entire time currently it gives a 404 saying the files not on the server but when i remove the s from the link making it http it pops up with the error thanks for any help I am totally lost

2 Replies

Linode Staff

It does look like this is pretty directly a permissions error. What I would recommend is double checking what user php is running under. This is typically Apache, Nginx, or Nobody. However it will depend on the configuration of your php. Once you know the user of the user of php you can run:

chown -R $user:$group /var/lib/php/session

Where $user is the user of php and $group is the group of the same. You can then restart php and it should be all ironed out.

@tbaka I actually just figured it out I think all I had to do was give full permissions to the sessions folder anyways on to the next issue sadly again I was using a webhost before and when I started to use php mail function it had always worked before in my php functions I have it set to send most emails back to the client if it fails it sends the client a fail message and I had noticed I am now getting them all I have found so far is email server tutorials and while i may support our own emails in the future at this point its mainly for account verification so id like to just simply send the person an email with php send mail is there maybe some simple step i am missing? opening a certain port? (sorry I am very new to running a server)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct