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.

ASF Logo

Apache is an HTTP server that has a large installation base within the UNIX & Linux community.

The server has already gone through several iterations, resulting in similar -- but not 100% compatible -- installations and configurations. Include the version of Apache in your question unless you are sure that it is irrelevant.

Apache ships with modern distributions, and extensions (e.g. 'mod_wsgi`) are available as separately installable packages.

Apache is one of many projects maintained by the Apache Software Foundation.

1740 questions
147
votes
6 answers

apache2 Invalid command 'SSLEngine'

When I restart httpd, I get the following error. What am I missing? [root@localhost ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: Syntax error on line 22 of…
Christian
  • 2,155
  • 3
  • 16
  • 14
87
votes
6 answers

How can I tell what version of apache I'm running?

I know about the phpinfo() way but is there any other way? I'm using CentOS and I can't find the httpd executable to run httpd -v.
tooshel
  • 1,441
  • 6
  • 16
  • 17
77
votes
8 answers

How to disable SSLv3 in Apache?

Everybody seems to be talking about the POODLE vulnerability today. And everybody recommends disabling SSLv3 in Apache using the following configuration directive: SSLProtocol All -SSLv2 -SSLv3 instead of the default SSLProtocol All -SSLv2 I've…
Bogdan Stăncescu
  • 911
  • 1
  • 6
  • 9
69
votes
5 answers

Where in Apache 2 do you set the ServerName directive globally?

NOTE: This is related to my question: "Apache 2.4 won't reload, any problem with my configuration?". I'm trying to test a local site, locally. As I understand Apache 2 (and perhaps Apache as well) has something called VirtualHost. My little bit of…
shirish
  • 11,967
  • 27
  • 107
  • 190
47
votes
4 answers

configure: error: C compiler cannot create executables

I am trying to upgrade apache 2.2.15 to 2.2.27. While running config.nice taken from apache2.2.15/build I am getting following error: checking whether the C compiler works... no configure: error: in `/home/vkuser/httpd-2.2.27/srclib/apr': configure:…
Vishal
  • 597
  • 1
  • 4
  • 8
45
votes
5 answers

httpd can't write to folder/file because of SELinux

Does anyone know which sebool it is to allow httpd write access to /home/user/html? When I disable SELinux echo 0 > /selinux/enforce I can write, so my problem is definitely related to SELinux. I just don't know which one is the right one without…
Christian
  • 2,155
  • 3
  • 16
  • 14
44
votes
2 answers

What user should apache and PHP be running as? What permissions should /var/www files have?

I just spun up an Ubuntu 11.10 box and then ran apt-get install apache2 php5 to install apache2 and PHP 5 on the box. Now it is functioning as a "web server" and it loads the "It Works!" page. Now I'm trying to tighten up security and I have the…
cwd
  • 44,479
  • 71
  • 146
  • 167
43
votes
12 answers

"Symbolic link not allowed or link target not accessible" / Apache on CentOS 6

I've got a brand new CentOS 6 installation, which has a symlink in the document root to my development files: [root@localhost html]# ls -l total 4 -rwxrwxrwx. 1 root root 0 Sep 18 20:16 index.html -rwxrwxrwx. 1 root root 17 Sep 18 20:16…
Billy ONeal
  • 1,090
  • 1
  • 8
  • 12
38
votes
4 answers

Apache2 does not run on IPv4 tcp port

I need run Apache2 on my Debian 7 server. But it run only on tcpv6 port, not on tcpv4 port. I installed it with apt-get install. If I go to localhost or 127.0.0.1 or my server IPv4 address it does not display any website. My…
Mato
  • 585
  • 3
  • 11
  • 22
37
votes
4 answers

Change Apache httpd "Server:" HTTP header

One of the HTTP headers that the Apache httpd sends back with response data is "Server". For example, my web server machine is relatively up-to-date Arch Linux. It sends back headers closely resembling the following: HTTP/1.1 404 Not Found Date:…
user732
35
votes
8 answers

Apache SSL: server cert does not include ID which matches server name

I'm trying to set up SSL on my apache2 webserver, but it seems that it does not work at all. I have followed a tutorial to create cert files with openssl and configured the /etc/apache2/sites-available/default-ssl.conf properly. Every time I try to…
pixelmusik
  • 611
  • 1
  • 6
  • 9
28
votes
2 answers

How to avoid apache reload when rotating logs?

I use logrotate to rotate Apache access-, error- and rewrite-logs. My config file looks like this: /apache/*log { compress dateext rotate 365 size=+300M olddir /log/old/apache notifempty missingok lastaction …
harp
  • 1,017
  • 2
  • 13
  • 16
20
votes
1 answer

Install Apache 2.4 on CentOS using yum

I need Apache 2.4 in CentOS because with Apache 2.2 mod_proxy_wstunnel is not possible. I have tried this, but unfortunately its for RHEL. After installing, I can't execute the Apache 2.4. Can anyone show me how to install a complete working Apache…
user11085
19
votes
3 answers

httpd memory usage

Having some problems with httpd (Apache/2.2.29) memory usage. Over time, memory usage in the httpd processes creep up until it's eventually at 100%. Last time I restarted httpd was about 24 hours ago. Output from free -m is: [ec2-user@www ~]$ free…
James Spittal
  • 547
  • 1
  • 5
  • 16
18
votes
4 answers

Certbot add www domain to existing domain certificate

I have installed an SSL certificate from Let's Encrypt with Certbot on my Apache server with Debian 8 following this tutorial from Let's Encrypt's own documentation: https://certbot.eff.org/#debianjessie-apache $ certbot --apache You need to…
Robbert
  • 303
  • 1
  • 2
  • 7
1
2 3
99 100