Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [apache-httpd]

Use this tag for questions related to the Apache HTTP server (any version, but make sure to provide Apache version numbers in the question unless not relevant). Non-apache web server-related questions should use the tag: webserver.

1
vote
1answer
24 views

Fedora 28, httpd config: Is mod_mime_magic magic loaded? [on hold]

Edit: I wasn't clear here. I am not necessarily looking for an opinion from other people on whether the magic file should be version-controlled. I am more interested in figuring out if mod_mime_magic ...
2
votes
0answers
10 views

Modify apache module mod_substitute source code [on hold]

I am interested in writing an apache module that can modify the response content. Basically I want to replace a certain string in response with something else. mod_substitute is a good contender for ...
-1
votes
1answer
66 views

How to organize /home/ such that users don't see each other's content?

Up to know, I used a sandbox server for myself only, and websites were in subdirectories of /home/www/: drwxr-xr-x 5 root root 4096 Nov 30 14:45 www |--- drwxr-xr-x 3 www-data www-data 4096 Oct 14 ...
0
votes
2answers
47 views

Is the www-data user pre-configured in Linux and Unix systems?

I personally usually use Debian based systems but I ask the following question on the entire *nix family of operating systems. Is the www-data user usually using as the Apache/Nginx already comes ...
0
votes
1answer
39 views

Execute shell command (pactl) with php script [on hold]

my problem is, that the following php script doesn't work properly, when opened on my website: <?php exec("sudo -u pi pactl set-sink-volume 0 50%"); echo exec('whoami'); ?> When I execute the ...
0
votes
0answers
9 views

AWS ec2 linux folder/files access [closed]

Server has www apache groups. All users has just www added to them. We have folders just for apache user -rw-rw-r-- 1 apache apache 7662 Jun 13 10:34 github-webhook.php -rw-rw-r-- 1 apache ...
-4
votes
0answers
17 views

How to install Apache, Mariadb, PHP and phpMyAdmin on CentOS 6.10? [closed]

What partition should I create for my server with 4GB of RAM, 2TB HDD to install programming language / tools / product / server program as follows: -> CentOS 6.10 -> Apache: v2.4.37 -> PHP: v5.6....
-1
votes
1answer
48 views

Installation conflicts with httpd on Amazon Linux AMI

When installing 'yum install -y php70 mysql56-server php70-mysqlnd' on an Amazon Linux AMI server, I'm receiving these conflicts: Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1....
0
votes
0answers
12 views

Apache2 blank php pages on user directory but not in main directory

i'm making some tests on a fresh Trisquel installation, and i don't know what i'm doing wrong but the thing is this, i installed LAMP+phpmyadmin, i wrote a test.php on /var/www/html/ and it worked but ...
-1
votes
0answers
16 views

Install/compile PHP module from source into home directory [closed]

On my shared hosting (according to /proc/version it's cloudlinux), the other day, I've installed a Guile Scheme interpreter (I don't have ssh, but I have a browser shell installed that execute ...
0
votes
1answer
23 views

httpd hogging all memory until server crash

The server in question is used for processing data into reports, it has three cron jobs which execute every minute to check the process queue and if anything is found they'll keep running until the ...
-1
votes
0answers
16 views

How to add a rewrite rules in apache server

I want to deploy a three different URL. The problem is while I am trying to access a careers.example-study.com it is automatically rerouted to example-study.com webpage. The details which i have a ...
0
votes
1answer
22 views

Lightweight application to send files via browser with http

I have a server allowing traffic only on port 80 and 443. I need to upload a file to said server. Isn't there any application allowing me to upload a file to a server folder via browser?I have apache ...
0
votes
0answers
56 views

Why is SSL enabled and HTTP disabled on Apache? [duplicate]

#nmap localhost 22/tcp open ssh 80/tcp open http 443/tcp open https #more /etc/apache2/ports.conf Listen 80 Listen 443 #netstat -an|grep 80 tcp6 0 0 :::80 :::* ...
0
votes
0answers
42 views

LetsEncrypt Error: “likely firewall problem”

I have been regularly renewing my SSL certificate before expiry by using these commands: cd / sudo wget https://dl.eff.org/certbot-auto sudo chmod a+x certbot-auto sudo ./certbot-auto --debug -v --...
1
vote
0answers
27 views

request.getRemoteHost() returns IP address instead of FQDN

I am designing a servlet in which I would like to determine the fully qualified domain name (FQDN) of the client. I am attempting to use javax.servlet.HttpServletRequest.getRemoteHost() in order to ...
0
votes
1answer
16 views

How to deny access from just one host in a domain

In apache 2.4.6, I would like to deny access to an entire domain, except for one (or maybe more) specific hosts (and the rest of the world). sort of like: Require not host xxx.com ## nobody from ...
0
votes
0answers
31 views

How to issue print to a network printer from a Docker container on Openshift Container Platform?

We need to configure a list of network printers on httpd:2.4 based docker image so that we can issue print commands to network printers that are configured. I was able to configure the printers in ...
0
votes
1answer
38 views

How to install old apache version on Debian 8

Main issue is the new Apache breaks a few things on my webserver. I even tried using HttpProtocolOptions unsafe in apache2.conf but it didn't work as desired. The only way out for me is use old ...
1
vote
0answers
15 views

Apache2 000-Default VHost won't be choosen by a Request [closed]

I have a Linux server with Debian GNU/Linux 9 (stretch) and Apache/2.4.25 (Debian) installed. I wanna host multiple websites on my server. For example one main wesbites and 2-3 smaller websites for ...
0
votes
0answers
19 views

Cannot load modules/mod_evasive24.so into server: /etc/httpd/modules/mod_evasive24.so: file too short error

I've been trying to configure mod_evasive on my apache server but it can't load the mod_evasive module which results the apache server to not get started mod_evasive.conf file LoadModule ...
1
vote
1answer
56 views

mod_authnz_ldap - using AuthLDAPInitialBindAsUser encountering obscure “internal error”

On RHEL 7.4, Apache/2.4.6 using mod_authnz_ldap.so and AuthLDAPInitialBindAsUser config. The configuration is to do LDAP authentication by binding as the user logging on. When the user is prompted ...
0
votes
1answer
27 views

Restart Apache in a version agnostic way

I use latest Ubuntu 18.04 LAMP but might as well use Debian LAMP or CentOS or something else common. To restart Apache2 I do: systemctl restart apache2 But say "tomorrow" this changes the apache2 ...
1
vote
0answers
61 views

Systemctl httpd.service file changed on disk

When start httpd with systemctl, I get the error: Warning: The unit file, source configuration file or drop-ins of httpd.service changed on disk. Run 'systemctl daemon-reload' to reload units. I run ...
0
votes
1answer
17 views

UFW not opening ports on Fedora

I'm using UFW on Fedora Server 28 and when I allow port 80 and make sure that apache is running, no server pops up in my browser. I'm doing this via ssh, so I know the device is connected. Using nmap ...
0
votes
0answers
26 views

Apache Http Alias name different from serving directory

I am encountering a problem when i try to use different Alias name from its serving directory. For example: I have an Alias 'ABC' which points to a deployment directory named 'DEF'. It does not work, ...
0
votes
1answer
53 views

How do I install Apache as a “service unit”?

I wanted to run Apache as a service so it will start on bootup, so I tried: sudo systemctl start apache2.service but got the error: Failed to start apache2.service: Unit apache2.service not found....
0
votes
0answers
10 views

SetEnvIf variable scope

does setting an variable with the SetEnvIf directive applies to the whole server or just the given <Location></Location>where it is being placed?
1
vote
1answer
29 views

reason of using Location and Directory for the same objects in Apache

as per my understanding in Apache Directory directives refer to file system objects , Location refer to element in the request URI. So if the URI matches the objects in file system, why to use ...
-1
votes
1answer
52 views

Linux Repository Error

I created a network repository for the hosts that hasn't got internet connection.So the environment has 1 repo server and 1 client. (It's in the test stage so both host can go to internet). I did make ...
0
votes
0answers
21 views

Apache CGI and variables [duplicate]

Who is responsible to passing information from a client request to CGI variables (Apache?). We use IBM Tivoli Access Manager and it basically pre-authenticates all users and sets a variable in the ...
1
vote
0answers
15 views

Why Apache mod_speling redirects lose cookie? [closed]

rhel6, apache 2.4 with mod_speling enabled Content migrated from IIS env riddled with case issues. mod_speling is working great but I found that on every 301 redirect the cookie is lost and ...
0
votes
0answers
39 views

Why can't I start my apache2 server?

I'm using raspberrypi as my server. When I run sudo service apache2 start the following error pops up. sh: 0: getcwd() failed: No such file or directory Job for apache2.service failed because the ...
0
votes
0answers
9 views

Apache deploy gitweb in a subdirectory within document_root

I'm trying to deploy gitweb inside a sub directory of DocumentRoot in Centos 7 Apache but unable to do so. Initially, to test things out, I started with this top level httpd config to verify if ...
0
votes
1answer
35 views

Apache version viewer command httpd -v is not working

/opt/rh/httpd24/root/usr/sbin/httpd -v command is working on my server but httpd -v is not working. it says command not found. How can i fix this so that httpd -v show me the apache version.
1
vote
2answers
91 views

Using Ansible inside Bash

I use Ubuntu 18.04 with Ansible installed this way: apt-get update -y install software-properties-common apt-add-repository ppa:ansible/ansible apt install ansible I also have a small Bash script I ...
1
vote
1answer
214 views

Unable to install Let's Encrypt certificate on CentOS 7

I am trying to install a Let's Encrypt SSL certificate to my website using Securing Apache with Let's Encrypt on CentOS 7. My web server is (include version): Apache (cPanel) My hosting provider is: ...
1
vote
1answer
64 views

PHP Not Loaded on CentOS 7/Apache

I've installed PHP 7.2.11 on my CentOS 7 VPS along with Apache; however, I can't seem to load the PHP module into Apache so that my server can serve PHP content. Right now, if I go to a URL that ...
0
votes
1answer
35 views

Building Apache 2.2 from source on CentOS

My Question Does anyone have a link to a proper source package of Apache 2.2 for CentOS, and if so are there any special instructions I'm missing ? Summary I am trying to install Apache 2.2 on a ...
0
votes
0answers
13 views

apache does not see my folder

I'm trying to configure a wordpress website on a CentOS 7 + CWP Virtual Machine. I copied my site files to /home/ieorgbr/public_html/site, and configured Apache with the following, in httpd.conf: <...
1
vote
1answer
64 views

set php-fpm user and group to website's owner

I have a centos 6 server which using apache to connect php-fpm to run php site, i use user's home directory for the website root, for example /home/user1, . On the other hand, the php-fpm www.conf, ...
1
vote
0answers
22 views

Mounted CIFS directory by web shell not visible in the system shell

I use PHP shell_exec to run the command echo password | sudo -S mount.cifs //192.168.1.15/Share /share -o username=root,password=password HTTPD user is granted sudo-pivilege, the command ran ...
0
votes
0answers
9 views

htdbm command error “error opening database ”database name“ - DSO load failed” on fedora 28

so I'm trying to create a database for users and their passwords to access the Prive2 directory (located at bottom of the httpd.conf) with the htdbm command but it returns an error. The httpd.conf ...
0
votes
1answer
11 views

Unset specific value of header in the apache

My curl showing me header: Vary: X-Forwarded-For,User-agent,Accept-Encoding I want to remove the value "X-Forwarded-For". The option in apache "Header unset Vary" remove my Vary header with all ...
3
votes
0answers
24 views

Authentication of users via HTTPd with certificates and two CAs

I would like to implement an internal site for our company, with certificate authentication used wherever possible. I have run into (and tried) various examples where one creates their own self-signed ...
0
votes
1answer
33 views

RHEL Apache Test Page shown on navigation to EC2 IP address

I have a Django app that runs on 8080, apachectl configtest shows no errors and python manage.py runserver runs it without any errors. However the regardless of whether the app is running or not, the ...
1
vote
2answers
121 views

Connection errors on Apache httpd proxy, but only for some vhost

I set up an Apache v2.4 reverse proxy on a CentOS 7 machine, serving requests to several vhosts; amongst these there are Atlassian application servers. The proxy's private IP address is 10.0.0.77, ...
1
vote
0answers
202 views

Subdomain of localhost is not working. Apache 2.4.25 (Debian) Server at subdomain.localhost Port 80

Apache 2.4.25 (Debian) Server at Port 80: Subdomain of localhost is not working localhost is working. localhost/site1 is also working. site1.localhost is not working Changed DocumentRoot from /var/...
0
votes
1answer
120 views

CentOS Server file permissions

I am starting to learn server management with a CentOS Virtual Machine. I am trying to make a simple website. Because the Apache default file is in /var/www it is hard to write/make/change files. ...
0
votes
1answer
269 views

Apache httpd reverse proxy returns SSL_ERROR_RX_RECORD_TOO_LONG when HTTP redirects to HTTPS

I am setting up an Apache v2.4 httpd reverse proxy for another server hosting Atlassian Confluence. The proxy's private IP address is 10.0.0.77, its public IP address is 77.77.77.77, and a DNS A ...