LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2021, 12:58 AM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
No local host after installing apache


I checked for localhost on my browser but it appears apache2 did not take effect there. I know its installed because I got this in terminal searching for it:

apache2-bin/xenial-updates,xenial-security,now 2.4.18-2ubuntu3.17 amd64 [installed]

I tried this but still didn't see locahost in browser:
sudo /etc/init.d/apache2 start
 
Old 03-26-2021, 05:08 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Can you be a bit more specific? What do you mean by "checked for localhost" and "see localhost in browser"? Which commands did you issue and what was their output; which actions did you take, and what was the result?

Also, which command did you use to search, and what is the exact output of that command?
 
Old 03-26-2021, 07:39 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What does your /etc/hosts file say?
 
Old 03-26-2021, 08:37 PM   #4
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
I now have Apache is installed "it works" page

Quote:
Originally Posted by berndbausch View Post
What do you mean by "checked for localhost" and "see localhost in browser"?
I was referring to default page "It works !" that you are meant to see when Apache is installed properly.

Since your post I think I managed to get it installed. I was expecting it to be in black and white but I see it in color, this must be the updated version of "It works !" with ubuntu logo on left hand side.

Quote:
Originally Posted by berndbausch View Post
Which commands did you issue and what was their output; which actions did you take, and what was the result?

Also, which command did you use to search, and what is the exact output of that command?
I issued:
sudo apt update
sudo apt install apache2

Commands used to search and output
apache2 -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2020-08-12T21:35:50

Should I do anything else to check if I've installed it properly?
 
Old 03-26-2021, 08:46 PM   #5
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
results from /etc/hosts

Quote:
Originally Posted by frankbell View Post
What does your /etc/hosts file say?
27.0.0.1 localhost
127.0.1.1 linuxman

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
 
Old 03-26-2021, 09:01 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I don't know whether this is relevant or not, but localhost is usually 127.0.0.1.

For testing purposes, can you open CUPS? http://localhost:631
 
1 members found this post helpful.
Old 03-26-2021, 10:36 PM   #7
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
CUPS opened up fine in browser

Quote:
Originally Posted by frankbell View Post
I don't know whether this is relevant or not, but localhost is usually 127.0.0.1.
I checked in terminal again and it is 127.0.0.1 localhost. Misprint earlier

Quote:
Originally Posted by frankbell View Post
can you open CUPS? http://localhost:631
Yes I can

Last edited by linux-man; 03-26-2021 at 11:34 PM.
 
Old 03-26-2021, 11:42 PM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Well, if you reach the default page, Apache is installed, running and responding.
 
1 members found this post helpful.
Old 03-27-2021, 08:24 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Quote:
Misprint earlier
Been there. Done that.

Thanks.
 
Old 03-27-2021, 08:49 PM   #10
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
So you can see the "it works" page. That means apache is installed and working. What else do you need help with?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the best ways and practices to manage local SSL certificates with my own CA, to get local HTTPS sites like https://testsite.local ? ZhaoLin1457 Slackware 11 02-04-2021 04:15 PM
[SOLVED] sendmail delivers to local host instead of target host mfoley Linux - Server 6 04-23-2020 11:52 PM
[SOLVED] How to copy file from remote host to local host then delete from remote host legendmac Linux - Newbie 13 05-27-2015 03:47 PM
Forward local mail to another local host using sendmail loopy69 Linux - Server 5 02-26-2008 05:38 PM
Can't get local host after installing Apache jedson Linux - Software 6 10-24-2004 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration