What is the Ubuntu equivalent for WAMP
This article has been tested on the following versions of Ubuntu:
Would you like to test the article for another Ubuntu version? Participation in the wiki is always welcome! For this purpose, the instructions for testing articles must be observed.
This article is intended especially for beginners and briefly describes how to install a simple LAMP server with Apache, MySQL and PHP on Ubuntu. More details on these three components can be found in the respective individual articles.
LAMP stands for L.inux, A.pache, M.ySQL, P.HP and describes a system that provides the web server Apache with PHP and the database server MySQL under Linux.
All required components can be installed from the official package sources  become. Alternatively, you can install the tasksel program and select the desired task there. In addition to Apache, MySQL and PHP, other server components can be installed here.
A password for the database administrator is always requested during the installation. Please choose this password carefully and, above all, keep it safe. And please do not confuse the database administrator with the system administrator account of the same name. They are two completely different users, even if their names are identical.
The following packages are required for the basic installation:
apache2 (Apache 2.4)
Package list to copy:
Or install with apturl, Link: apt: // apache2, libapache2-mod-php, php, php-mysql, mysql-server
For an initial test, use a web browser to call up the Internet address or. A start page will appear that looks something like the screenshot on the right.
If you don't see this page, Apache has probably not started yet. In this case start the web server with the following command :
Upload content to the server¶
The contents for the server are saved in a directory called "document root". Depending on the Apache or Ubuntu version, this is the following folder:
However, root rights are required for saving in this folder. Since this can be impractical, the rights for this directory should not be adjusted, but instead the desired user should be added to the group. How this works is described in the Apache article (section “Rights”).
The file phpinfo.php with any editor  in the "document root" and add the following content:
Then call up the address or in the web browser. All information about the PHP version and settings used is listed. After a successful test, please remove it so that this information is not made available to outsiders.
Now that a LAMP server is basically ready for use, one can deal with practical use such as web development or web applications such as a picture gallery. Anyone who operates a web server that can be accessed from the Internet should definitely deal with the subject of "server security". Suggestions can be found in the links below.
In the case of web applications, the question often arises whether they should be installed via the official package sources. Unfortunately most of them - if they are included in the package sources at all - are assigned to the section, which means that they do not receive any security updates. The advantage of simple installation turns into the decisive disadvantage that later maintenance becomes impossible. What can still be tolerated on a private server that is not connected to the Internet is an absolute taboo on a public web server. In practice, you should therefore prefer a manual installation and check which mechanisms are offered in each case to keep the software in question up to date.
Especially with dedicated servers that are operated without a monitor, keyboard and mouse, it is practical to take a quick look at the current server status without having to resort to the command line. While PhpSysInfo 🇬🇧 and Monit have long been part of the standard inventory, Linux Dash 🇩🇪 offers a modern graphical user interface. If the server park grows and with it the demands, further suggestions can be found in the article network monitoring (section "Links").
This revision was created on May 3, 2021 07:29 by frustschieber.
The following keywords were assigned to the article: web application, PHP, Apache, beginners, Internet, server, network
- America used muskets in WWI
- Can I sell my eBook for 100
- Can I get sparkling white teeth
- What does Matthew 10 34
- How bad at math is Bernie Sanders
- Can I sing well 1
- What are sorethroat remedies
- What is a reliable brand of earphones
- What does the sentence do
- Can one person build a smartphone
- Were there homosexuals before the 70s
- Wish everyone agrees with you
- How do I make my cold worse
- Social media represent people authentically
- How is Android development managed at Google
- Why are old people discriminated against?
- Alienware is a publicly traded company
- What are some good word counting tools
- Offers Comcast business phones
- What is meant by volume by difference
- A walrus is what kind of animal
- What is the best pharmacy in Arcadia
- How distorted is your mind
- How can I root my canvas 4