The Apache HTTP web server has evolved through the years to work in different environments and solve different needs. One important problem Apache HTTP has to solve, like any web server, is how to handle different processes to serve an http protocol request. This involves opening a socket, processing the request, keeping the connection open for a certain period, handling new events occurring through that connection, and returning the content produced by a program made in a particular language (such as PHP, Perl, or Python). These tasks are performed and controlled by a Multi-Processing Module (MPM)
Add PHP Repository
Install PHP 8.0 on Ubuntu 20.04 / Ubuntu 18.04
Install PHP 7.x on Ubuntu 20.04 / Ubuntu 18.04
Verify PHP Version
PHP Support for Web Server
Both Apache and Nginx do not support PHP language by default when the browser requests the PHP page. So, we need to install the PHP module package to support PHP.
#ubuntu #php 8.0 #ubuntu 20.04 #ubuntu 18.04
How to secure PHPMyAdmin login access in ubuntu apache on aws. Here, we will show you a simple 2 solution to secure PHPMyAdmin login in ubuntu apache on aws web server.
The first solution is to change the PHPMyAdmin login URL. And the second solution is add an extra security layer for access PHPMyAdmin login url in ubuntu 18.04 apache 2 on aws. And prevent the attacks.
Because by default, phpmyadmin login url is located on http:///phpmyadmin. So, The main reason of change phpmyadmin login url in ubuntu apache aws server to prevent attackers attack.
Now, you can see the following two solutions to secure PHPMyAdmin login access in ubuntu apache 2 on aws server.
In ubuntu, default phpmyadmin login url can be located at apache configuration that name apache.conf.
So, you can use sudo nano /etc/phpmyadmin/apache.conf command to open apache.conf file:
sudo nano /etc/phpmyadmin/apache.conf
Then, you can add the following line with your phpmyadmin url:
Alias /my-phpmyadmin /usr/share/phpmyadmin
Note that, you can replace my-phpmyadmin to your own word.
Now you need to restart apache 2 web server. So type the following command on your ssh terminal to restart apache service:
sudo service apache2 restart
Now, you can add extra security layer for access phpmyadmin login in ubuntu apache 2 on aws web server.
So, first of all, you need to create a password file with users using the
htpasswd tool that comes with the Apache package. So open your ssh terminal and type the following command:
sudo htpasswd -c /etc/phpmyadmin/.htpasswd
Note that, You can choose any username instance of myAdmin with above command.
After that, one prompt box appear with password and confirm password. So, you can add password and confirm password here.
New password: Re-type new password: Adding password for user myAdmin
Now, you need to configure Apache 2 to password protect the phpMyAdmin directory and use the .htpasswd file.
So, open your ssh terminal and type the below command to open the phpmyadmin.conf file.
sudo nano /etc/apache2/conf-available/phpmyadmin.conf
Then add the following lines in phpmyadmin.conf file and save it:
Options +FollowSymLinks +Multiviews +Indexes ## edit this line DirectoryIndex index.php AllowOverride None AuthType basic AuthName "Authentication Required" AuthUserFile /etc/phpmyadmin/.htpasswd Require valid-user
Finally, restart apache web server by using the following command:
sudo service apache2 restart
#aws #mysql #ubuntu #how to change and secure default phpmyadmin login url ubuntu #how to change phpmyadmin login url ubuntu 18.04 #how to secure phpmyadmin access #how to secure phpmyadmin access with apache on ubuntu 18.04
This brief tutorial shows students and new users how to quickly and easily install Apache Maven on Ubuntu 20.04 | 18.04.
Apache Maven comes with the default Ubuntu repositories… so all it takes is to run the apt install maven commands to get it… However, when you install Apache Maven from Ubuntu repositories, you’re not getting the latest version of Maven.
If you want to install the latest, you will have to manually download and install the latest package from its download page… and this brief tutorial is going to show students and new users how to do that on Ubuntu 16.04 | 18.04 and 18.10 systems.
Apache Maven is a software project management and comprehension tool… Based on the concept of a project object model (POM), Maven can help you manage an entire project’s build process, including storing documents, reporting and more…
For more about Apache Maven, please check its homepage.
There are two options (maybe more) available to getting Apache Maven on Ubuntu.
One is installing from Ubuntu default repositories using the apt install maven commands, and/or downloading the package the archive package from its website.
Below are the two options of installing Apache Maven
#applications #labs #linux ubuntu #apache maven #ubuntu 18.04 #ubuntu 20.04 focal fossa
This brief tutorial shows students and new users how to install Apache Ant on Ubuntu 20.04 | 18.04.
Apache Ant is a Java library and tool that has number of built-in tasks allowing to compile, assemble, test and run Java applications. If you’re going to be developing Java apps, you may need Apache Ant to help automate the process.
For student or new user looking for a Linux system to learn on, the easiest place to start is Ubuntu Linux OS. It’s a great Linux operating system for beginners.
Ubuntu is an open source Linux operating systems that runs on desktops, laptops, server and other device.
While learning Ubuntu, you will find that Linux isn’t so different than Windows and other operating systems in so many ways, especially when it comes to using the system to get work done.
To get started with installing Apache Ant on Ubuntu, please follow the steps below:
Apache Ant is a Java based app so you’ll need Java installed. First, download the Java 8 Development Kit: either the official Oracle JDK or Open JDK
For this tutorial, we’re going to be install OpenJDK.
To do that, run the commands below:
sudo apt update sudo apt-get install openjdk-8-jdk openjdk-8-doc openjdk-8-jre-lib
After installing Java, you can verify it by running the commands below:
It should output something similar as shown below:
Output: openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08) OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
After, continue below to install Apache Ant.
Apache Ant comes via Ubuntu default repositories. However, the version with comes with Ubuntu repositories might not be the latest version. If you wish to install the latest, you may have to install it manually or via third party repositories.
To install Apache Ant using apt-get, simply execute the following commands:
sudo apt update sudo apt install ant
To verify if Ant is installed, use the commands below:
It should output similar line as below:
Output: Apache Ant(TM) version 1.10.5 compiled on March 28 2019
That’s how to install Apache Ant via Apt-get
You can also install Apache Ant via SDKMAN tool.
SDKMAN is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. You’ll need to install SDKMan too.
Installing SDKMAN! on UNIX-like platforms is as easy as ever.
Run the commands below to download and install.
sudo apt install curl curl -s "https://get.sdkman.io" | sudo bash
After installing, you should see an output as similar to the one below:
All done! Please open a new terminal, or run the following in the existing one: source "/home/richard/.sdkman/bin/sdkman-init.sh" Then issue the following command: sdk help Enjoy!!!
Next, activate it
Lastly, run the following code snippet to ensure that installation succeeded:
If all went well, the version should be displayed. Something like:
==== BROADCAST ================================================================= * 2020-03-18: Gradle 6.3-rc-3 released on SDKMAN! #gradle * 2020-03-17: Gradle 6.3-rc-2 released on SDKMAN! #gradle * 2020-03-16: Leiningen 2.9.3 released on SDKMAN! #leiningen ================================================================================ SDKMAN 5.7.4+362
After installing SDKMAN, simply run the commands below to install Apache Ant.
sudo bash sdk install ant
After installing, it should output similar message as below:
Installing: ant 1.10.1 Done installing! Setting ant 1.10.1 as default.
When finishes, you can verify whether Ant is installed successfully or not by checking its version:
#labs #linux ubuntu #apache ant #ubuntu 18.04 #ubuntu 20.04 focal fossa #linux
This brief tutorial shows students and new users how to install Apache ActiveMQ on Ubuntu 20.04 | 18.04 server.
For those who don’t know, Apache ActiveMQ is a free, multi-protocol, Java-based message broker software written in Java. It supports industry standard protocols that allows communication between separate applications.
ActiveMQ is available in the classic and the “next generation” Artemis broker. Once Artemis reaches a sufficient level of feature parity with the 5.x code-base it will become ActiveMQ 6.
#applications #labs #linux ubuntu #apache activemq #ubuntu 18.04 #ubuntu 20.04 focal fossa