Apache is the widely known term for the Apache HTTP server, a very commonly used web server software maintained by the Apache Software Foundation.
39
votes
5answers
102k 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 ...
33
votes
6answers
31k views
How do I start apache in OSX Mountain Lion?
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?
28
votes
5answers
29k views
How to check which apache modules are enabled/installed?
which is the most elegant way to check which apache modules are enabled?
27
votes
6answers
12k 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 ...
24
votes
4answers
6k 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 ...
14
votes
2answers
11k 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 ...
13
votes
2answers
38k 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 ...
10
votes
3answers
8k 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?
8
votes
3answers
7k 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 ...
7
votes
3answers
458 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
5k 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 ...
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 ...
7
votes
4answers
8k 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 ...
6
votes
7answers
26k 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 ...
6
votes
13answers
2k views
What is the best Apache, PHP setup for a Mac developer?
I'm a Web Developer who has just made the switch over to Mac. Despite all that I know and love about the Windows environment I find myself in a new mysterious place.
My question: what is the best ...
6
votes
8answers
27k 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
...
6
votes
2answers
8k views
How to Removing Apache Server From Http-Header?
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 ...
6
votes
2answers
458 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
2answers
13k 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 ...
5
votes
5answers
787 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
4k 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 ? ...
5
votes
5answers
432 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
5answers
339 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 ...
5
votes
1answer
436 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
4answers
2k views
Best practices for setting up LAMP development environment
I'm having a nightmare setting up a decent environment for developing Wordpress on a local machine.
I'm constantly manually tweaking file permissions every time I add a plugin.
I can't install ...
5
votes
7answers
1k 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, ...
5
votes
2answers
114 views
Apache error log question
I keep seeing the following error in Apache error log. Anyone has any idea what this is?
client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23):
/w00tw00t.at.ISC.SANS.DFind:)
5
votes
4answers
836 views
Apache directory permissions for a company intranet
I have a company intranet that I have recently migrated from Novell to Linux. I am trying to set up user permissions and I am losing my mind.
There are a couple dozen departments, each with a ...
4
votes
6answers
5k views
Install multiple PHP environments on OS X Snow Leopard
I just upgraded my MBP to Snow Leopard (OS X 10.6), which took PHP to 5.3
This is great, except I use my MBP as my development machine and I use a lot of PHP libs and frameworks (namely CakePHP 1.2) ...
4
votes
1answer
10k views
Apache Virtual Hosts on Mac OS X Lion
In /etc/apache2/extra/httpd-vhosts.conf, I have:
NameVirtualHost *:80
<VirtualHost *.80>
ServerName localhost
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>
...
4
votes
2answers
6k 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 ...
4
votes
2answers
3k views
What is “Apache Batik SVG DOM” and where do I find it? (Installing eUML in Eclipse)
I'm trying to install eUML in eclipse, but I get this error:
OK
Cannot complete the install because one or more required items could not be found.
Software currently installed: eUML2 Free Edition ...
4
votes
7answers
2k views
Apache doesn't start on Windows XP Professional SP3
I have XAMPP installed on my PC, and it works fine. Every service starts fine except Apache. I went to Services in Administrative Tools, and tried to start it from there, without success.
I tried ...
4
votes
1answer
3k 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 ...
4
votes
2answers
4k views
I've set up apache but 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 have no rights on /var/www/html.
How do I ...
4
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
...
4
votes
1answer
366 views
What's a good replacement for phpMyID? [closed]
I've been using phpMyID as my OpenID provider, but its author has announced that it's now deprecated. It doesn't support OpenID 2.0.
I don't like depending on a third-party OpenID provider. I want ...
4
votes
2answers
1k views
Uninstall Apache using make
I installed httpd using make. But i cant find any remove/uninstall method in README or INSTALL files. Also, i searched the http://apache.org docs. There also there is no mention of uninstalling using ...
4
votes
1answer
184 views
Making Apache use compiled PHP instead of bundled package on Debian
My ultimate goal is to install OwnCloud on my Debian box, a 64-bit squeeze.
My setup is pretty simple. I have installed OpenPanel which in turn installs all of the required LAMP modules via APT-GET. ...
4
votes
1answer
125 views
How do I set up a virtual host?
My router redirects port 80 to port 8080. My router works fine and my domain name is routed properly.
This is my virtual hosts file:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot ...
4
votes
1answer
3k views
VirtualBox Bridged Network Port Forwarding Issue
I currently have a development environment setup on a Windows 7 PC running Ubuntu 11.04 inside of a VirtualBox on the same box. I am using the "Bridged Network" option within VirtualBox, and inside ...
4
votes
1answer
91 views
I replaced http.conf in mountain lion and can no longer connect to localhost
I was trying to allow for my server to use the RewriteEngine in an .htaccess file so I went into /private/etc/apache2 and tried to edit the http.conf file, but did not have permission.
So I ...
4
votes
2answers
271 views
Is there a way to build my own “Portable” Windows AMP (Apache, MySQL, PHP) Stack?
I know there are things like XAMPP thats portable, but it does not use latest version of the software, can I build my own?
I prefer portable stuff as they don't require installs, won't be affected ...
4
votes
1answer
4k views
Installing PHP APC on Windows/Apache
i need help installing and configuring PHP APC i have downloaded from http://downloads.php.net/pierre/ in my PHP info, i see
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
so i downloaded ...
4
votes
3answers
402 views
Securing Apache server against slightly untrusted PHP code?
I have an unusual situation where I need multiple users to be able to upload and execute PHP code on my Apache server, but I cannot allow one user to access another user's PHP source (if concrete ...
3
votes
4answers
922 views
Why does apache write its own process ID in httpd.pid?
I am new to Apache and debugging issues caused by it. I have come to understand that when Apache starts up, it writes its own process ID in httpd.pid in a human-readable format as explained here.
I ...
3
votes
1answer
5k 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 ?
3
votes
1answer
2k 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 ...
3
votes
2answers
6k views
(13)Permission denied: make_sock: could not bind to address [::]:80, Mac OS Lion
I was trying to get passenger to work on my home computer and ran into this problem.
I get this error when I try to start Apache.
(13)Permission denied: make_sock: could not bind to address [::]:80
...
3
votes
5answers
1k views
Get Apache configure line
Is there any way to get the configure line that was used to build an Apache installation from source?
I compiled Apache 2.2.14 a while ago on Ubuntu and I can't remember the ./configure line I used ...