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
4 answers

Permission denied despite appropriate permissions using PHP

I'm trying to read a file in PHP and I'm getting a permission denied error although everybody has read access to the file. The PHP code: $config=file_get_contents('/opt/jenkins/home/config.xml'); The error: Warning:…
Max
  • 12,794
  • 30
  • 90
  • 142
14
votes
3 answers

On using ini_set('max_execution_time', 0);

How do I use ini_set('max_execution_time', 0);? Question 1: Do I place it at the top of the .PHP file or in a function that takes a long time to do something? Question 2: Does this setting last forever after being set? Or does it return back to its…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
14
votes
2 answers

Http Live Streaming with the Apache web server

Is it possible to do HLS with an Apache web server? Would it be enough to "put here the playlist with data chunks"? Is it that simple? Or is there some module, which can be used for that purpose? Thanks a lot for the reply
STeN
  • 6,262
  • 22
  • 80
  • 125
14
votes
6 answers

Failed to start The Apache HTTP Server on ubuntu 18.04

I am trying to create a web server on my ubuntu 18.04 so i installed Apache2 but i can't start it. Here's what appeared when i run the systemctl status apache2.service command apache2.service - The Apache HTTP Server Loaded: loaded…
moe_
  • 219
  • 2
  • 3
  • 15
14
votes
2 answers

PHP getallheaders alternative

I am trying to switch from apache to nginx on my server. The only problem here is the getallheaders() function I used in my PHP scripts which does not work with Nginx. I have tried the user contributed notes on php site on getallheaders finction but…
adityap
  • 729
  • 4
  • 8
  • 19
14
votes
1 answer

IP restriction with htaccess

I want to restrict an entire site in such a way that just two IPs could enter the site. I have the following in my .htaccess (at the root of site): ErrorDocument 403 http://www.example.com/views/error403.html Order Deny,Allow Deny from all Allow…
ARemesal
  • 2,923
  • 5
  • 24
  • 23
14
votes
2 answers

RuntimeError at / cannot cache function '__shear_dense': no locator available for file '/home/...site-packages/librosa/util/utils.py'

I am trying to host django application with apache2. But getting the following error. RuntimeError at / cannot cache function '__shear_dense': no locator available for file…
Akash Pushkar
  • 313
  • 2
  • 9
14
votes
4 answers

Is Apache Tomcat built on Apache Web Server platform?

Recently our Software Analytic provider (NETTRACKER) sent us a plugin in order to be able to capture visitors in a better way. This plugin is for Apache 1.x and Apache 2.x. They said and I quote that since Apache Tomcat is built on Apache HTTP…
Geo
  • 8,663
  • 13
  • 63
  • 93
14
votes
2 answers

Apache's ErrorDocument directive does not redirect

I have a bunch of ErrorDocument directives in my .htaccess file in order to catch almost all the possible errors Apache can throw at a user, and to redirect said user to my error controller which would then render the error in a more user friendly…
Swader
  • 11,387
  • 14
  • 50
  • 84
14
votes
2 answers

Handling X-FORWARDED-PROTO header in Java web application

Can any one guide me in working with X-FORWARDED-PROTO header in Java web application deployed to Apache Tomcat. The application setup is in such a way that tomcat talks with Apache webserver, which in turn talks with Cisco Load Balancer, finally…
Manoj
  • 141
  • 1
  • 1
  • 5
14
votes
2 answers

.htaccess config with symbolic links and index files not working as expected

Like a lot of web developers, I like to use .htaccess to direct all traffic to a domain through a single point of entry when the request isn't for a file that exists in the publicly served directory. So something like this: RewriteEngine On # enable…
poolnoodl
  • 413
  • 1
  • 4
  • 10
14
votes
7 answers

net::ERR_CONNECTION_RESET when large file takes longer than a minute

I have a multipart file upload in a form with a php backend. I've set max_execution_time and max_input_time in php.ini to 180 and confirmed on the file upload that these values are set and set TimeOut 180 in Apache. I've also set RewriteRule .* -…
Rudiger
  • 6,749
  • 13
  • 51
  • 102
14
votes
6 answers

How do I determine the user Apache is run as?

How to check what is Apache user? I need to give read write permission to it, for some directories in my web root and outside of thee web root directory, how can i do that? Since I dont have proper idea of what Apache user is, I cannot answer my…
tecman
  • 615
  • 4
  • 7
  • 13
14
votes
2 answers

Why can't I get Apache's CustomLog directive to work?

I'm trying to use Apache's CustomLog directive to create some custom log files, but can't get it working. Here is the configuration I'm using for the custom logs: LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U"…
NullTerminator
14
votes
9 answers

apache solr as a service hosting

are you aware of the best companies which provide apache solr AS A SERVICE? where i can simply upload (or edit via some web control panel) my index and config files for SOLR and simply start using it i do not want to be breaking my head with any…
Raj
  • 6,810
  • 6
  • 48
  • 56