Q&A for How to Install XAMPP on Linux

Return to Full Article

Search
Add New Question
  • Question
    After I install XAMPP on Linux OS, where should I put all PHP script files to execute them?
    Community Answer
    By default you should put it on /opt/lampp/htdocs/. You can create a folder inside it and execute php files via localhost/{folder_name}/{file_name}
  • Question
    What do I do if I installed XAMPP but I can't access phpmyadmin?
    HaXng Buddha
    Community Answer
    Make sure Apache is running first in the dashboard, then you should be able to access phpmyadmin.
  • Question
    After I install this according to the given instructions, how can I access it from another computer in my local area network?
    Community Answer
    You can access it by changing the "localhost" part of "localhost/foldername/" to your computer IP (ex: 192.xxx.x.xxx/foldername) at your local network.
  • Question
    How do I install XAMPP on Linux if I get a syntax error message and the installer quits?
    Community Answer
    You may be installing the wrong version. The latest XAMPP installations are for x64 computers. Your computer may actually be x32. If you go to the Sourceforge website XAMPP page, you can look for a version that does not have x64 in the title and download that version. That is what I had to do after I got that syntax error message; I downloaded the the latest x32 version and it worked.
  • Question
    What should I do if I receive a "syntax error: unterminated quoted string" when installing XAMPP on Linux?
    Peperment
    Community Answer
    If you encounter a "syntax error: unterminated quoted string" while installing XAMPP on Linux, it usually indicates a problem in the command you are trying to run. Make sure you are using the correct command and that there are no missing or mismatched quotes in the command. Double-check your syntax and try again.
  • Question
    What should I do if I receive the error message "unknown error couldn't connect to display" while installing XAMPP on Linux?
    Peperment
    Community Answer
    If you encounter the error message "unknown error couldn't connect to display" when installing XAMPP on Linux, try running the XAMPP installation with the following command: `sudo /opt/lampp/manager-linux-x64.run`. This command should launch the XAMPP installation and overcome the "couldn't connect to display" issue when using sudo.
  • Question
    I installed XAMPP on Linux, and localhost works perfectly. However, during import, it says there's an error because the default input MBs are too low. How can I increase it?
    Harit aznadi
    Community Answer
    Navigate to /opt/lampp/etc/, then back up your php.ini file with `sudo cp php.ini php.ini.bak`. Edit the file using `sudo nano php.ini`, change `upload_max_filesize` and `post_max_size` to 100M, and restart XAMPP with `sudo /opt/lampp/lampp restart`.
  • Question
    Why am I not asked for a password after entering the chmod +x command?
    Peperment
    Community Answer
    If you're not prompted for a password after running chmod +x, it means the command was executed successfully without errors. Linux typically doesn't display a message when chmod is successful, so you can proceed with running the executable file without any issues.
  • Question
    I'm using Debian-Mint, and every time I restart my computer, XAMPP is gone and I need to start over. How can I fix this?
    Random Letters
    Community Answer
    This is normal Linux behavior. It's the administrator's responsibility to ensure the web server starts automatically. Run these commands: `sudo ln -s /opt/lampp/lampp /etc/init.d/lampp` and `sudo update-rc.d lampp start 80 2 3 4 5 . stop 30 0 1 6 .`
  • Question
    How can I gain access to create a folder in the htdocs directory if I'm denied permission?
    Peperment
    Community Answer
    To gain access, open a terminal and use the sudo command to create a folder with administrative privileges: `sudo mkdir /opt/lampp/htdocs/your_folder_name`. Replace "your_folder_name" with your desired folder name, and you may be prompted to enter your password. This will create the folder in the htdocs directory with the necessary permissions.
  • Question
    How do I create a shortcut for XAMPP on Linux?
    Peperment
    Community Answer
    To create a desktop shortcut for XAMPP on Linux, right-click on your desktop or in the file manager window and select "Create Launcher" or "Create Desktop Shortcut." Enter the full path to the XAMPP control panel executable in the "Type" or "Command" field (e.g., /opt/lampp/manager-linux-x64.run). Provide a name for the shortcut, then click "OK" or "Create."
  • Question
    I installed XAMPP on Linux, but MySQL won't start. What should I do?
    Peperment
    Community Answer
    If MySQL in XAMPP on Linux fails to start, check for errors in the MySQL log file located at /opt/lampp/var/mysql/your-computer-name.err (replace "your-computer-name" with your actual computer name). Resolve any issues mentioned in the log, such as port conflicts or configuration problems. Restart XAMPP with sudo /opt/lampp/lampp restart, and attempt to start MySQL again using the XAMPP control panel. If the issue persists, consider consulting XAMPP community forums or documentation for specific troubleshooting steps related to your version and configuration.
  • Question
    Why did the Apache Web Server stop even though I followed all the instructions?
    Kuldeep Gaur
    Community Answer
    There could be several reasons, such as a conflict with another program or a configuration issue. Check the error logs for clues, and try restarting the server. If the issue persists, consider seeking help from a technical expert or the Apache Web Server community.
  • Question
    How can I resolve the "sudo: ./manager-linux-x64.run: command not found" error on Ubuntu 22.04?
    Peperment
    Community Answer
    The error message indicates the file "manager-linux-x64.run" can't be found or executed. Ensure you are in the correct directory or use the full path with sudo, like "sudo /path/to/manager-linux-x64.run," replacing "/path/to" with the actual file location.
  • Question
    Where should I put my PHP script files to execute them after installing XAMPP on Linux?
    Mian Hassan
    Community Answer
    After installing XAMPP on Linux, you should place your PHP script files in the "htdocs" directory, usually located at "/opt/lampp/htdocs" if installed in the default location. You can access these PHP files through a web browser using the URL.
  • Question
    Do I need to install Composer after installing XAMPP?
    Peperment
    Community Answer
    Whether you need to install Composer after installing XAMPP depends on what you intend to do with your XAMPP installation. XAMPP is a software package that includes Apache, MySQL, PHP, and other components to create a local web development environment. Composer is a dependency management tool for PHP used to manage libraries and packages.
  • Question
    How do you solve "insufficient disk space" when installing XAMPP?
    Arrogance
    Top Answerer
    You will need to make the partition that XAMPP is being installed to larger, install to a different drive/partition (on Windows), delete unnecessary files and try again, or buy a larger disk drive for your computer and clone your operating system to it.
  • Question
    I go to directory opt/lamp/ and then I type command sudo ./manager-lampp-x64.run and an error appears and says "Unknown error in application".
    Christian Elliott
    Community Answer
    That is happening because that is not the right line of code to use. Here is the right code: ./manager-lampp-x64.run.
  • Question
    What do I do if i try to run xampp through terminal but it says permission denied?
    Community Answer
    You forgot to run XAMPP server with sudo. Sudo temporarily runs commands as root, and you ran XAMPP as a normal user that does not have access.
  • Question
    I am running Fedora 29 on my x64 machine. How do I install XAMPP?
    Community Answer
    Fedora is a Linux distro; therefore, you can easily follow the same steps as above and successfully install XAMPP.
Ask a Question

      Return to Full Article