Apache is the widely known term for the Apache HTTP server, a very commonly used web server software maintained by the Apache Software Foundation.

learn more… | top users | synonyms (1)

109
votes
7answers
112k views

How to check which apache modules are enabled/installed?

which is the most elegant way to check which apache modules are enabled?
79
votes
6answers
193k 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 ...
58
votes
6answers
64k 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?
38
votes
6answers
26k 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 ...
31
votes
6answers
12k 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 ...
31
votes
4answers
110k 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 ...
23
votes
5answers
21k 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?
20
votes
1answer
21k 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 ...
17
votes
8answers
61k 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 ...
17
votes
2answers
2k 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 ...
14
votes
3answers
5k 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 ...
14
votes
1answer
6k 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, ...
13
votes
2answers
1k 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 ...
12
votes
7answers
43k 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 ...
11
votes
3answers
29k 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 ...
10
votes
2answers
20k 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 ...
10
votes
4answers
14k 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 ...
9
votes
1answer
27k 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 ...
8
votes
1answer
7k 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 ?
8
votes
2answers
4k 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 ...
8
votes
1answer
8k views

pcfg_openfile: unable to check htaccess file, ensure it is readable

After moving a website folder on my local development machine to another drive, then moving it back, I got a 403 error. Most of this problem had probably to do with rights that got messed up. After ...
8
votes
5answers
19k views

Get Windows localhost (port 80) to forward to port 8080 for Apache service

Recent Discovery With IIS set back to port 80, when I put in http://localhost/ on the WHS computer, it gives me the "There is a problem with this website's security certificate" warning page. If I ...
7
votes
2answers
12k 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 ...
7
votes
2answers
19k 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 ...
7
votes
4answers
17k views

Running Apache as a different user

When I run the ps -efH command to list out all the process, I can see Apache running as root and seems to have sub-processes running as www-data. Here's the excerpt: root 30117 1 0 09:10 ? ...
7
votes
3answers
1k views

How do I administer /var/www?

I'm new to Linux and I'm trying to setup a small testing server inside of a VM running Ubuntu Server. I've found the /var/www folder and it should be the one where my Apache documents are stored, in ...
7
votes
1answer
7k views

ubuntu - install subversion from source - missing APR

Because I need a bug fix which is not available in Ubuntu's repository version of subversion, I am installing it from source. On running ./configure, I get an error: configure: WARNING: APR not ...
7
votes
7answers
11k views

WWAHost.exe using same port as Apache

I have installed XAMPP 1.8.1. on my Windows 8 64bit machine. I'm now facing a problem with ports. This is what I got from XAMPP Control Panel: 11:52:43 AM [Apache] Problem detected! 11:52:43 ...
7
votes
1answer
1k views

How do I make Skype not use port 80?

I need this port for apache, how do I forbidden Skype from trying to use this port any more?
7
votes
4answers
1k views

Good Free Ubuntu Server VMWare Image Needed

Can anyone recommend a good, free Ubuntu Server VMWare Image (or Virtual Appliance, as they call them)? I have looked on the VMWare VAM and there are literally hundreds to choose from. I am looking ...
6
votes
4answers
27k 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 ...
6
votes
2answers
650 views

Why run apache under it's own user name?

By default apache runs under user nobody. Is there a reason I would want to change that? Does it make things more secure?
6
votes
1answer
11k views

Starting built in Apache server in Mac OS X 10.9 (Mavericks)

I'd like to start my apache server on my Mac running OS X (10.9) Mavericks. Here is what I did: Goto terminal sudo apachectl start The server started without problem. But I got the following problem ...
6
votes
2answers
3k views

How do I create a virtual host that works with both http and https?

This is how I have set up a virtual host: <VirtualHost mysite> <Directory "/Users/myusername/sitefolder"> Options +FollowSymlinks AllowOverride All Order Allow,Deny ...
6
votes
5answers
464 views

ports and what they do

I am curious as to what a port number does. Are there specific port numbers for specific things? I know there is port 80 and I heard of 8000 in passing. I don't know why they are called that and ...
6
votes
3answers
172 views

Set up a wireless server, allowing access to files on computer, without offering internet

I would like to pull into a truck stop and offer a folder of free documentaries, broadcasting from my bus. I have a bunch of videos in a web folder and can access it locally and would like others to ...
6
votes
4answers
615 views

Flash drive friendly (portable) XAMPP alternative?

I'm trying to setup a portable MediaWiki wiki on a flash drive using XAMPP portable as a server. http://lifehacker.com/354005/run-your-personal-wikipedia-from-a-usb-stick When I try to start apache ...
5
votes
5answers
969 views

Want to use apache, ISP blocking port 80

I am attempting to set up a small web server on my home network, but my ISP is blocking incoming port 80 ( and no, i'm not paying $50/month extra for them to unblock it). I am looking for some ways ...
5
votes
2answers
13k 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?
5
votes
1answer
7k views

Debian - Apache - User - Which chown?

I'm using Debian Wheezy. I've installed apache, php, mysql, the works. It works properly but for permissions that I need to set. so I have my sites in /var/www/mysite, and I'm struggling between the ...
5
votes
3answers
8k 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"; ...
5
votes
2answers
259 views

Cannot see index.php on localhost, Firefox prompts to open file in editor

I have a small index.php that I created by following a tutorial on the official PHP site but cannot see it on localhost. I formatted my drive, reinstalled Linux Mint, Apache2, PHP5 and MariaDB. No ...
5
votes
3answers
10k views

I've set up Apache, but I can't write to the '/var/www' folder

I've set up Fedora 14 with Apache, MySQL and PHP for my own homepage on a "server" (read: old hardware scrapped together). I'm logged in with my user, but I have no rights on /var/www/html. How do I ...
5
votes
5answers
979 views

How to recover file that is accidently removed in linux

I have accidentally removed my apache2 startup file /etc/init.d/apache2 using rm /etc/init.d/apache2 command. How can I get that back?
5
votes
1answer
7k views

Mac OS X 10.6.3: how does Apache config work?

Just got a MacBook Pro 15" so I'm unfamiliar with how the filesystem is laid out. I noticed when in my filesystem that I've got a few paths specifying httpd.conf: /etc/apache2/httpd.conf ...
5
votes
2answers
12k views

CentOS 6 - iptables preventing web access via port 80

I'm setting up a new web server with CentOS 6.2 and am not able to connect via the web. Everything looks set up correctly in httpd.conf and Apache is running, so I'm assuming it's an iptables issue. ...
5
votes
2answers
149 views

Blacklist IPs after certain paths requested with Apache2

I have noticed a lot of hackers trying to penetrate my system by making requests for certain paths on my webserver that don't resolve to anything. Examples: /config/pwtoken_get, ...
5
votes
1answer
3k views

How is Apache mapping files without extensions?

My local dev setup is mapping things like http://mydomain.dev/testhtmlpage to testhtmlpage.html and http://mydomain.dev/testphppage to testphppage.php. The browser stays on the orginally enter URL. ...
5
votes
1answer
751 views

What does <Directory /> entry mean in Apache2 default configuration

This is from file /etc/apache2/sites-enabled/000-default right after installing apache2 from repositories. DocumentRoot /var/www <Directory /> Options FollowSymLinks ...
5
votes
7answers
2k views

Password-protect a directory, but not that directory's files?

I was just wondering if it was possible to protect a directory with a username/password combination using .htaccess and .htpasswd files, but not protect the files within. i.e. One is able to link, ...