Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
70 views

Out of memory: Killed process (apache2). apache2.service: A process of this unit has been killed by the OOM killer

My website was suddenly taken down and the root cause was clearly that it ran out of memory, as revealed by the graph below and the logs from /var/log/syslog on the server that I found from the time ...
Jaime Montoya's user avatar
0 votes
1 answer
271 views

Getting an error message when trying to run apache2 on ubuntu

Hello i wanna run a server for my php application on apache2, but when i try to download apache2 like it sais on this website https://www.digitalocean.com/community/tutorials/how-to-install-lamp-stack-...
Kemal007023 oz's user avatar
0 votes
1 answer
59 views

Apache2 Not Running Custom PHP App After Uploading to /var/www/html folder

I am installing a software that I bought. It's in PHP. So, I got a DigitalOcean server(ubuntu 22.04). Installed Apache2 and PHP 8.1. Now, when I upload files to /var/www/html folder, it does nothing ...
Salman Khan's user avatar
0 votes
0 answers
104 views

Apache2 404 Not Found Error for file which really exists in folder

On my ubuntu server i have user farmer inside home/farmer directory i created directories /var/www/html/ and inside html i put file index.html I have granted following rights to directories and index....
Naglyj.Spamer's user avatar
0 votes
0 answers
97 views

Putting a Django application into production on Ubuntu server with Apache2 and Cloudflare

I have this Django application which works very well, but I do not understand at all, how to put it in production on a Ubuntu 22.04 LTS server using apache2 and to link it in HTTPS, on a domain such ...
Ghost0159's user avatar
0 votes
0 answers
37 views

How to get syslogd and/or Apache2 to STOP logging DEBUG messages to console

When I SSH into one of my Linux boxes (Ubuntu 20.04.2), I periodically see messages appear on the console screen: Message from syslogd@my-hostname at Jan 30 21:35:17 ... apache2: [MY-APP] DEBUG - 2024-...
GregSD's user avatar
  • 1
0 votes
0 answers
190 views

Getting 404 error for apache `/server-status`

I was told that there's a way to enable a url called http://<your host>/server-status and that this page would show you some operational metrics of the apache service. But every time I visit ...
learningtech's user avatar
  • 7,549
3 votes
0 answers
188 views

How to investigate 100% CPU load for 15 minutes on random days

"I have a server that runs a website on Apache2 and is behind Cloudflare. The server's normal load, according to 'htop', is 10%. However, at random days/times, the server load spikes up to 100%, ...
CodePanda's user avatar
  • 141
0 votes
0 answers
370 views

Set up proxy for Nextjs and WordPress blog

Thanks in advance. I am new to server setup. So pardon me If I used the wrong words. I am setting up an Ubuntu server to host Nextjs and WordPress blog on the same server. I have to set up Nextjs on ...
Sandeep Solanki's user avatar
1 vote
4 answers
528 views

Apache2 not listening on SSL on Ubuntu

Trying the configure SSL on Apache2 on Ubuntu server installed Apache sudo apt install apache2 Opened ufw firewall sudo ufw allow 'Apache' ufw allow https Installed SSL files in /root/cert chmod ...
vrao's user avatar
  • 117
2 votes
0 answers
95 views

Apache2 cannot get authentication to work

Running: Apache 2.4.41 on Ubuntu 20.04 I am trying to force authentication on /var/www/html but I think I have tried every combination of options possible but every single time it lets people in with ...
Serge Bigras's user avatar
0 votes
0 answers
149 views

Can I stop Apache2 server with Caddy in docker container

I'm running a container with Caddy. My website is properly working. I can access it. The problem is that whenever I visit any page on my website - I can see apache2 that takes a lot of CPU (in top). ...
Marek's user avatar
  • 101
0 votes
0 answers
51 views

Show content of loaded sites-available in apache2 under ubuntu 18

I accidentally deleted a .conf in /etc/apache2/sites-available. Is there a way to retrieve the content of it? When I type a2query -s, I see that the deleted .conf is still loaded, since I did not ...
Selphiron's user avatar
  • 101
0 votes
0 answers
53 views

Apache with vhosts: Newly created site opens other site

I have a server with three vhosts, the default (domain.com), site1.com and site2.com. The server is running Ubuntu 22.04 LTS with Apache2. Until yesterday, this server only served the default domain, ...
Emily's user avatar
  • 1
0 votes
0 answers
60 views

Web server returning high number of 502 and 504s

We have a web application (LAMP stack) with traefik as a reverse proxy that is suddenly giving HTTP 502 and 504 errors on >50% of requests, both for static files and php scripts. In the traefik ...
bkane521's user avatar
  • 101
-2 votes
1 answer
548 views

Upgrade SMTP Server on Ubuntu Linux 18.04 to support TLS 1.2

Client has an intranet hosted with Apache on Ubuntu 18.04. When I update an employees information through it, an email is sent, but it fails showing the following error: (SMTP Error: 421 4.7.66 TLS 1....
Nico Nico Pizza's user avatar
0 votes
1 answer
189 views

Ubuntu - Issue hosting (HTTPS only) a Net core app: "AH01276 - Cannot serve directory"

I'm trying to setup my application using HTTPs, I followed a guide HERE to do it properly but it's not working. My app runs perfectly in port 80 (http) and when I turn on auto redirect for 443 (https) ...
mfvjunior's user avatar
  • 109
0 votes
1 answer
170 views

Postfix to gmail relay - preserving the sender's address

Relayed emails come 'from' [email protected], not [email protected], so I cannot reply. I have several domains and am using Postfix to relay emails sent to [email protected] on to [email protected] as ...
Megalomatt's user avatar
1 vote
0 answers
3k views

Apache Getting Killed By OOM

I Have apache2 running on Ubuntu 22. My Apache2 often getting killed by OOM. I have tried to get log and its showing something like this > root@localhost:~# dmesg -e | grep -i kill [Mar15 03:00] ...
user avatar
0 votes
0 answers
1k views

Apache 2.4.52 HTTPS Rewrite no longer works on Ubuntu 22.04

I have been forcing HTTPS upgrade through mod_rewrite for years on Ubuntu 18.04 LTS servers. I recently upgraded a few of these servers to Ubuntu 22.04.1 LTS to ensure the latest security and Apache ...
Nick Bedford's user avatar
0 votes
0 answers
336 views

How to forward https traffic from Port 80 to Port 8501 on Ubuntu Apache2?

So I used iptables to redirect traffic from 80 to 8501 as follows: sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8501 However this doesn't work with https. I was ...
Mansidak's user avatar
0 votes
1 answer
176 views

Syntax Error I can't figure out on Apache2

I was attempting to change the conf of my files in order to achieve port forwarding, however all of a sudden I get the following error when attempting to restart: AH00526: Syntax error on line 30 of /...
Mansidak's user avatar
0 votes
2 answers
645 views

nmap vuln script detects vulnerability "Apache byterange filter DoS http-vuln-cve2011-3192" in Ubuntu Webserver, but apache2 not installed on server

I am running an Ubuntu 20.04 LEMP (Linux, Nginx, MariaDb, PHP) webserver. I am also doing some nmap vulnerability tests form my MacOS Client machine. On MacOS, I am using Oh My Zsh! with the nmap ...
DanRan's user avatar
  • 93
0 votes
1 answer
515 views

Application slows down (SOMETIMES) at peak times, running on tomcat with a reverse proxy from apache server, deployed on AWS

Just for preface: I'm a software developer and at first no one knew what's going on, so I did some testing and reading, and would like to help my colleagues fix this problem. The issue: The issue is ...
Stefan Horvath's user avatar
1 vote
1 answer
257 views

How to **keep** my SSLCipherSuite list for my LAMP stack current?

I have been running several LAMP servers for 5+ years with Let's Encrypt certs. Today, I did the SSL test by Qualys https://www.ssllabs.com/ssltest/index.html to learn that I had lost my coveted A+ ...
wruckie's user avatar
  • 697
1 vote
1 answer
67 views

Apache2 is serving "download" document instead of website

I updated my Ubuntu server this morning from 20.04 to 22.04. Apache2, PHP, Mysql all got updated in the process. I have Cacti installed on this server to monitor a few of our switches and firewall. ...
FACTORY909's user avatar
0 votes
1 answer
215 views

Host multiple websites on AWS Auto-Scaling Group with EFS

I hope this is a simple question. Currently I have an Apache2 webserver on Ubuntu with multiple websites. The basic structure of the Apache is /etc /apache2 /sites-available --> the .conf ...
igalsc's user avatar
  • 11
0 votes
1 answer
117 views

What should be in mysql replication MASTER_HOST='source_host_name'

I am trying to setup replication across two servers on AWS. I am following the documentation and I am up to this point. https://dev.mysql.com/doc/mysql-replication-excerpt/5.7/en/replication-howto-...
user1794918's user avatar
0 votes
0 answers
26 views

Apache2.5 Ubuntu22 upgrade

Hi have followed this, restarted apache2, rebooted the instance and still 2.4.54. Is it as simple as getting the latest and untar it into the existing directory? Please advise.
cp.'s user avatar
  • 101
0 votes
1 answer
230 views

403 after pointing A-Record of subdomain to IP of other server

I have two servers X and Y. Server X: I have a VHOST for the subdomain test.api.konfigurator.company.de pointing to a directory which simply has a index.html containing the word "it works!"....
Black's user avatar
  • 491
3 votes
1 answer
234 views

Why is apache -X stuck in a pselec6() NULL loop?

version 2.4 pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=100000000}, NULL) = 0 (Timeout) Repeats forever using strace. Only one httpd process enabled.
queryman2000's user avatar
0 votes
1 answer
176 views

Getting random 404 requests from unknown IPs in Apache + Ubuntu server

This is strange. I just installed a new Ubuntu + Apache in my Digitalocean droplet and installed a Laravel APP there. Now suddenly I see these kind of strange POST, GET and CONNECT requests from ...
Sarwar Alam's user avatar
0 votes
1 answer
1k views

Apache2 a2ensite: ERROR: Site /etc/apache2/sites-available/example.com does not exist

console screenshot I realize this has been asked before, but this is not the same error and I am not able use the same solution(s) of moving the file from sites-enabled or renaming the file with a ....
rick's user avatar
  • 3
1 vote
1 answer
1k views

certbot creates a challenge owned by root:root and permissions 640 and apache can't access it - custom ACLs applied on parent directory

On my server I have special permissions that I set on my public_html folder. First the sticky bit chmod g+s /home/domain.com/public_html Also default group permissions. setfacl -m 'default:group::rwX'...
Mikey A. Leonetti's user avatar
0 votes
0 answers
491 views

High Disk IO with Network and CPU spikes

I have a Linode server that has been under load for a few hours. The configuration is 2 CPU Cores, 4GB memory, 80GB SSD storage mounted as 1 partition, 500MB swap. There's a second hard drive of 30GB ...
Whip's user avatar
  • 258
0 votes
0 answers
24 views

Server CPU Usage Above 100% for the Past Week [duplicate]

My server running ubuntu and flask for a webapp as well as scrapy, selenium, and postfix has been experiencing very abnormal cpu usage. This server has not used as much cpu load in the past, but has ...
Python 123's user avatar
0 votes
0 answers
1k views

Redirected Too Many Times on Apache2

I'm using apache2 to host a website on Ubuntu Server. When I try to load the page from a browser, I get the "this page redirected you too many times" error. I don't have any duplicate files ...
Wilson T.'s user avatar
2 votes
4 answers
20k views

Apache server port 443 connection refused

Recently configured SSL on Apache 2.4/Ubuntu 20.04 hosted on Oracle Cloud and have been getting connection refused for https/port 443. External device: $ curl simpliassure.com:443 curl: (7) Failed to ...
Robbie Zhao's user avatar
0 votes
2 answers
489 views

Why is my valid SSL certificate invalid on a particular site with the same host?

I have hosting set up with HostEurope. My SSL certificate seems to be valid (it has not expired etc.) and it works for one the domains I use on my server (the SSL certificate was purchased for this ...
biscuit_'s user avatar
0 votes
1 answer
814 views

Hacked file regenerates whenever it is deleted - ubuntu/apache2 [duplicate]

Have just had a hacked website flagged by Sucuri There were a number of backdoor PHP files flagged, which I HAVE been able to delete However, the index.php file has a spam link injected in to the ...
freestate's user avatar
  • 109
0 votes
1 answer
116 views

Apache mod_action producing 404s

I'm trying to setup a custom action handler for certain files in Apache (running on Ubuntu). It looks to me like I have my site config setup correctly for the action handler, but now when ever I ...
Adam's user avatar
  • 101
0 votes
0 answers
206 views

Server supports TLS1.3 but refuses 1.2

I have the following Problem: Im hosting my website and some tools on a VServer running Ubuntu 18.04 behind an apache2. Some people told me that they can't reach my website and I tracked it down with ...
Johannes's user avatar
0 votes
0 answers
88 views

Make apache accept requests only if who sent requests is a domain i specified

I currently have an apache2 server accepting api requests on the url mydomain.com/api and i have a client application that runs at mydomain.com. Also, in my api, one can access mydomain.com/api/files/...
Alessandro Valentino's user avatar
0 votes
1 answer
2k views

Apache server not responding. It just loads and then gives a timeout [closed]

I have an apache2 server and have been trying to make it accessible to all but am unable to do so. Here are the outputs: $ netstat -plant | grep apache tcp 0 0 0.0.0.0:80 0.0....
Divyessh's user avatar
  • 103
2 votes
0 answers
1k views

Apache2 Segmentation Fault after upgrading to PHP8.0 Ubuntu 20

I recently upgraded a production server from PHP 7.4 to PHP 8.0 (this is using the ondrej packages). As a reference, I'm using Ubuntu 20.04.3, apache2.4.46 and now PHP8.0. After about 18 hours, the ...
Alex's user avatar
  • 221
2 votes
0 answers
234 views

How to handle proxy call in apache

I have a reverse proxy setup as follows in Apache: Server A with address www.proxyserver.com/graphql is the reverse proxy server. It maps to: Server B with address example.com This kind works properly ...
Ming Hieu's user avatar
0 votes
0 answers
179 views

apache2: /etc/hosts won't redirect to apache2

I have newly installed apache2 and by visiting localhost apache2 is shown to be up and running. I want the same to happen when I put app in the browser. When I do try to go visit app the browser gives ...
Mr Krisey's user avatar
4 votes
2 answers
1k views

Can I use apache2 and memcache in same server?

I am really new to server development. I have a server (Server version: Apache/2.4.41 (Ubuntu)) for Django and it's running on apache2. I want to use Memcache for a large queryset. I just wanna use ...
Murat Demir's user avatar
0 votes
1 answer
153 views

Apache2 - Only home url is found

I have created a laravel 8 application and installed apache2. My configuration files look like the following: 000-default.conf <VirtualHost *:80> # The ServerName directive sets the request ...
Carol.Kar's user avatar
  • 117
1 vote
1 answer
3k views

Issues with Require IP on Apache 2.4 and Ubuntu 20.04 server

I have setup a subdomain (staging.callkneehill.ca) on my server and have created a .htaccess file with the following parameters: <RequireAny> Require ip 70.65.194.109 </RequireAny> ...
Mike Hermary's user avatar