Connect with us

Linux

How to Install Lampp on BackBox Linux

Published

on

How to Install Xampp on BackBox Linux

Install Apache and PHP

$ sudo apt-get update

$ sudo apt-get install apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-common php5-cli


Then activate the mcrypt module so that you can run phpMyAdmin later .

$ sudo php5enmod mcrypt

$ sudo service apache2 restart


Install PHP Modules

$ sudo apt-get install php5-curl php5-gd php5-snmp snmp curl git


Install MySQL Server

$ sudo apt-get install mysql-server

There will be a notice to enter the root password, now you enter the password as you want.


Install phpMyAdmin

$ sudo apt-get install phpmyadmin

Choose Apache2 because in this tutorial we are installing Apache . then on the next notice select “yes” then enter the root password that you created earlier.

$ sudo mousepad /etc/apache2/apache2.conf


Enter the following text at the end of the line:

Include /etc/phpmyadmin/apache.conf

Linux

How to install XAMPP on Linux without complications

Published

on

How to install XAMPP on Linux without complications

Having a full web server locally can be tricky, but there is a package that makes this process easy: XAMPP. To get this feature on your system, see how to install XAMPP on Linux below.

XAMPP is a platform-independent server, which mainly consists of MySQL database, Apache web server, and interpreters for scripting languages: PHP and Perl.

The name XAMPP comes from the abbreviation of X (for any of the different operating systems), Apache, MySQL, PHP, Perl.

It acts as a free web server, is easy to use, and is capable of interpreting dynamic pages. Currently, XAMPP is available for Microsoft Windows, GNU/Linux, Solaris, and macOS X.

Find out which is the best NET promotion for you and receive incredible discounts. Check out!

For more details on how to configure and secure XAMPP, please visit this page.

Installing XAMPP on Linux

To install XAMPP on Linux, do the following:

Step 1. Open a terminal;
Step 2. Check if your system is 32-bit or 64-bit, for that, use the following command in the terminal:

     uname -m

Step 3. If you are using a 32-bit system, use the command below to download the program. If the link is out of date, go to this page and download the latest version and save it as xampp-installer.run:

    wget https://ufpr.dl.sourceforge.net/project/xampp/XAMPP%20Linux/7.4.11/xampp-linux-7.4.11-0-installer.run -O xampp-installer.run

Step 4. If you are using a 64-bit system, use the command below to download the program. If the link is out of date, go to this page and download the latest version and save it as xampp-installer.run:

    wget "https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/7.4.22/xampp-linux-x64-7.4.22-0-installer.run/download" -O xampp-installer.run

or

    wget "https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.0.9/xampp-linux-x64-8.0.9-0-installer.run/download" -O xampp-installer.run

Step 5. Make the file executable with the command below;

    chmod +x xampp-installer.run

Step 6. Start XAMPP installation, with the following command;

    sudo ./xampp-installer.run

Step 7. When it appears, follow the steps of the installation and configuration wizard:

How to install XAMPP on Linux without complications

Step 8. If your current graphical environment supports and is 32 bits, create a launcher for the program, executing the command below;

    echo -e '[Desktop Entry]\n Version=1.0\n Name=xampp\n Exec=gksudo /opt/lampp/manager-linux.run\n Icon=/opt/lampp/icons/world1.png\n Type=Application\n Categories=Application' | sudo tee /usr/share/applications/xampp.desktop

Step 9. If your current graphical environment supports and is 64 bits, create a launcher for the program, executing the command below;

   echo -e '[Desktop Entry]\n Version=1.0\n Name=xampp\n Exec=gksudo /opt/lampp/manager-linux-x64.run\n Icon=/opt/lampp/icons/world1.png\n Type=Application\n Categories=Application' | sudo tee /usr/share/applications/xampp.desktop

Step 10. For the shortcut to work correctly, install GKSU with the command below. If your distribution is not Debian-derived, look for the program in their package manager and install it;

sudo apt-get install gksu

Ready! Now, when you want to start the program, type sudo /opt/lampp/manager-linux.run(32-bit) or sudo /opt/lampp/manager-linux-x64.run(64-bit) or into a terminal, followed by the TAB key.

If your distribution supports it, put the shortcut on your desktop using the system file manager or the command below, and use it to start the program.

    sudo chmod +x /usr/share/applications/xampp.desktop
    cp /usr/share/applications/xampp.desktop  ~/Área\ de\ Trabalho/

If your system is in English, use this command to copy the shortcut to your desktop:

   cp /usr/share/applications/xampp.desktop ~/Desktop

For more details on this task, see this tutorial:
How to add application shortcuts to the Unity desktop
If you like, you can also use the system file manager to run the program, just by opening its folder and clicking on its executable.

Administering, verifying, and uninstalling XAMPP

To Administer, verify, and uninstall XAMPP on Linux, do the following:

Step 1. Open a terminal;
Step 2. If you want to start XAMPP through the terminal, use this command:

    sudo /opt/lampp/lampp start

Step 3. Or simply use the program’s graphical interface to start or stop the web server. To run it, use the shortcuts created, or simply type the command sudo /opt/lampp/manager-linux.runon 32-bit sudo /opt/lampp/manager-linux-x64.runsystems or , on 64-bit systems;

How to install XAMPP on Linux without complications

Step 4. To verify that the webserver is running, enter the following address into a browser:

    http://localhost

Step 5. If the installation worked, this page will appear:

How to install XAMPP on Linux without complications

Ready! You now have a web server on your system. But if you prefer LAMP, take a look at this tutorial:

Install LAMP on Linux and have a web server on your PC

Managing XAMPP via Terminal on Linux
To manage all XAMPP services via the terminal, do the following:

starting

To start all xampp services, use the following command in the terminal.

   sudo /opt/lampp/xampp start

To start Apache only, use:

sudo /opt/lampp/xampp startapache

To start just the Proftpd FTP server, use:

   sudo /opt/lampp/xampp startftp

To start the MySQL database server only:

   sudo /opt/lampp/xampp startmysql

stopping

To stop all xampp services, use the following command in the terminal.

   sudo /opt/lampp/xampp stop

To stop Apache only, use:

   sudo /opt/lampp/xampp stopapache

To stop only the Proftpd FTP server, use:

  sudo /opt/lampp/xampp stopftp

To stop just the MySQL database server:

  sudo /opt/lampp/xampp stopmysql

restarting

To restart all xampp services, use the following command in the terminal.

  sudo /opt/lampp/xampp restart

And for other commands, you can check the xampp help section by running the following.

  sudo /opt/lampp/xampp --help

How to remove XAMPP on Linux

If you need to uninstall XAMPP from your system, do the following:

Step 1. Open a terminal;
Step 2. Uninstall the program by executing the following commands;

sudo /opt/lampp/lampp stop
sudo /opt/lampp/uninstall
sudo rm -rf /opt/lampp

Continue Reading

Linux

Things To Do After Installing Ubuntu 16.04 LTS Xenial Xerus

Published

on

Things To Do After Installing Ubuntu 16.04 LTS Xenial Xerus

Perform System Updates & Upgrades


$ sudo apt update && sudo apt upgrade -y

Install Ubuntu Restricted Extras For Media Codec


$ sudo apt-get install ubuntu-restricted-extras

Add Canonical Partners in Software Repository


go to Software & Updates -> move to the Other Software tab -> check the Canonical Partners option, then enter the password -> Close -> Reload

Install GIMP (for image editing needs)


$ sudo apt install gimp -y

Install Uget (download manager)


$ sudo apt install uget -y

Install BleachBit (application to clean cache, cookies, temporary files, logs, junk, etc.)


$ sudo apt install bleachbit -y

Install Video Player Application (choose one)


$ sudo apt install vlc

$ sudo apt install smplayer

Install GDebi Package Manager


$ sudo apt install gdebi

Fix (afraid there will be a problem when updating and installing the above application)


$ sudo apt-get install -f

Automatically clean junk that your Linux doesn’t need


$ sudo apt clean

$ sudo apt autoremove

Reboot


$ reboot

Continue Reading

Linux

Learn Linux Commands For Beginner to Advanced

Published

on

Learn Linux Commands For Beginner to Advanced

INTRODUCTION

When you want to learn to deepen Linux, you will know the terms Command Line, Text Base, Terminal, or Shell, they are all the same and it will be discussed here in the future, I will call it Terminal or Linux commands.

Here we will learn basic commands that are often used in Linux so you will often use the keyboard and all commands must be typed such as creating folders, copying files, deleting files, and even installing applications using commands that must be typed and then there are still much more can be done using commands in Linux.

WHY NEED TO LEARN LINUX COMMANDS?

If you want to deepen Linux, you must master the Linux command/command line because by using the Linux command/command line, more features can be accessed and more power full because the Linux interface used to use the command line.

Although Linux already has a GUI/graphics, learning Linux Commands/command lines is very necessary if you want to deepen your learning of Linux, this is because GUI applications only provide limited functions and are only intended for laypeople, while administrator users or technicians need full control over Linux machines. , full Linux control can only be accessed via the Linux command/command-line interface either through the shell or terminal emulator.

WHAT IS THE LINUX COMMAND / LINUX COMMAND LINE

Basically, the Linux command is an application, it’s just that this application does not have a graphical display and only has a text-based display. by many people better known as the Linux command or Linux command.

LINUX COMMAND CASE SENSITIVE

when typing Linux commands make sure you use lowercase letters because all basic Linux commands use lowercase letters. The reason is that Linux is case sensitive where uppercase and lowercase letters are considered different, not only in typing commands but in file naming as well. Uppercase and lowercase letters are considered different so be careful when you create filenames.

AUTOCOMPLETE FEATURE ON LINUX TERMINAL

When you type a Linux command in a Linux terminal, you don’t have to write it down completely, you can take advantage of the auto-complete feature to speed up writing Linux commands on a Linux terminal. 2x then Linux will give suggestions/choices of Linux commands that you will use.

Learn Linux Commands For Beginner to Advanced

In the example above, I type apt then I press the TAB key 2x then Linux will suggest a list of Linux commands starting with apt, this auto-complete feature can also be used to remember commands that you forget to remember just by typing the first few characters of the command you made forget to remember.

Sometimes the autocomplete feature doesn’t run/work as it should.

HOW TO START LEARNING LINUX COMMANDS

To enter the terminal you need to open the terminal application in the menu select accessories then click Terminal. So in the future, you will use this method to follow every Linux command guide here.

Learn Linux Commands For Beginner to Advanced

Tips:

  • When I write an example Linux command will always start with a hash sign # and dollar $, what does that mean?
  • The hash sign # on the Linux terminal indicates that you are using the root user while the dollar signs $ indicates that the user you are currently using is a normal user/not a root user.
  • When I write a command in the tutorial the hash mark # means the command must be run using the root user, if you want to run from a normal user ( $ ) then add sudo. For example, the command $ sudo apt-get update is the
  • same as # apt-get update
  • while the dollar sign $ it means that the command is executed by the normal user (not root), for example, $ ls -la

sudo means that you want to run the command from the normal user but use root privileges

BASIC LINUX COMMANDS (LINUX COMMAND ESSENTIAL)

Linux basic commands or Linux command essential is a console-based Linux application that is included by all Linux distributions as a standard console application that functions as a tool for navigating and managing the system.

So without installing this console application, there must be in every distribution, so you are obliged to memorize these basic Linux commands as the basic capital to be able to operate Linux through the terminal or shell.

ADVANCED AND INTERMEDIATE LINUX COMMANDS

Although in this chapter we still use basic Linux commands, the use of these commands requires a deep understanding of the concept of making user permissions settings and files very strict.

Why is Linux resistant to malware/virus attacks? – The answer is because Linux applies an extra strict system of setting file access rights to users so that important system files can only be accessed and modified by the root user. So please pay attention when applying for user permissions and file attributes to Linux that you manage, because giving permissions to important files unwisely will weaken your Linux defenses.

LINUX COMMAND NETWORK SETTINGS/NETWORK

Although there is already a GUI tool available for managing networks (setting up wifi and lan) but it doesn’t hurt you to learn to manage a Linux network using a Linux terminal/command. This chapter will be very useful when you are troubleshooting/repairing or setting up a server that is accessed without a GUI.

Continue Reading
Advertisement

Latest

How to recover Facebook account tools to do it in minutes How to recover Facebook account tools to do it in minutes
Social Media12 hours ago

How to recover Facebook account: tools to do it in minutes

SHARE It is very common for users to lose their Facebook or other social media accounts. The reasons can be...

how to generate your own QR code for free and online how to generate your own QR code for free and online
How-To14 hours ago

Step by step: How to generate your own QR code for free and online

SHARE There is no denying the popularity and convenience of using QR codes. Therefore, it does not hurt to learn...

How to create a PayPal account what is this platform and what is it forHow to create a PayPal account what is this platform and what is it for How to create a PayPal account what is this platform and what is it forHow to create a PayPal account what is this platform and what is it for
How-To16 hours ago

How to create a PayPal account: what is this platform and what is it for

SHARE Technology has made many aspects of life easier, especially those that have to do with payments, purchases and money...

How to clean a transparent cover How to clean a transparent cover
Useful-Info2 days ago

How to clean a transparent cover

SHARE If you have had a transparent cover on your mobile, you will know that as days go by, it...

What does XD mean in WhatsApp What does XD mean in WhatsApp
Internet2 days ago

What does XD mean in WhatsApp

SHARE WhatsApp is one of the most downloaded applications worldwide. This fast messaging service allows you to send and receive...

How to protect a pdf file How to protect a pdf file
How-To3 days ago

How to protect a pdf file

SHARE Many times we create pdf files that we don’t want anyone to be able to edit, copy, or even...

How to convert a Word document to PDF How to convert a Word document to PDF
How-To3 days ago

How to convert a Word document to PDF

SHARE Microsoft Word is a powerful word processing program that offers many possibilities features. Its only drawback is that by...

How to create a PDF document How to create a PDF document
How-To3 days ago

How to create a PDF document

SHARE A PDF file is a portable document, that is, it is illustrated in 2D and can be opened from...

How to convert an ePub to PDF How to convert an ePub to PDF
How-To3 days ago

How to convert an ePub to PDF

SHARE The different computer programs that exist to make working documents adapt to all needs. Spreadsheets, text and image editors,...

How to Access Google Drive Files Without Internet, Really Easy How to Access Google Drive Files Without Internet, Really Easy
How-To4 days ago

How to Access Google Drive Files Without Internet, Really Easy

SHARE Google has just launched a new feature that can help users when offline or not connected to the internet....

Advertisement

Categories

Trending

Copy link
Powered by Social Snap