httpd is a typical process name of a web server.

learn more… | top users | synonyms

123
votes
2answers
49k views

How do I select which Apache MPM to use?

I'm a little confused between the different MPMs offered by Apache - 'worker', 'event', 'prefork', etc. What are the major differences between them, and how can I decide which one will be best for a ...
39
votes
2answers
20k views

How to fix 'logjam' vulnerability in Apache (httpd)

Recently, a new vulnerability in Diffie-Hellman, informally referred to as 'logjam' has been published, for which this page has been put together suggesting how to counter the vulnerability: We ...
33
votes
6answers
100k views

How to configure basic authentication in Apache httpd virtual hosts?

I'm trying to configure mercurial access using Apache http. It requires authentication. My /etc/apache2/sites-enabled/mercurial looks like this: NameVirtualHost *:8080 <VirtualHost *:8080> ...
27
votes
8answers
3k views

Deploying new code live

What's the best practise to deploy new code on a live (e-commerce) site? For now I have stopped apache for +/- 10 seconds when renaming directory public_html_new to public_html and old to ...
15
votes
4answers
3k views

Can you determine which Apache modules have been used and can be removed?

I, like many people, have a relatively out-of-the-box Apache installation with a lot of default "LoadModule" lines. Since the beginning, I've installed a lot of software, and to be honest, I don't ...
10
votes
2answers
6k views

HowTo redirect HTTP to HTTPS on the same httpd?

Here is what I have got: CentOS 5.4 (32-bit) installed Apache httpd (Server version: Apache/2.2.11 (Unix)) mod_rewrite already presents Question: how to redirect simple http://site.com to ...
9
votes
3answers
9k views

Apache CustomLog to log full URL

I'd like to add a CustomLog directive to my apache configuration to log the full URL requested (or at least the host portion of the URL). I have several domains being handled by the same instance of ...
8
votes
2answers
17k views

MaxClients in apache. How to know the size of my proccess?

From http://httpd.apache.org/docs/2.2/misc/perf-tuning.html The single biggest hardware issue affecting webserver performance is RAM. A webserver should never ever have to swap, as swapping ...
8
votes
1answer
3k views

Authenticate http requests EXCEPT for from this IP

I've got Nagios running on a server here (CentOS 5.3 w/ Apache 2.2.3-22.el5.centos) authenticating to my LDAP server, and all works well. However, I'd like to have some IP able to see the Nagios ...
7
votes
5answers
5k views

Apache uses 100% CPU. Can “ps” command tell me what it is doing?

I have a SLES 10 Linux server, and some times it is maxed out by Apache to 100% CPU. With ps ax can I see, that Apache have spawned ~50 Apache processes. Can e.g. the ps command tell me what each of ...
7
votes
1answer
2k views

How to run PhantomJS on CentOS with SELinux?

I'm trying to make a screenshot using PhantomJS on my CentOS 5 machine, but I can't get it to work together with SELinux. It works on an identical machine with SELinux disabled, so I really suspect ...
6
votes
6answers
6k views

Can RHEL 4 have two instances of apache httpd running using two different config files?

We have a Red Hat Enterprise Linux 4 instance running Apache on the default port. We want to add a second Apache instance that we can restart completely separate from the first instance. Can we do ...
6
votes
7answers
28k views

script to automatically test if a web site is available

I'm a lone web developer with my own Centos VPS hosting a few small web sites for my clients. Today I discovered my httpd service had stopped (for no apparent reason - but that's another thread). I ...
6
votes
2answers
6k views

How to test keep-alive is working on client end

What are some different ways/tools to verify that keep-alive is working on the server from the client's end?
6
votes
1answer
8k views

Disable modsecurity For a Specific Directory

How do you disable modsecurity for just a specific directory. I'm getting errors in phpMyAdmin that are caused by modsecurity tripping based on rules. I have the following files set up: # ...
6
votes
2answers
4k views

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. <VirtualHost _default_:*> #... ServerName host.example.com #... </VirtualHost> ...
6
votes
3answers
5k views

Running out of swap space on web servers, what to do?

I have 2 LAMP web servers that are routinely running out of swap space (see attached top screenshot). Apache's settings are as follows: <IfModule prefork.c> StartServers 64 ...
6
votes
3answers
1k views

How do I configure apache to accept a client ssl certificate (if present) or authenticate using ldap (if the cert is absent)?

I have an Apache server that serves up mercurial repositories and it currently authenticates using ldap credentials. I want to permit a single user (to start with) to use a SSL client certificate, ...
6
votes
4answers
4k views

SSL connection errors from Apache

I'm running a (self-signed) SSL cert site on Apache/2.2.14 on Ubuntu 10.04, but various browsers are giving errors on half the connection attempts. Just now saw this transient error from Chrome: ...
5
votes
2answers
5k views

Apache / httpd not starting automatically on boot

I have apache2 installed on Amazon Linux AMI release 2012.03. I'm able to start it manually just fine, without any errors using /etc/init.d/httpd start. However, it doesn't start automatically when ...
5
votes
3answers
2k views

Why do people put empty index.html files into web directories?

I see that quite often other people's web-site directories have empty html index files (1 file per dir). AFAIK - that's been done to prevent website users from seeing directory content - right? I ...
5
votes
1answer
11k views

why isn't laravel's php artisan serve server being accessible from the WWW on IIS

I have a laravel application running through the laravel artisan server: php artisan serve and it works just fine if I go on my localhost:8000.. Further, I added an inbound rule in the IIS server ...
5
votes
3answers
13k views

Is it possible to create Custom Error Log in Apache 2?

I'd like to prepend the vhost name in my ErrorLog and then pipe it into a program I wrote. Is it possible to write Custom Error log format as it is with Access log?
5
votes
2answers
7k views

Apache “httpd” process, utilizing all my servers memory

My small ec2 instance with 1.7 GB memory, running the Amazon AMI based off of CentOS, has an issue with Apache utilizing way too much memory than it should. If you take a look at the screenshot, the ...
5
votes
5answers
250 views

How should I deal with logs before they get to big?

I found out my disk was full today, and I freed up 10% just from deleting mostly logs from multiple websites. I, personally, like to keep logs as an archive, because I may need to look back on them ...
5
votes
1answer
693 views

/var/lib/mysql folder is missing

I've created a virtual machine and am installing things from scratch. Definitely not a sys admin so I'm running into some trouble. I've installed these packages and then restarted httpd yum -y ...
5
votes
2answers
877 views

How would I run two different web servers on the same server?

I know that you can't listen to the same port and IP using two different server processes, but apparently this is possible if you allocate a separate IP address to each. Is this the case? I'm ...
5
votes
4answers
7k views

Too many httpd processes running and CentOS server freeze

I am running a high traffic website on a Dedicated-Virtual 16GB RAM CentOS server hosted by Media Temple. Very often the server dies because of high CPU usage (%1500) When i check the running ...
5
votes
1answer
6k views

What is the maximum number of virtualhosts Apache can handle?

What is the maximum number of VirtualHosts Apache can handle on a single machine (I don't mean anything related to load, let's suppose it's irrelevant for the question). And we take only Apache ...
5
votes
5answers
6k views

httpd dead but subsys locked

I modified today max_execution_time in php.ini, when I restarted the server, I get this error : Stopping httpd: [FAILED] Starting httpd: (98)Address already ...
5
votes
1answer
536 views

Viewing complete computed Apache httpd configuration?

Is there a command / tool to generate the computed configuration that Apache httpd is using? I know I can manually go through the httpd.conf and other configuration files, but is there a standard tool ...
5
votes
1answer
973 views

How to allow Active Directory authenticated users use Nagios web interface?

I have put .htaccess files in the Nagios html root and CGI root directories, so in order to get access to the web interface, the users needs a valid Active Directory account. The problem I have is in ...
5
votes
2answers
799 views

apache/httpd responds slower under EL6.1 than EL5.6 (CentOS)

I've read through other threads on performance differences between RHEL 6 and RHEL 5, but none seem a tight match to mine. My issue manifests itself in slightly slower average response time (20ms) ...
5
votes
3answers
3k views

httpready problem on Apache httpd restart on FreeBSD?

I run Apache HTTPD 2.2 on my FreeBSD 7.2 webserver. I have enabled the httpready and dataready in my /boot/loader.conf, like this: accf_http_load="YES" accf_data_load="YES" That works great when ...
4
votes
4answers
13k views

CentOS Apache HTTPD Configuration (403 Forbidden)

This is what i have in my httpd.conf <VirtualHost *:80> ServerAdmin spero78@spero78.com ServerName mcmoddr.com ServerAlias www.mcmoddr.com DocumentRoot ...
4
votes
4answers
873 views

How to prevent bots from trying to guess a link on my site

My logwatch report which I installed recently shows me this: --------------------- httpd Begin ------------------------ 0.78 MB transferred in 5864 responses (1xx 0, 2xx 4900, 3xx 0, 4xx 964, 5xx 0) ...
4
votes
7answers
9k views

fastest web server for static, dynamic content?

I'm looking for the fastest http server available for: serving static content -- huge set of large images. Minimal features need, just as fast as possible. dispatching dynamic content plugins -- ...
4
votes
2answers
303 views

Do I have 2 different Apache installations on my VPS

I'm new to server maintenance, and am running Apache 2.4 on Ubuntu 14.10 on a VPS I just set up yesterday. It seems as if I have two different Apaches installed at different places in the machine due ...
4
votes
4answers
4k views

Apache httpd won't stop doing reverse DNS requests for clients' IPs

Obviously my Apache httpd instance is doing reverse DNS (RDNS, give me the hostname for this IP address) lookups for each incoming client connection's IP address. This is bad. Especially since ...
4
votes
3answers
180 views

Run both sshd and httpd SSL on port 443 [closed]

Is it possible by anyway (maybe with inetd) to make 443 port serve both as sshd and as httpd SSL? Perhaps by analysing the request, if request is "CONNECT", then let httpd handle the connection; if ...
4
votes
1answer
8k views

How to a2ensite and a2dissite?

I'm logged into a Linux server. I think it's a Red Hat distribution. The commands a2ensite and a2dissite are not available. In the /etc/httpd directory, I don't see any mention of sites-enabled or ...
4
votes
4answers
271 views

Who is 1014? I have no user on my system named 1014, so why is this httpd process run as 1014?

[root@home ~]# ps au | grep httpd 1014 9701 0.0 0.2 281620 3124 pts/24 Sl+ 18:41 0:00 ./bin/httpd -X root 9742 0.0 0.0 3084 720 pts/22 R+ 18:45 0:00 grep httpd By the ...
4
votes
1answer
254 views

restarting apache http server without interrupting http downloads

if I have large file downloads served with apache server, is there a way to restart/reload the http server(eg. with new httpd.conf update) without interrupting ongoing file downloads? or at least ...
4
votes
4answers
3k views

Apache: Automatic log splitting per Virtual Host?

Whenever we create new Virtual Hosts on our dev servers, we always have to manually specify separate access and error logs: ErrorLog logs/mysite/dev1-error.log CustomLog logs/mysite/dev1-access.log ...
4
votes
3answers
995 views

htaccess vrs httpd.conf?

Is it still true that you shouldn't use htaccess files if you can use httpd.conf? The Apache site says "In general, you should never use .htaccess files unless you don't have access to the main ...
4
votes
2answers
1k views

What is the impact of increasing the httpd process priority (negative nice)?

Renicing a process to a negative nice level increases the process's scheduling priority. High priority processes are run before low-priority processes. They are also allowed to run longer before being ...
4
votes
3answers
7k views

Failed to enable the 'dataready' Accept Filter

I'm not sure why, but I'm getting this warning when I start my apache... su-3.2# /usr/local/apache2/bin/apachectl start [Wed Sep 23 13:40:42 2009] [warn] (2)No such file or directory: Failed to ...
4
votes
1answer
1k views

How to SetEnv for an Alias

I have several Aliasses configured in apache configuration. I would like to set an environmental variables for each of them. How? I have this /alias1 /mapped/to/a/path /alias2 /mapped/to/a/path ...
4
votes
1answer
8k views

The connection was reset

I recently setup a subdomain on my clients web server. Here is the vhost setup: Listen *:80 #primary domain <VirtualHost *:80> # rails public folder DocumentRoot ...
4
votes
1answer
355 views

Apache shuts down unintentionally

I must say that I am not the guy that set up the server, but the poor sap tasked with finding out what is happening for the time being. I only have a rough knowledge about apache and linux, so ...