0

I followed How to install XAMPP 1-8-3 for Linux in Ubuntu Desktop

I already installed lampp under /opt.

I am using the command sudo /opt/lampp/lampp start, I have seen XAMPP four of them the first one is starting Apache fail, second and third is already running, and last one is starting MySQl

When I try to open xampp-linux-x64-1.8.3-4-installer.run on my desktop, I get this error:

there has been an error this installer requires root privileges. please become superuser before executing the installer. 
  • 2
    Have you tried executing sudo ~/Desktop/xampp-linux-x64-1.8.3-4-installer.run? This will execute the file as the root user (superuser/su). – Louis Matthijssen Apr 22 '14 at 21:19
  • i got error by the message after i downloaded that you gave me the instruction. the error was said " google chrome can not be run as root" please start google chrome as a ormal user. to run as toot, you must specify an alternate - user data- dir for storage of profile information . – Ironheartbj18 Apr 22 '14 at 21:47
  • You shouldn't run Google Chrome as root, but the installer you've downloaded. – Louis Matthijssen Apr 22 '14 at 21:51
  • in to my computer i checked into my directory files and open to opt there is two folders which are google, and lampp. – Ironheartbj18 Apr 22 '14 at 21:51
  • google chrome wont let me to remove the files or move into other folder. – Ironheartbj18 Apr 22 '14 at 21:51
7

run xampp-linux-x64-1.8.3-4-installer.run as root user using sudo

cd ~/Desktop
sudo ./xampp-linux-x64-1.8.3-4-installer.run

Enter your password and hit Enter. You should see the installer.

1

For gaining the access of super user please ruse this command before running installer

sudo -s -H

it will make you super user.

From sudo man page:

-H, --set-home   set HOME variable to target user's home dir
-s, --shell      run shell as the target user; a command may also be specified

Then run ./filename.run on the folder XAMPP was downloaded.

0

I think xampp changed in ubuntu, ubuntu no longer support xampp in their repo, you will have to download xampp from source and install

# wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/1.8.3/xampp-linux-1.8.3-4-installer.run
# chmod 755 xampp-linux*
# ./xampp-linux*
0

i have same problem with installation of xampp. just type this command in terminal then install xampp in nautilus simple!

sudo -H nautilus 

right that!

0

First you have to download xampp (use the link given below)
https://www.apachefriends.org/index.html

After completed the download go to your Download folder in your computer (Ubuntu & Linux)

In your Download Folder you can see (xampp-linux-x64-7.3.5-1-installer.run) File.

.run format is you can run it directly pressing enter key (then it will ask for root privilege for execute the file)

Then Copy (xampp-linux-x64-7.3.5-1-installer.run) file

Go to Desktop

Right Click Your Mouse and click Open as Root

Then go to file system and paste it in your usr folder (or anywhere you want)

Double Click (xampp-linux-x64-7.3.5-1-installer.run) File (Delete the file after installing)

Enjoy!!!!!

0

Cut and paste your xampp-linux-x64-7.3.6-2-installer.run to your /home/<username>/ (your username must be entered as the name you use for log in to Ubuntu without < >).

You can rename your xampp-linux-x64-7.3.6-2-installer.run to a simple installer.run.

Then open a terminal using Ctrl+Alt+Tand enter the following command:

sudo ~/installer.run

It will find the installer on your username's parent directory and this executes the installation with no more annoying advertisements.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.