Error Message when I click on "Go To Application"

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Error Message when I click on "Go To Application"

Postby SMU » 21. November 2022 08:55

When I start up XAMPP, I see the following error message in the terminal.

"Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /home/umair/.Xauthority which is owned by umair.)"

Whats going on? thanks
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby SMU » 21. November 2022 15:14

Will tell a few more things that could be relevant.

I run my Linux Mint using just one account - the administrator account. Could this be the cause of the problem?

when I enter "/opt/lampp/lampp status", I get the following on the terminal:

Version: XAMPP for Linux 8.1.10-0
Apache is running.
cat: /opt/lampp/var/mysql/Dell-Inspiron-5515.pid: Permission denied
rm: remove write-protected regular file '/opt/lampp/var/mysql/Dell-Inspiron-5515.pid'?
MySQL is not running.
ProFTPD is running.

will deeply appreciate any help from you guys. thanks. :)
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby Nobbie » 22. November 2022 11:08

SMU wrote:I run my Linux Mint using just one account - the administrator account. Could this be the cause of the problem?


Yes, that causes this error message.

Do not run a normal user with root priviliges, instead run with normal userid and use "sudo" if you need elevated rights for single commands. I am running Xampp on Linux Mint 21 flawlessly, as i have a normal user account (uid = 1000).
Nobbie
 
Posts: 13177
Joined: 09. March 2008 13:04

Re: Error Message when I click on "Go To Application"

Postby SMU » 22. November 2022 15:15

thanks for the reply, I will create a normal user account and see how it goes.....
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby SMU » 22. November 2022 18:35

nope, its not working, tried it, but the terminal gives the following error message.

"Sorry, user umair123 is not allowed to execute '/opt/lampp/lampp start' as root on Dell-Inspiron-5515."

any ideas?
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby Nobbie » 22. November 2022 21:41

Did you use "sudo"? And what is uid of "umair123"? How did you create that user?

I really wonder how to destroy Xampp on Linux Mint 21. Its a combination of most reliable Linux distributions and simply runs out of the box for many years. Maybe you should install Linux Mint and Xampp from scratch. Without fiddling around in the standard user settings. Just install everything normally.
Nobbie
 
Posts: 13177
Joined: 09. March 2008 13:04

Re: Error Message when I click on "Go To Application"

Postby SMU » 23. November 2022 03:51

umair123 is "normal" user, not administrator.

I entered this:
"sudo /opt/lampp/lampp start"

I then get this prompt:
"[sudo] password for umair123:"

If I enter the password for umair123 then I get
"Sorry, user umair123 is not allowed to execute '/opt/lampp/lampp start' as root on Dell-Inspiron-5515."
Last edited by SMU on 23. November 2022 04:32, edited 1 time in total.
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby SMU » 23. November 2022 04:04

Nobbie wrote:And what is uid of "umair123"?


to check UID, I went into /etc which has the passwd file. perhaps this line is of interest.
umair123:x:1001:1002:SMU,,,:/home/umair123:/bin/bash

How did you create that user?

I went to "System Settings" and then "Users and Groups"
from here I created the new ordinary user account.
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby SMU » 23. November 2022 05:51

I think there is some setting that is preventing the ordinary user from using root privilege.

What do you think?
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby Nobbie » 23. November 2022 10:48

Maybe umair123 is not included in /etc/sudoers, so that he cannot "sudo". But the error message looks so strange, i dont know if one can configure the error message. But anyway, check if umair123 is in /etc/sudoers, if not, insert it.
Nobbie
 
Posts: 13177
Joined: 09. March 2008 13:04

Re: Error Message when I click on "Go To Application"

Postby SMU » 23. November 2022 11:59

I have checked the sudoers file that you pointed to. But I did not find any account name in there. Neither the admin name nor the ordinary user name.

However, I have changed umair123 to sudo user. With this user, I can open /etc as root. When I right click on the root folder and select "open as root", this folder opens with the message "elevated privileges" written on it.

and in the terminal when I type
groups
in front of the user umair123, I can also now see "sudo". So now I think that umair123 has root privilege and can in fact "sudo".

But even after doing this, I am getting the same error message when I open the GUI and click on "go to application":
Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /home/umair123/.Xauthority which is owned by umair123.)

any more ideas?
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby Nobbie » 23. November 2022 14:55

When i enter "Running Firefox as root in a regular user's session is not supported." in Google i get tons of links.

Seems, there is no good solution for firefox. I am running Chrome as default browser and there is no problem with Xampp. But you may find a solution in Google for firefox, i did NOT check all answers. Last not least, i do not use "go to application" and neither the GUI. Simply start a browser and enter http://localhost
Nobbie
 
Posts: 13177
Joined: 09. March 2008 13:04

Re: Error Message when I click on "Go To Application"

Postby SMU » 23. November 2022 19:06

heres some deja vu :mrgreen:

https://community.apachefriends.org/f/viewtopic.php?f=17&t=77921&sid=6c4b56eb396602739f35b01143b22074
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby SMU » 23. November 2022 19:59

deleted firefox. The logic behind this unprecedented act was that with FF out of the way, the annoying error message will go away.

But this time around there is an even more horrifyingly cryptic message.

[5887:5887:1123/233956.104860:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.


If you visit the link in the error message, you will find that it is chrome thats now the problem.
Last edited by SMU on 23. November 2022 20:01, edited 1 time in total.
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Re: Error Message when I click on "Go To Application"

Postby SMU » 23. November 2022 20:08

Nobbie wrote:Last not least, i do not use "go to application" and neither the GUI. Simply start a browser and enter http://localhost


Oh OK, I am new to all of this PHP stuff, so I wouldn't know anything about it.

So I will never need to use this GUI then?
SMU
 
Posts: 22
Joined: 21. November 2022 08:37
XAMPP version: 8.1.10-0
Operating System: Linux Mint 21

Next

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 36 guests