Questions tagged [httpd]
httpd is a typical process name of a web server.
1,452
questions
0
votes
1
answer
44
views
imagick extension php loaded in command line but not load in httpd
I have installed imagick extension for php by command: pecl install imagick
After that, I restart httpd and restart php-fpm.
I checked imagick loaded in php command line but when use phpinfo() for ...
0
votes
0
answers
12
views
How to rewrite URL to reflect name of NLB not backends?
I have a network load balancer in front of my httpd backends servers, but if I try to use write the name of NLB in the URL of my browser it'll redirect me to one backend, which is the goal, however, ...
0
votes
0
answers
19
views
mod_ruid RuidGid equivalent
Since mod_ruid is no more supported by custombuild(directadmin) I had to install php-fpm. I would like to know where I can set the user that is running the website what was primarily the RuidGid in ...
2
votes
0
answers
52
views
ldap not working with svn
Authentication fails with password mismatch error whilst trying to login to svn repo. Following is the config for 10-subversion.conf
Tried everything but nothing seemed to worked including changing ...
0
votes
0
answers
78
views
Apache 2.4.53 Getting AH00027: No authentication done but request not allowed without authentication for /CN=XXXX. Authentication not configured?
We have an Apache 2.4.53 and when they try to access it we are seeing a 500 error, and the following in the error_log file:
[Thu Jan 25 23:56:22.600893 2024] [core:error] [pid 24313:tid ...
1
vote
1
answer
80
views
httpd crash with ssl_io_filter_cleanup () from /usr/lib64/httpd/modules/mod_ssl.so
version: httpd-2.4.54-1.el8.x86_64
Core generated when i do httpd condrestart for a task and also i can see some ssl_error_logs which is related to the core file pid.
gdb logs:
Core was generated by `/...
0
votes
0
answers
139
views
Intercept HTTP POST response from Reverse Proxy in Apache
I have following configuration in my Apache server and requirement is to intercept HTTP POST request to /api/submit endpoint and trigger a CURL request to a remote URL before forwarding it to backend ...
0
votes
1
answer
394
views
AH02565: Certificate and private key from <cert> and <private key> do not match
I'm trying to update some expired SSL certificates internally on some Ubuntu and Redhat servers. I have an internal certificate authority for this (ADCS). These are the steps I'm taking:
Generate CSR ...
0
votes
0
answers
50
views
What is the equivalent of /etc/apache2/envvars in EL-based systems?
In Debian-based systems, it's possible to source a bash script in /etc/apache2/envvars to dynamically set an environment variable. Here is an example:
Create a file (/etc/profile.d/myenv.sh) with the ...
1
vote
3
answers
142
views
apache2 rewrite is working, but doesn´t keep URL
I was looking around google for some days now and can´t get it to work.
With apache rewrite: domain.com > test.com/test (but keep the URL domain.com in browser)
The whole SSL Config:
<...
0
votes
0
answers
90
views
Can I set the default value of the cookie set by mod_session?
(This question pertains to a containerized version of the httpd server version 2.4.57.)
I am required to log visitor activity by a session token using mod_session (see: https://www.stigviewer.com/stig/...
1
vote
1
answer
60
views
Why is mod_usertrack not setting cookie?
I am running httpd:2.4.57 in docker. I have not figured out how to set or see the cookie set by mod_usertrack. I checked both browsers to be sure cookies were allowed.
I verified the mod_usertrack.so ...
0
votes
1
answer
73
views
Apache rewrite any uri to index.html but existing files
My front-end project is based on 1 file: frontend/index.html
It means that every request like /contact, /about, etc should be responded by index.html file.
I was thought I can use these lines in my ...
1
vote
1
answer
424
views
How to enable executing php files in Fedora Apache?
I installed httpd and php v8.2.11 on my Linux Fedora.
But Apache can't execute .php files. (Responses "Access denied.")
I tried to use chmod shell command to enable executing and add AddType ...
0
votes
0
answers
73
views
Azure RHEL 8 VM - Apache 2.4 Package Availabilty
I've got a RHEL 8.8 instance in Azure. This instance will replace our current RHEL 7.9 instance running Apache 2.4.34. The RHEL 7.9 instance has the following httpd package installed: httpd24-httpd. ...
1
vote
1
answer
162
views
Use relative parent directory links in Apache httpd mod_autoindex
With Apache httpd mod_autoindex, the generated index pages use relative (without the leading slash) links for individual entries, for example:
<a href="failure/">failure/</a>
...
0
votes
2
answers
132
views
Apache Httpd: Logging Access for Non-privileged Users
I’m wondering if it is common for Apache HTTPD admins to allow read access or read access to copies of /var/log/httpd/${vhost}_error_log?
I administer an Apache web server for a University CS ...
0
votes
1
answer
200
views
Cannot Start Apache2 - httpd bound to port 80
I have a fresh install of Ubuntu Server 22.04, on which I installed apache2 via apt-get install
After the installation I got the following error whenever I tried to start Apache2:
(98)Address already ...
0
votes
0
answers
61
views
Apache Centos mutiple instances and virtual hosts
I installed apache on centos and added two virtual hosts (server1.com and server2.com ):
server1.conf
Listen 443 https
<VirtualHost *:443>
DocumentRoot /opt/server1/
ServerName server1....
0
votes
0
answers
36
views
Replaced certificate and now Apache server will not start up
So we are running an apache server on CentOS7 and the certificate for one of our sites expired. We replaced the certificate with the new one we received from DigiCert and went to restart the apache ...
0
votes
0
answers
267
views
(13)Permission denied: AH02611: create: apr_shm_create(/log/slotmem-shm-p24af65f1_0.shm) failed
I updated httpd to version 2.4.57. I compiled httpd on my own and when I start httpd within a chroot environment, I am getting this error message in the logs:
[Thu Jun 22 14:33:27.319378 2023] [...
0
votes
0
answers
21
views
Large consumption of resources when stopping Apache
During the stop of the apache service, the httpd -prefork processes take 100% load on all cores and take up all available memory, as a result of which the oom killer is triggered.
Stop command:
...
0
votes
0
answers
30
views
mod_jk - 2 JkMount Directives with the same URL but different workers
I have a question. How would the following mod_jk directives be interpreted?
<VirtualHost *:443>
ServerName backend.example.com
...
JkMount /api/prod worker1
JkMount /api/prod/* ...
1
vote
2
answers
360
views
Apache httpd cannot connect to Tomcat over Unix Domain Socket - SELinux denied
I have an Apache httpd v2.4.57 configured on Rocky9 to connect to Tomcat9 / Java17 over a unix domain socket.
SELinux kicks in and says denied, as follows:
type=AVC msg=audit(1685376249.480:134): avc: ...
0
votes
1
answer
67
views
Post Fedora Server upgrade to FC38, Apache httpd server no longer honors Lets Encrypt keys
The environment has twins of virtually everything, including two web server / firewall / gateway systems, and they were getting long-in-the-tooth version wise, so I decided to upgrade from Fedora ...
0
votes
1
answer
62
views
SVN running on RHEL 8 Authentication issue
Good morning,
I support a subversion server running on rhel 8. The engineers check in/out software builds from a CentOS6 desktop. I need to add authentication to the SVN URL because it's wide open. ...
0
votes
1
answer
245
views
Amazon Linux 2023 HTTPD failed to start
I have an AWS instance which I use on demand, I was trying to boot it up and start apache but got this error which I have looked up and couldn't get anywhere near resolving or diagnosing it
The job ...
0
votes
0
answers
191
views
How to configure Lychee server? apache error 500
os AlmaLinux 9.1
Apache/2.4.53
PHP 8.2.4
try to install Lychee with postgreesql
my httpd.conf
ServerRoot "/etc/httpd"
Listen 0.0.0.0:80
Include conf.modules.d/*.conf
User apache
Group ...
0
votes
0
answers
145
views
Best practices to configure multiple websites managed by multiple users on Apache
I am setting up a RedHat server with an Apache service to host multiple Wordpress websites.
We work with a few different companies which develop those websites.
I'm having trouble with the access ...
0
votes
1
answer
49
views
Apache HTTP Server - 2.4.5* / Is it Possible to Use Cluster Scenario for WebLogic Server Installed On 2 Different Machines Using Apache HTTP Server?
There are 2 different scenarios.
Scenario-1:
Let's assume that WebLogic is installed on 2 different servers. Server IPs: 192.168.0.111 and 192.168.0.112. These servers are not clustered (ie each ...
0
votes
0
answers
1k
views
How to determine why apache gracefully shut itself down?
I have apache httpd 2.4.6 running on RHEL 7.9
Yesterday the service was shut down, and the only information I am getting from /etc/httpd/error_log-DATE is from the last line of the file:
[mpm_prefork:...
1
vote
0
answers
191
views
SOAPUI What causes "error in msg parsing: xml was empty, didn't parse!"
Currently, I have a structure which takes a SOAP request, fires the request at a reverse proxy (a script written in Lua) which takes a copy of the SOAP request and then passes that to the webserver, ...
0
votes
1
answer
428
views
HTTPD + MPM_EVENT + PHP_FPM
I have created a docker container with the following
OS: Debian 11
WebServer: httpd2.4 (Enabled mpm_event)
Backend: PHP-FPM
Docker is running in EC2 and I have given 10GB RAM and 5CPU for the docker ...
0
votes
0
answers
96
views
I cannot get environment variable from apache
On a Centos 8, I added a SetEnv into my VirtualHost conf:
<VirtualHost *:XXXX>
Alias /static/ /opt/industrialisation/xxxx/xxxx/xxxx/
<Directory /opt/industrialisation/xxx/xxxx/>
...
0
votes
0
answers
634
views
Apache on OSX: "not running" and "already in use" for all processes?
OS: macOS Mojave 10.14.6
HTTP Server: Apache 2.4.55
When trying to restart apache server, I get "Address already in use..." message. Hm, so there must be a process that listens to that port, ...
0
votes
2
answers
145
views
How do I configure httpd to host multiple websites on the same web server
Using RHEL7.9, httpd 2.4.6
I have three sites in my /var/www/html/:
/main
/site1
/site2
The httpd.conf DocumentRoot points to /main
Listen 80
ServerName example.com
DocumentRoot "/var/www/html/...
0
votes
1
answer
60
views
Apache httpd on a backup machine where hostname is not matching
I have to run an Apache httpd server on a backup machine, which is a CentOS. In this case, it is a WordPress multisite installation. Since it is a backup machine, the DNS server does not point to the ...
0
votes
1
answer
47
views
mod_proxy + mod_reqrite results in errors 502 or 502
I have working httpd config (reverse proxy) that forwards requests to proxy:
Listen 443 https
<VirtualHost *:443>
ServerName public-dns.example.org
ServerAlias internal-hostname....
-2
votes
1
answer
959
views
libphp.so is missing in the oracle linux 9, is there any alternative to let httpd handle php page? [duplicate]
I do find a lot similar problems on CentOS in this forum, and I tried to follow any suggestions mentioned in their answer, however, none solves my problem. Therefore I’m opening this question for ...
2
votes
2
answers
13k
views
Configuring PHP-FPM in Apache
I installed Apache/2.4.54, PHP72-FPM, PHP74-FPM and some other versions of PHP-FPM on Arch Linux.
Apparently there is some misconfiguration in httpd.conf, PHP can`t interpret anything and browser ...
0
votes
1
answer
286
views
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 ...
0
votes
1
answer
238
views
Configuring Virtual Hosting Httpd - Fedora Server - 'sites-available and sites-enabled' vs 'conf.d/vhost.conf'
The current set-up for my web server is a 1GB nanode using Fedora37 as the distribution for the compute instance. For the web server I am using Httpd (Apache 2.4.54), and am now in the process of ...
0
votes
2
answers
210
views
ProxyPass not working alongside ProxyPassMatch
So at the moment I have a virtual host configured on my Oracle HTTP Server instance with a ProxyPass as such:
ProxyPass ^/test/home/ https://example.com/
ProxyPassMatch ^/test/home/(.*)$ https://...
0
votes
1
answer
179
views
Apache httpd low performance
I have an website which is running using httpd on Centos 7.
I have 8 cpus and 32 GB ram.
When we have more than 500-600 users in the same time on the website, the server response is getting higher. ...
0
votes
3
answers
52
views
Point domain to server without HTTPD
I have a VM on Oracle Cloud Free tier and have the dedicated IPv4. I installed MariaDB on this server.
I want to point the domain name (example.com) to that machine, in order to access the MariaDB ...
1
vote
1
answer
188
views
How can I locate the php script that issues outbound connections?
I have a server running httpd for several websites. Using the top command, I found many httpd processes exhaust memory. Using the netstat command, I found the httpd processes are connecting to an ...
4
votes
4
answers
2k
views
How can I see the httpd log for outbound connections?
The access log specified in httpd.conf for a website only shows the information for incoming connections. For outbound connections such as those issued by php file_get_contents function, how can I get ...
0
votes
1
answer
41
views
Having Trouble setting up 2 Virtual Hosts with SSL
Im trying to setup a second webserver on my machine however im running into problems with the virtual hosts and im not sure which file and what i should be changing.
I have 1 server running with SSL
...
0
votes
0
answers
98
views
Artifactory sends wrong reset password URL
When a user uses the "Forgot password", they are sent a URL to the reset-password page in Artifactory.
In our case the URL contains an extra /ui, like this
https://external-hostname/ui/ui/...
1
vote
0
answers
22
views
Redirect docroot for specific URI path by .htacess
Is it possible to redirect a specific URI path to a specific docroot within the original docroot using the .htaccess?
For example:
example.com > docroot
Where
example.com/path > docroot/subdir