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
14
votes
1 answer

NodeJS much slower than PHP?

I run a tiny scale web server under Apache + PHP + MySQL at the moment and would like to explore the option of using NodeJS instead. The server literally does two things: Serve some static files (HTML/CSS/image resources etc) Query the database…
CLDev
  • 1,467
  • 1
  • 15
  • 19
14
votes
1 answer

Why is RewriteCond %{REQUEST_FILENAME} !-d mandatory?

Why does this .htaccess work when accessing example.com/mywebsite/ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php whereas this fails (404): RewriteEngine On RewriteRule ^(.*)$…
Basj
  • 41,386
  • 99
  • 383
  • 673
14
votes
3 answers

How to create subdomain in Laravel dynamically?

In my Windows/System32/drivers/etc/hosts, I have this: 127.0.0.1 localhost 127.0.0.1 site.dev 127.0.0.1 *.site.dev In my xampp/apache/conf/extra/httpd-vhost, I have this: DocumentRoot "C:/xampp_7/htdocs/" …
Vahn Marty
  • 1,428
  • 3
  • 14
  • 28
14
votes
2 answers

how to enable http2 on centos7

I have CENTOS7 server, with: Server version: Apache/2.4.6 (CentOS) . How can i enable/add HTTP/2 on these Apache ? I'm trying to send http2 requests from the client via Nghttp, but i get an error in the response (recv RST_STREAM frame ) as a…
Adam
  • 151
  • 1
  • 1
  • 4
14
votes
4 answers

HTTP2 support in MAMP Pro

Is there any way to enable HTTP2 support in MAMP Pro? I want to test and improve some of my local development websites with HTTP2 support. I've been searching for a while now, but haven't found a single solution.
Marco Peters
  • 143
  • 1
  • 6
14
votes
3 answers

Apache 2.4 Error: FCGI: attempt to connect to Unix domain socket /run/php/php7.0-fpm.sock (*) failed

I have updated my working Froxlor installation to PHP 7. All my customer-sites work perfectly fine (with PHP 7 via FPM). The only problem is, that if I want to access the Froxlor Backend, I get an Erorr 503. The apache Error-Log says: `[Tue Oct…
Mlr
  • 153
  • 1
  • 1
  • 5
14
votes
2 answers

Virtual hosts not working with install of macOS Sierra

I recently updated my work machine to macOS Sierra and now none of my virtual host configurations are working. I need to reconfigure all of these which is a huge pain. I am wondering - is it normal for this to happen? Is there a way to prevent this…
Liz
  • 1,008
  • 5
  • 19
  • 49
14
votes
1 answer

Close response under mod_perl 2

I'm trying to find out if there's a way to complete a response under mod_perl 2 without returning to the main handler. Haven't been able to find a method for that in the docs so far. The following is an example of what I'm trying to…
Francisco Zarabozo
  • 3,676
  • 2
  • 28
  • 54
14
votes
6 answers

Which Apache2 modules can I safely disable?

These are my enabled mods: alias auth_basic authz_default authz_groupfile authz_host authz_user autoindex deflate dir env mime negotiation php5 reqtimeout rewrite setenvif status I'm attempting to reduce Apache's memory footprint as much as…
gregghz
  • 3,925
  • 7
  • 40
  • 69
14
votes
3 answers

Rewriterule .htaccess in subfolder

I need to perform a rewrite in a subfolder using the .htaccess file. The current url has a form like: domain.com/subfolder/chapter.php?urlkey=name It needs to be rewritten to: domain.com/subfolder/chapter/name In the subfolder I have a .htaccess…
Nijn
  • 388
  • 6
  • 22
14
votes
10 answers

JMeter unknown arg ?t

I'm trying to run JMeter in non-gui mode (from the command line). I've seen in a number of places, including the official docs, that this following command will do what I want: jmeter -n –t test.jmx -l testresults.jtl However, I get an illegal…
dahui
  • 2,128
  • 2
  • 21
  • 40
14
votes
8 answers

Proxy websocket wss:// to ws:// apache

I couldn't connect my websocket using wss://. I found that there is a way to use Apache to expose wss://domain.com - frontend (Apache) ws://domain.com:9090 - backend plaintext My configuration: ProxyPass /websocket…
Sam Rad
  • 451
  • 2
  • 5
  • 13
14
votes
5 answers

Curl error : No route to host

So we're building a web application in PHP and we're trying to make requests to an external API. Problem is that we're getting a curl error: cURL error 7: Failed to connect to external.api.com port 443: No route to host A little bit of background…
Mihkel Allorg
  • 929
  • 1
  • 8
  • 26
14
votes
1 answer

How to implement http2 without ssl in Apache 2.4.18 Server

I have made a website with HTTP/2 Protocol which is running on Apache 2.4.18 HTTP Server. Currently I have made the website is SSL Enabled because I read somewhere that HTTP/2 by default requires SSL. I may not require to make my website secure, so…
Dhumil Agarwal
  • 856
  • 2
  • 11
  • 19
14
votes
11 answers

header('location: ..') not working

(1)I'm in the process of uploading my website to a remote web server. (2)The site's template system is set up in a way that all of the pages are formed by sending url-encoded get requests to index.php (3)Loading up the initial page works. This page…
Fortisimo
  • 1,012
  • 2
  • 11
  • 26