How can I start apache2 server on my kali linode?
My kali is successfully installed on linode and I already connected with vncviewer but the problem is I am not able to start apache2 server I tried with multiple ways but it does not work. when I see the apache2 status it says:
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; disabled; preset: d>
Active: active (running) since Sun 2022-08-28 10:29:09 UTC; 11s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 166165 ExecStart=/usr/sbin/apachectl start (code=exited, status=>
Main PID: 166169 (apache2)
Tasks: 6 (limit: 4669)
Memory: 12.6M
CPU: 41ms
CGroup: /system.slice/apache2.service
├─166169 /usr/sbin/apache2 -k start
├─166173 /usr/sbin/apache2 -k start
├─166174 /usr/sbin/apache2 -k start
├─166175 /usr/sbin/apache2 -k start
├─166176 /usr/sbin/apache2 -k start
└─166177 /usr/sbin/apache2 -k start
When I search with my ip it says:
This site can’t be reached172-106-82-23.ip.linodeusercontent.com took too long to respond.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_TIMED_OUT
please somebody help me
10 Replies
✓ Best Answer
- The domain names reached172-106-82-23.ip.linodeusercontent.com and 172-106-82-23.ip.linodeusercontent.com don't exist:
ping: cannot resolve reached172-106-82-23.ip.linodeusercontent.com: Unknown host
ping: cannot resolve 172-106-82-23.ip.linodeusercontent.com: Unknown host
Hence, the timeout…
- All this:
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; disabled; preset: d>
Active: active (running) since Sun 2022-08-28 10:29:09 UTC; 11s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 166165 ExecStart=/usr/sbin/apachectl start (code=exited, status=>
Main PID: 166169 (apache2)
Tasks: 6 (limit: 4669)
Memory: 12.6M
CPU: 41ms
CGroup: /system.slice/apache2.service
├─166169 /usr/sbin/apache2 -k start
├─166173 /usr/sbin/apache2 -k start
├─166174 /usr/sbin/apache2 -k start
├─166175 /usr/sbin/apache2 -k start
├─166176 /usr/sbin/apache2 -k start
└─166177 /usr/sbin/apache2 -k start
tells me that your server is running (and probably using mpm_prefork)… You can verify run/stop status with:
sudo /usr/sbin/apachectl status # gives status
which will give you something like this:
apache24 is running as pid 43705.
You can verify info about your server with:
sudo /usr/sbin/apachectl -V # gives verbose info
which will give you something like this:
Server version: Apache/2.4.54 (FreeBSD)
Server built: unknown
Server's Module Magic Number: 20120211:124
Server loaded: APR 1.7.0, APR-UTIL 1.6.1, PCRE 10.40 2022-04-14
Compiled using: APR 1.7.0, APR-UTIL 1.6.1, PCRE 10.40 2022-04-14
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
-D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
-D AP_TYPES_CONFIG_FILE="etc/apache24/mime.types"
-D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"
The above is from my server (as you can see, my Linode runs FreeBSD).
- When I tried http://172.106.82.23, I got a 404. However, I was notified of the 404 with a custom error page:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>404</title>
<style>
.hit-the-floor {
color: #fff;
font-size: 12em;
font-weight: bold;
text-shadow:
0 1px 0 #ccc,
0 2px 0 #c9c9c9,
0 3px 0 #bbb,
0 4px 0 #b9b9b9,
0 5px 0 #aaa,
0 6px 1px rgba(0,0,0,.1),
0 0 5px rgba(0,0,0,.1),
0 1px 3px rgba(0,0,0,.3),
0 3px 5px rgba(0,0,0,.2),
0 5px 10px rgba(0,0,0,.25),
0 10px 10px rgba(0,0,0,.2),
0 20px 20px rgba(0,0,0,.15);
}
.hit-the-floor {
text-align: center;
}
body {
background-color: #f1f1f1;
vertical-align: middle;;
}
</style>
</head>
<body>
<script>
//window.location.href = "https://kookeey.com";
</script>
<div class="hit-the-floor">404</div>
</body>
</html>
This tells me that your server is working well enough to serve a custom error page.
Did you configure a site? This doesn't happen by magic…
-- sw
┌──(root㉿apache2-tuts)-[~]
└─# /usr/sbin/apachectl status
Apache Server Status for localhost (via ::1)
Server Version: Apache/2.4.54 (Debian)
mod_python/3.5.0+git20211031.e6458ec-1 Python/3.10.6
mod_perl/2.0.12 Perl/v5.34.0
Server MPM: prefork
Server Built: 2022-07-05T13:49:58
______________________________________________________
Current Time: Thursday, 01-Sep-2022 05:54:53 UTC
Restart Time: Thursday, 01-Sep-2022 05:46:21 UTC
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 8 minutes 32 seconds
Server load: 0.01 0.02 0.05
Total accesses: 1 - Total Traffic: 3 kB - Total Duration: 2
CPU Usage: u.04 s.02 cu0 cs0 - .0117% CPU load
.00195 requests/sec - 6 B/second - 3072 B/request - 2 ms/request
1 requests currently being processed, 4 idle workers
__W…………………………………………………..
……………………………………………………….
………………….
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
┌──(root㉿apache2-tuts)-[~]
└─# /usr/sbin/apachectl -V
Server version: Apache/2.4.54 (Debian)
Server built: 2022-07-05T13:49:58
Server's Module Magic Number: 20120211:124
Server loaded: APR 1.7.0, APR-UTIL 1.6.1, PCRE 10.40 2022-04-14
Compiled using: APR 1.7.0, APR-UTIL 1.6.1, PCRE 10.40 2022-04-14
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with….
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_PROC_PTHREAD_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"
If you’re not getting the default page, your server is configured incorrectly. This has little to do with processes and compile options.
— sw
Thank you for your quick response? Do you have any tutorial or instruction for me.. actually I followed this tutorial setting up apache server. https://www.youtube.com/watch?v=1CDxpAzvLKY&t=417s
Please help me I am no understanding what to do.
Thanks for the answer. I have a lot of homework as a student. The best essay writing services, however, have always piqued my interest. Later, I discovered this article at the website click this link here now. Because of this post, my job got even easier, and I started completing my zoology tasks earlier than expected. On our website, you may access more than a million free essay writing samples. Your college homework is made easier by it.
Thanks for the answer. Do you need a reliable essay writing service? So there's no need for you to worry; this internet content is perfect for you. click here to learn more. With this article, I finish all of my college-related responsibilities as well. And I've made a great impression on my professors. because I finish my homework before the deadline. With the aid of this post, you can also make an impression on your teacher.