Questions tagged [apache]

Use this tag (along with an appropriate programming-language tag) for programming questions relating to the Apache HTTP Server. Do not use this tag for questions about other Apache Foundation products. Note that server configuration questions are usually a better fit on https://serverfault.com

Apache web server can be quickly and easily installed for development tasks, especially those related to PHP, Perl, and MySQL, using some packages such as XAMPP.

Note that, by historical convention, the term "Apache" is used to refer to the Apache Server Project (httpd), with which the tag is associated. This point must be clarified because the Apache Server Project is just one of over 350 open-source projects and initiatives provided by the Apache Software Foundation (also sometimes referred to simply as "Apache".)

Use the tag only for programming questions relating to the Apache HTTP Server. Note that server configuration questions may be a better fit on Server Fault.

Latest stable version

Resources

Related tags

,

92396 questions
120
votes
2 answers

Adding a user on .htpasswd

I am using .htpasswd to password protect certain directory on my server. However, I noticed that everytime I do this sudo htpasswd -c /etc/apache2/.htpasswd newuser my current contents of .htpasswd will be overwritten. Every directory of my site has…
fishcracker
  • 2,401
  • 5
  • 23
  • 28
119
votes
6 answers

Error in exception handler. - Laravel

It's a Laravel-install related question. I have a public-facing Unix server setup: ServerAdmin webmaster@mydomain.org DocumentRoot "/var/www/mydomain" ServerName mydomain.org ServerAlias www.mydomain.org ErrorLog…
cookie
  • 2,546
  • 7
  • 29
  • 55
118
votes
8 answers

Hidden features of mod_rewrite

There seem to be a decent number of mod_rewrite threads floating around lately with a bit of confusion over how certain aspects of it work. As a result I've compiled a few notes on common functionality, and perhaps a few annoying nuances. What other…
Owen
  • 82,995
  • 21
  • 120
  • 115
118
votes
6 answers

What is mod_php?

While going through a Zend tutorial, I came across the following statement: Note that the php_flag settings in .htaccess only work if you are using mod_php. Can someone explain what that means?
SpikETidE
  • 6,711
  • 15
  • 46
  • 62
116
votes
32 answers

Laravel: PDOException: could not find driver

I am developing a website on a server I only have access to MySQL and FTP, so all commands I run are through the b374k php shell . I am experiencing a Laravel problem with SQL driver. I tried switching to file-hosted SQLite (in…
artus90
  • 1,340
  • 2
  • 8
  • 8
113
votes
3 answers

apache to tomcat: mod_jk vs mod_proxy

What are the advantages and disadvantages of using mod_jk and mod_proxy for fronting a tomcat instance with apache? I've been using mod_jk in production for years but I've heard that it's "the old way" of fronting tomcat. Should I consider changing?…
cherouvim
  • 31,725
  • 15
  • 104
  • 153
112
votes
3 answers

"[notice] child pid XXXX exit signal Segmentation fault (11)" in apache error.log

I am using Apache/PHP/MySQL stack. Using as framework CakePHP. Every now and then I get a blank white page. I can't debug it through Cake, so I peek in the apache error.log and here's what I get: [Wed Oct 12 15:27:23 2011] [notice] child pid 3580…
mgPePe
  • 5,677
  • 12
  • 52
  • 85
112
votes
5 answers

Vagrant's port forwarding not working

I'm running into a small problem at the end of the Getting Started guide for vagrant. I'm working on a CentOS basebox that has Apache2 running (provisioning via Puppet). I've set up port forwarding for web requests using the following line in…
Hank Gay
  • 70,339
  • 36
  • 160
  • 222
112
votes
5 answers

Windows: XAMPP vs WampServer vs EasyPHP vs alternative

There was a similar question asked here three years ago, but I want to open it up further to include all possible Windows/Apache/MySQL/PHP stacks. Which to do you think is best? XAMPP seems to be the most popular, but I've read several bad things…
Chuck Le Butt
  • 47,570
  • 62
  • 203
  • 289
111
votes
2 answers

How do you increase the max number of concurrent connections in Apache?

What httpd conf settings do I need to change to increase the max number of concurrent connections for Apache? NOTE: I turned off KeepAlive since this is mainly an API server. # # KeepAlive: Whether or not to allow persistent connections (more than #…
JonnyJon
  • 1,215
  • 2
  • 9
  • 6
110
votes
10 answers

how to configuring a xampp web server for different root directory

The web directory is the home of all of your application's public and static files. Including images, stylesheets and JavaScript files. It is also where the front controllers live. So the question is when i install and set up xampp my web directory…
vardius
  • 6,326
  • 8
  • 52
  • 97
110
votes
27 answers

Apache is downloading php files instead of displaying them

OS and server information: CentOS 6.4 (Final) Apache 2.2.15 PHP 5.5.1 I previously had php 5.3.x installed but decided to upgrade. I first uninstalled the php 5.3.x and then installed php 5.5.1 but after the installation completed apache did not…
Anthony Gainor
  • 1,149
  • 2
  • 10
  • 9
106
votes
2 answers

Why do HTTP servers forbid underscores in HTTP header names

I had a problem with a custom HTTP SESSION_ID header not being transfered by nginx proxy. I was told that underscores are prohibited according to the HTTP RFC. Searching, I found that most servers like Apache or nginx define them as illegal in…
white
  • 1,823
  • 2
  • 12
  • 20
105
votes
14 answers

Apache won't follow symlinks (403 Forbidden)

I'm having some trouble setting up Apache on Ubuntu. I've been following this guide. # /usr/sbin/apache2 -v Server version: Apache/2.2.17 (Ubuntu) Server built: Feb 22 2011 18:33:02 My public directory, /var/www, can successfully serve up and…
Tim
  • 6,079
  • 8
  • 35
  • 41
105
votes
14 answers

Where does PHP's error log reside in XAMPP?

I've been using XAMPP for Windows. Where does PHP's error log reside in XAMPP?
Emanuil Rusev
  • 34,563
  • 55
  • 137
  • 201