All Questions
Tagged with apache-2.4 ubuntu
343
questions
0
votes
1
answer
53
views
Very low resource usage on Openlitespeed (LOMP) on Ubuntu 22.04
I have been testing a custom PHP script on LOMP (Ubuntu 22.04) running on VirtualBox (2GB/2Core). First, I tried Apache and upon benchmarking the script, it could complete 10K requests in ~36s - ab ...
0
votes
1
answer
238
views
Wordpress permissions issue - How to set ownership and permissions for WordPress files properly and securely?
I am facing some problems with setting up WordPress on my local server. After a successful connection to the local database, Wordpress dropped me Unable to write to the wp-config.php file.. I created ...
0
votes
1
answer
315
views
Is there any working Apache module to implement NTLM on Ubuntu Server
I am trying to configure NTLM authentication for an internal site running on Apache/Ubuntu Jammy. I was able to implement LDAP authentication. Still, I want to make the login/auth process smooth as ...
0
votes
0
answers
58
views
fcgid is not handling. Why?
I am using: apache2 2.4 on Ubuntu 23 / WT (webtoolkit witty).
I am trying to use WT with fcgid. My hello.conf file is:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName ...
0
votes
0
answers
237
views
Apache Proxypass with SSL extremely slow
We have a server with the spec 8 vCore and 16GB RAM. At its peak, the server uses only 15 to 25% CPU and around 40% of RAM.
The issue that we face is once the number of users start increasing, the ...
0
votes
1
answer
436
views
How to make my website SSL secure with Ubuntu 22.04.2 LTS server and Apache
I'm trying to access my website through https://. but all my efforts are in vain.
First I will explain how I did everything to get into the context.
The server hardware is a Raspberry PI2B. With ...
0
votes
0
answers
131
views
How was apache2 able to use 8+GB ram "in idle"? (oom-killer)
I bought a vps in Contabo, using ubuntu22, installed apache2, php, mariadb.Sometimes the apache2 uses all of my memory. Literally all. At idle, not really anything was running.
A php process was ...
0
votes
2
answers
264
views
apache server not responding due to HTTP CONNECT requests how to block them?
Apache server is getting this kind of traffic. Due to that server is not responding. Please suggest how can we handle this issue.
78.135.85.252 - - [07/May/2023:16:08:33 +0000] "\x16\x03\x01"...
0
votes
0
answers
45
views
Reverse Proxy periodically stops working till restart
We have an Ubuntu Server running as a Reverse Proxy (Apache) for all our Servers, which are hosted in Azure.
Every month or so (not regular), the Proxy server stops processing requests, and all of our ...
0
votes
1
answer
120
views
apache "Options Indexes" working localhost but not with public DNS name
I have a Kubernetes cluster and a very basic container. I am trying to access it through the internet and the task is very simple, I just need to list the index of the directory. Here is my basic ...
0
votes
0
answers
38
views
mod-security replace characters in POST body
I want to replace all the non-alphanumerical characters in the request body (not in the parameters themselves, but their values) with nothing using mod-security. For example:
# Initial request
param-1=...
0
votes
0
answers
238
views
PHP-FPM + Apache2 security
I have configured my server (an Ubuntu 22.04 machine) so that it is managed by Apache (v2.4.55) and php7.4-fpm. The current configuration allows every vhosts to be divided into specific php-fpm pools, ...
0
votes
0
answers
1k
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] ...
1
vote
0
answers
22
views
Apache2 Configuration Issue - Deny from external IP, allow by hostname
I've been messing with this for a couple days now and can't seem to get it to work. I have 2 sites enabled via their own config files. site1.conf & site2.conf
Each sites has rewrite rules from ...
2
votes
1
answer
1k
views
Apache2 server is down - AH00170
I have been having problems for several weeks on my Apache2 server with Ubuntu 22.04.1 + PHP 7.4
For no apparent reason, the server goes down on its own and the web is still under construction so it ...
0
votes
1
answer
262
views
ErrorDocument not working for any error. Ubuntu Apache
I'm having an issue with getting the ErrorDocument to work. I have tried most of the suggestions on most of the forms and posts. The only thing I know that I have that the others did not is the ...
0
votes
0
answers
117
views
Apache2 won't start even with unit file update post reboot
Issue : after server reboot apache2 won't automatically start (have to manually ssh and start via systemctl which starts without any issue)
Error message:
Feb 08 05:53:46 domain1_test.com systemd[1]: ...
0
votes
1
answer
40
views
Drop all connections from other domain except from original domain on Apache 2.4
I have ubuntu server with apache 2.4 web server and original domain is running with ssl. Someone pointed their domain to my server and in my virtual host, it specify there the servername and ...
0
votes
1
answer
178
views
How to split the 2 IP addresses appended by google cloud load balancer
I am using apache as my webserver for drupal. Also, I am using google cloud CDN and my instance is behind a load balancer (requirement for google cloud CDN). The issue is that the load balancer ...
1
vote
1
answer
2k
views
Websocket with Apache 2.4.52 and Ubuntu
I am trying to follow tutorial located here for messaging system using RatChet PHP
https://www.twilio.com/blog/create-php-websocket-server-build-real-time-even-driven-application
I have my domain ...
1
vote
0
answers
528
views
index.php displays as listing on Apache2 server
My OS is Ubuntu 22.04
I started out by installing php 8.1
I then installed Apache/2.4.52 (Ubuntu) Server
Then I added the following:
sudo apt-get install -y php php-cli php-common php-mysql php-zip ...
0
votes
1
answer
581
views
No permission to access web site
My setup:
ubuntu 22.04
Apache/2.4.52 (Ubuntu) Server
I created /etc/apache2/sites-available/test.mysite.conf:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName test.xxxxxxxx....
0
votes
1
answer
1k
views
Cloudflare Tunnel without having to also use noTLSVerify?
I’ve got a simple domain setup on an Ubuntu server running Apache (literally just displays a static HTML file); I set it up with LetsEncrypt and it was working without issue. I wanted a bit more ...
1
vote
0
answers
109
views
Reverse Proxy config from Nginx to Ubuntu Apache2
The following are 2 corresponding sets of config statements. The first one is for Nginx and the second one for Apache2 servers.
The Ubuntu Apache2 config code is modelled after the Nginx code to ...
0
votes
2
answers
70
views
Ubuntu Apache2 not sorting sites-enabled correctly
I have an apache2 config on Ubuntu. Everything was working well until I tried to move all my canonical redirect virtualhosts into a single file instead of having them scattered across lots of other ...
0
votes
1
answer
448
views
LAMP Stack - Multiple Websites Isolation
I would like to host multiple websites on a VPS (LAMP stack - Ubuntu 20.04 LTS). For security reasons, I'd like to properly isolate each website/vhost from each other and also prevent access to other/...
1
vote
1
answer
279
views
Apache2 stuck after 8-12 days uptime. No errors. Stuck in null loop and Recv-Q
I have some fresh web servers with ubuntu 22 LTS runnings apache2 and php-fpm with mpm_event.
All of them behave the same. After 8-12 days of apache uptime. It suddenly stops recieving requests untill ...
3
votes
1
answer
216
views
Apache2 mod rewrite extremely slow, on one server only
I have a site on my local ubuntu dev box with some mod rewrite rules, which we are attempting to use to force google and other bots to index the correct page, rather than our ajax snippets as they ...
0
votes
0
answers
217
views
New server Apache 2.4 + PHP responds very slowly
a customer asked to migrate their current server with plesk to a HA infrastructure.
I've created the structure with haproxy and apache 2.4, but i can see many requests take a looooong time (some of ...
0
votes
1
answer
145
views
How is extra data getting into my PHP document?
I am running Apache/2.4.29 with PHP 7.2.24. I have the following simple PHP document:
<html>
</head>
<title>Waste-A-GUID</title>
</head>
<body>
<center>
<...
0
votes
2
answers
47
views
How can I connect to my Apache 2 web site that sits on the Ubuntu Server through IP?
Here's my virtual host configurations:
<VirtualHost *:80>
ServerName abwebserver
ServerAdmin <my e-mail>
DocumentRoot /var/www/mediawiki
AllowEncodedSlashes NoDecode
...
0
votes
0
answers
22
views
Malware causing untraceable entries in apache2's error_log [duplicate]
My apache
Server version: Apache/2.4.54 (Ubuntu)
Server built: 2022-06-08T15:59:20
is configured as follows
ErrorLog ${APACHE_LOG_DIR}/error.log
ErrorLogFormat "[%t] [%l] [pid %P] %F: %E: [...
3
votes
1
answer
167
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.
0
votes
1
answer
3k
views
Apache2: Why do I get a 403 Forbidden error?
I've been messing with this for days :(
Why do I get a 403 Forbidden error at example.com/contact?
Is this a file/folder permissions, Apache user, virtualhosts or Python issue?
I'm trying to run a ...
0
votes
1
answer
670
views
different configurations files to apache2?
I'm pretty new to this, and reading a lot online, but what configuration is right?
in apache2, some are talking about httpd.conf, and have all configuration in one file.
my installation have 2 ...
0
votes
2
answers
344
views
trying to redirect in .htaccess unless it's an admin
I am trying to write a rule in .htaccess that redirects all /wp-admin to /login UNLESS a certain user (WebAdministrator) is logging in. How do I make such a rule?
If I use:
Rewriterule ^wp-admin /...
0
votes
1
answer
44
views
Apache directs https:b-site visitor to https:a-site (b-site don't have ssl)
I've got an issue with my apache system.
it's brand new, and so are I.
my problem now is that if somebody visit https://123.446.689.0 or https://b-site.com, (which don't have any ssl), then will a-...
0
votes
1
answer
212
views
Apache Hangs for 20 mins ever few days
I am having a heck of a time figuring this out. Apache, every few days hangs for about 20 or so minutes and then "comes back to life". This has happened during the middle of the day, it's ...
0
votes
1
answer
2k
views
Apache server error Ubuntu 18: Syntax error on line 1: <VirtualHost> directive missing closing >
I've been trying to get my Apache server running on Ubuntu, but in my
/etc/apache2/sites-enabled/dev.lamp.test.conf
file I get this error when I run apachectl stop
AH00526: Syntax error on line 1 of /...
0
votes
0
answers
545
views
Use the same environment variable for HOSTNAME and identifying the web request server used
Our environment has servers named like so:
prod-app-01
prod-app-02
test-app-01
test-app-02
I've used sudo hostnamectl set-hostname test-app-02 on each server (changing the name appropriately each ...
0
votes
1
answer
2k
views
Cant install certbot using snap return: Run configure hook of "certbot" snap if present
I want to install certbot using snap, but when I tried Official instruction:
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
but returns:
error: cannot perform the ...
0
votes
1
answer
2k
views
Nmap showing port is filtered, but apache files are listening to port 80
I am having trouble with apache on my Ubuntu server. It is not a local machine, I am accessing it through SSH.
When I run nmap -sS 127.0.0.1 it shows this:
Not shown: 998 closed ports
PORT STATE ...
0
votes
1
answer
473
views
Wordpress asking for FTP when deleting plugins
Wordpress asks me for FTP credentials when I try to delete or install plugins. I know it has to do with permissions but I have been unable to figure it out. I have a linux system user XYZ and apache2 ...
1
vote
0
answers
158
views
Why would TLS version in one config cause another to break?
I have an Apache proxy that has several VHosts. Some of these are legacy configs that were before my time. Long story short, I removed some .crt files on the server that had expired, and forgot to ...
1
vote
0
answers
531
views
Disable default virtual host in apache
I've configured my name-based virtual hosts for Apache2 as follows:
copied /etc/var/apache2/sites-available/000-default.conf to /etc/var/apache2/sites-available/mysite.com.conf
edited ServerName, ...
2
votes
0
answers
497
views
Initial connection (TCP handshake) takes 150 seconds first time with https only, but normal from then onwards - Apache - AWS EC2 - Route 53
I'm new to web deployment. I have this at this stack at the moment:
Django
Apache
EC2
Route 53
Namecheap
When I access the website through the public IPv4, it is instantaneous.
However, when I ...
0
votes
0
answers
1k
views
How to correctly enable Imagick in PHP-FPM on Ubuntu 20.04 and Apache
I have PHP-FPM setup on my Ubuntu 20.04 server and have installed Imagick, but I cannot get it to be recognized by PHP 7.4. I tried following these steps, but step one returns the following error in ...
0
votes
1
answer
94
views
Apache SSL Installation [Not Duplicate]
I am trying to install ssl certificate on my ubuntu server 20.04
I have downloaded ssl files and put them in /home/ubuntu (will change once it works):
api_limitlesssoft_com_key.txt
api.limitlesssoft....
0
votes
0
answers
328
views
Unexpected and frequently Apache server shutdowns on Ubuntu 18.04 server
I'm having difficult times trying out to figure which are the problems Apache2 is having for it to die "randomly". I get noticed with some insults lol and have to restart it manually
Ubuntu ...
1
vote
1
answer
2k
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>
...