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
172
votes
11 answers

Do I need to convert .CER to .CRT for Apache SSL certificates? If so, how?

I need to setup an Apache 2 server with SSL. I have my *.key file, but all the documentation I've found online, *.crt files are specified, and my CA only provided me with a *.cer file. Are *.cer files the same as *.crt? If not, how can I convert CER…
M.N
  • 10,899
  • 13
  • 47
  • 49
172
votes
22 answers

Why would $_FILES be empty when uploading files to PHP?

I have WampServer 2 installed on my Windows 7 computer. I'm using Apache 2.2.11 and PHP 5.2.11. When I attempt to upload any file from a form, it seems to upload, but in PHP, the $_FILES array is empty. There is no file in the c:\wamp\tmp folder. I…
elmonty
  • 2,395
  • 3
  • 20
  • 28
165
votes
21 answers

Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

The problem is in the question. I've done a thorough investigation for solutions in regards to this and I know there are topics to this and I've followed them too and nothing has worked. That being said I'll list out exactly everything I've done so…
John M
  • 1,813
  • 3
  • 15
  • 12
163
votes
43 answers

Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error

For the past two months, I have been receiving the following error on Chrome's developer console: net::ERR_INCOMPLETE_CHUNKED_ENCODING Symptoms: Pages not loading. Truncated CSS and JS files. Pages hanging. Server environment: Apache…
Wayne Whitty
  • 19,513
  • 7
  • 44
  • 66
161
votes
5 answers

Reference: mod_rewrite, URL rewriting and "pretty links" explained

"Pretty links" is an often requested topic, but it is rarely fully explained. mod_rewrite is one way to make "pretty links", but it's complex and its syntax is very terse, hard to grok, and the documentation assumes a certain level of proficiency in…
deceze
  • 510,633
  • 85
  • 743
  • 889
159
votes
2 answers

What exactly is a pre-fork web server model?

I want to know what exactly it means when a web server describes itself as a pre-fork web server. I have a few examples such as unicorn for ruby and gunicorn for python. More specifically, these are the questions: What problem does this model…
Hery
  • 7,443
  • 9
  • 36
  • 41
157
votes
6 answers

How to prevent browser page caching in Rails

Ubuntu → Apache → Phusion Passenger → Rails 2.3. The main part of my site reacts to your clicks. So, if you click on a link, it will send you on to the destination, and instantly regenerate your page. But, if you hit the back button, you don't see…
Jason Butler
  • 5,619
  • 3
  • 22
  • 18
157
votes
8 answers

Error during SSL Handshake with remote server

I have Apache2 (listening on 443) and a web app running on Tomcat7 (listening on 8443) on Ubuntu. I set apache2 as reverse proxy so that I access the web app through port 443 instead of 8443. Besides, I need to have SSL communication not only…
user2791481
  • 1,671
  • 2
  • 12
  • 4
155
votes
5 answers

How Python web frameworks, WSGI and CGI fit together

I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in .htaccess: Options +ExecCGI AddType text/html py AddHandler cgi-script .py Now, whenever I look up web…
Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412
155
votes
13 answers

.htaccess ErrorDocument 404 not showing up

I have a server from AWS EC2 service running on Linux ubuntu and I have installed apache, php, and mysql. I have added a .htaccess file in my document root /var/www/html. I entered this code in it: ErrorDocument 404 /var/www/html/404.php and it is…
Shalin Shah
  • 8,145
  • 6
  • 31
  • 44
154
votes
5 answers

Can I Replace Apache with Node.js?

I have a website running on CentOS using the usual suspects (Apache, MySQL, and PHP). Since the time this website was originally launched, it has evolved quite a bit and now I'd like to do fancier things with it—namely real-time notifications. From…
Rick
  • 1,551
  • 2
  • 10
  • 4
154
votes
5 answers

How to prevent http file caching in Apache httpd (MAMP)

I am developing a single page Javascript application in MAMP. My JavaScript and HTML template files are getting cached between requests. Is there a simple way to indicate in MAMP that I want to prevent http file caching? Possibly with a .htaccess…
dmck
  • 7,801
  • 7
  • 43
  • 79
154
votes
9 answers

Apache: client denied by server configuration

I am getting [Tue Apr 24 12:12:55 2012] [error] [client 127.0.0.1] client denied by server configuration: /labs/Projects/Nebula/bin/ My directory structure looks like (I am using Symfony 2, should be similar structure for other web frameworks) I…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
153
votes
12 answers

Internal Error 500 Apache, but nothing in the logs?

I'm getting 500 Internal Server errors when I try to make an HTTP POST to a specific address in my app. I've looked into the server logs in the custom log directory specified in the virtual hosts file, but the error doesn't show up there so…
wcolbert
  • 1,980
  • 3
  • 19
  • 21
153
votes
7 answers

How to change XAMPP apache server port?

This is my Apache httpd.conf settings : Listen 8012 ServerName localhost:8012 Every time I start Apache via XAMPP I see this message: Status Check OK Busy… Apache Started [Port 80] Anybody, please help me can I change any other settings ?
Sathishkumar
  • 3,394
  • 4
  • 20
  • 23