Score:-1

Apache not starting on Ubuntu 21.10

fr flag

I am unable to run Apache Web server

I use XAMPP for this. I am a beginner on Linux so please help me.

Abinandhan K avatar
fr flag
I runned the command sudo /opt/lampp/lampp start in the terminal.
Score:0
cn flag

You may have already installed Apache from Ubuntu repositories (and MySQL as well). Check it with following command:

sudo lsof -i -P -n | grep LISTEN | grep :80

Or you may have another web server already running on port 80 (that command will show you).

Why do you want to use XAMPP instead of Apache / MySql etc. from Ubuntu repositories?

EDIT> So the problem is, that you are trying to run two Apache instances on one port. You should use Apache installed in system or uninstall it and use that one from XAMPP. And this is true also for MySQL/MariaDB.

Abinandhan K avatar
fr flag
Apache is already installed. When I type localhost in my browser it goes to the apache ubuntu default page. I use XAMPP because it was instruction from the school. BTW I am a 12th grade student. :D
cn flag
So you probably have already installed everything necessary. You don't need XAMPP at all. But if you need to use it for some reason (to follow instructions, for example), you should uninstall Apache and MySQL (probably MariaDB) from system.
cn flag
BTW, instructions from school supposed that you are using Linux or it was rather for Windows users? In Windows the use of XAMPP definitely makes sense, because there is no Apache or MySQL in some repository. This is not true for any typical Linux distribution however, you have everything necessary in repositories.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.