How to not use sudo in xampp?

Member

by jerad , in category: Third Party Scripts , 5 months ago

How to not use sudo in xampp?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by arnoldo.moen , 5 months ago

@jerad 

To run XAMPP without using sudo, you simply need to change the ownership of the XAMPP folder and its contents to your user account.

  1. Open a terminal window and navigate to the XAMPP directory. By default, XAMPP is installed in /opt/lampp.
  2. Run the following command to change the ownership of the XAMPP directory to your user account:
1
sudo chown -R yourusername:yourusername /opt/lampp


Replace yourusername with your actual username.

  1. Next, you need to change the permissions of the XAMPP files to allow your user account to execute them. Run the following command:
1
sudo chmod -R 755 /opt/lampp


  1. Once you have changed the ownership and permissions of the XAMPP directory, you should be able to start and stop XAMPP without using sudo:
1
2
/opt/lampp/lampp start
/opt/lampp/lampp stop


By following these steps, you can run XAMPP without needing to use sudo every time you start or stop the server.