Questions tagged [apache2]

The Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
0
votes
2 answers

Stuck on php8.1 when downgrading to php7.4

I upgraded the php version on my Apache server running on Debian (buster) from 7.3 to 8.1. Due to an older Nextcloud installation I had to downgrade to php7.4. The downgrade worked well following instructions like this, but the server is still…
droid001
  • 1
  • 1
0
votes
1 answer

How to start myslq if it fails to start due to insufficient space, and the main files eating up space are mysql binary log files

My server disk usage looks like this: Filesystem Size Used Avail Use% Mounted on udev 989M 0 989M 0% /dev tmpfs 200M 21M 180M 11% /run /dev/xda1 59G 57G 9.7M 100% / tmpfs 998M 0 998M …
truba
  • 1
  • 1
0
votes
0 answers

Apache httpd's request queue is full

Quick disclaimer. I don't code in PHP, and I am just helping the people responsible for this service. Recently we started to have problems with one server who uses php-prefork and without trying to understand the problem we rushed to increase the…
0
votes
0 answers

IP of ubuntu server is accessible even after it listens on domain

So my problem is that my site is accessible also with IP like https://xx.xx.xx.xxx something that I don't want. I only need domain name accessing servers IP. I tried virtual hosts on apache2 to redirect to domain but I think I can't make it after…
newbie
  • 1
  • 3
0
votes
1 answer

How Can I add Cookie value or Session ID Value in ErrorLogFormat of Apache?

I want to add the 'my_session' cookie value in the Apache error log. I have added an access log 'LogFormat' as below: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"…
0
votes
1 answer

Apache2 how to generate random string for subdomain

I want to issue a redirect to a new randomly generated subdomain name for every request I get. Below you can find my vhost configuration. I want to do a redirect towards a subdomain containing some random alphanumeric string in . It's ok if it is…
Mnemosyne
  • 131
  • 1
  • 7
0
votes
0 answers

Apache halts with error: Invalid argument: AH00146: couldn't release the accept mutex

My webserver running Debian Bullseye has been running for years without any problems. Everything is up to date. The apache version is 2.4.54. Yesterday I noticed none of my websites were up so I logged in to my server and noticed Apache wasn't…
Zippy1970
  • 247
  • 1
  • 4
  • 12
0
votes
0 answers

nftables and OCSP stapling

My apache error log shows: AH01972: could not resolve address of OCSP responder ocsp.usertrust.com Main reason is my server's nftables blocks any requests to the Internet. In my opinion web server not should to initiate any connections to the…
gorek
  • 1
0
votes
1 answer

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 that at peak times, the server becomes so slow…
0
votes
0 answers

Web applications are not working other than Apache2

I am trying to install different applications (odoo, apache) on oracle instance, Apache is working perfectly on port 80, while odoo is not working neither on the default port (8069) nor on other ports (tried port 80 after stopping apache service) I…
Dyiaa
  • 1
0
votes
1 answer

Apache not serving local hosts

I have set up an Apache Server on an a VMWare hosted Linux Mint 21 Server, I have followed the instructions at this blog to run multiple PHP versions (7.4 and 8.1). Apache is running fine and serving pages on localhost ok but the Virtual Servers…
deep64blue
  • 101
  • 3
0
votes
2 answers

I get directory listing instead of the website index.php

Ubuntu 20.04, Apache 2.4, PHP5.6 I have website with the following vhost config ServerAdmin admin@website.com ServerName website.com ServerAlias www.website.com DocumentRoot…
igalsc
  • 11
  • 4
0
votes
0 answers

HTTPS Redirect Not Allowing Access On Port 443 (Apache2, letsencrypt)

ERR_CONNECTION_TIMED_OUT ...is what I'm getting trying to access my domain wget (website), VH config, netstat, ufw status The issue lies somewhere between sending the request to apache through 443 and accessing the /var/www/ folder. Either some…
Alex S
  • 1
0
votes
2 answers

After setting up Apache it's not serving PHP files, but showing the contents of the files instead

The error I got is in this url: url in browser: http://localhost/ error in browser: https://justpaste.it/d82bd What am I missing here? I copied the file ipconfig.php (given below) from ipconfig.php.example but no luck. I give permission to the files…
Love Grover
  • 103
  • 4
0
votes
1 answer

Apache2 non-default root directory multiple websites 403 forbidden

I have Ubuntu 20.04 servers on AWS in autoscaling group with EFS mounted at /mnt/efs/fs1 I use codedeploy for deployment of a non-default website. The bitbucket pipeline creates a zip file containing the website config and the website content.…
igalsc
  • 11
  • 4