Friday, May 3, 2024
42
rated 0 times [  42] [ 0]  / answers: 1 / hits: 205150  / 3 Years ago, sat, july 24, 2021, 2:52:22

I'm getting this:




Cannot start session without errors,
please check errors given in your PHP
and/or webserver log file and
configure your PHP installation
properly.




So I'm following this tutorial.



But I have no idea what to put in "username".



This is how it looks when I launch the terminal:



alex@alex-System-Product-Name:~$


My user is "alex", eg:



/home/alex


Any suggestions?


More From » command-line

 Answers
4

The chown command has the following syntax:



chown username:groupname directory


So in your example command it is your primary group name you need to put
To determine your current user name issue the command as below on a terminal



whoami


This will return your current user name. Then issue this command to determine your group memberships



groups username


Assuming that your username is "alex", run:



groups alex


You will get something like:



alex : alex staff adm cdrom lpadmin admin


The first one after the : is your primary group. In this example it is "alex".



The command will be:



sudo chown -R root:alex /var/lib/php/session

[#44588] Saturday, July 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nsuainner

Total Points: 141
Total Questions: 102
Total Answers: 109

Location: Maldives
Member since Sat, Jan 29, 2022
2 Years ago
;