Postings by John Iliffe

Help with ProxyPass and ProxyPassReverse

I have a HTTP mail client running on port 7080 on the server that must be
proxied through Apache.

Using a workstation, I can enter:

<a href="" title=""></a>

and it brings up the mail client correctly.

I tried to use ProxyPass/ProxyPassReverse to move the mail client to run on
port 80 with the following configuration:

# Surgemail redirect to allow web based e-mail
<VirtualHost *:80>
ProxyPass "/" ""
ProxyPassReverse "/" ""
ProxyPassReverseCookieDomain "" ""

Getting PHP-FPM working

I'm not sure is this is the correct list to post these questions to, since
I now have things isolated to a single module in PHP-FPM, so please
redirect me if necessary.

Unstable PHP under Apache

I have a new Apache 2.4.25 installation that I have been trying to get
running properly for a few months now. After many attempts to run PHP
using php-fpm, I finally reverted to mod-fcgid and I still can't get
everything to run properly.

Calling a PHP script, when the php.ini file is syntactically correct, leads
to a "No Input File Specified" error.

File Not Found errors in mod_fcgid

I posted a work-around for Apache-2.4.25 with mod_fcgid running PHP 7.1.3
returning "File Not Found" errors when the php file was available on
Tuesday, 18 April.

Seems things aren't quite that simple!

The relevant line in the php-ini file is in display_errors and I suggested
changing it to 'On' which seems to allow the .php file to be read.

This works ONLY when the line is syntactically wrong!

Error in serving PHP pages from mod_fcgid

Having spent considerable time chasing this problem around over the last
few weeks (and a sincere thank you to Daniel for his assistance) here is
some information that might save some time for somebody!

Apache 2.4.25 compiled from source
PHP 7.1.3 compiled from source
mod_fcgid downloaded from Apache and compiled from source
Fedora 25, Apache started from systemctl

Couldn't find any configuration in the httpd.conf file that would allow either
php-fpm OR mod_fcgid to serve dynamic pages.

unable to execute php-fpm properly

I am converting my web pages from mod_php to php-fpm, following the
directions found at: <a href="" title=""></a> Testing to
date indicates that on this server all scripts work properly under mod_php.

Both of the following were tried within a <VirtualHost> container for the
default virtual host.

If I use the "simple" approach from the Wiki:

ProxyPass "/*.php/" "fcgi://" enablereuse=on

then the page SOURCE is displayed, PHP never executes. Adding a first line
of #! /path-to-php-executable doesn't accomplish anything.

Odd Date in http2 header

I just enabled http2 on our server and tested using curl. The test page is
a static html page with nothing but some random characters on it, and no
css or other secondary accesses.

The protocol line is set to allow http2
Protocols h2 h2c http/1.1

Everything seems to work with the exception of the date. The first file
following is the result of a curl head request BEFORE activating mod_http2
and the second one is after doing so.

What is preferred PHP interface?

Reading several sources there is conflicting information as to what is the
preferred way to implement PHP scripts.

Run Control for Apache in Fedora 25

First, I know this is probably not an Apache question, but I'm hoping that
someone on this list may have seen this problem before and knows the

I know this is going to be very long winded, my apologies in advance, but I
have done quite a bit of research so I have a good idea what won't work :-(


OS is Fedora 25

Fedora replaces service with systemctl control using service files for
starting and stopping daemons. This is a bit different than the traditional
init.d approach.

Unable to start apache-2.4.25; missing ssl module

I hate to re-ask a question that I have asked before (in 2012) but I have a
new version of Apache and the same problem again.

I compiled Apache-2.4.25 from source, and also openssl-1.0.2k.

Error nghttp2 version is too old

I am trying to compile Apache 2.4.25 on Fedora 25 Linux.

The current version of nghttp2 is installed:

To me, these would both seem to be greater than 1.2.1, but I am getting
this error from configure:

mod ssl

I am compiling Apache-2.4.9 from source with the new openssl 1.0.1g. So
far everything looks good EXCEPT that Apache won't start. After making a
number of tweaks to the configuration, I'm stuck.

module identification

Is there a command in Apache that lists the modules loaded with their
version numbers?

-M shows everything but without the version numbers.

-l does the same for modules that are compiled in.

I just updated to openssl 1.0.1g and I need to confirm that that is really
the version that is running.

Thanks for any help.


Is this an Apache config problem?

Every day I get a number of lines like the following in the Apache access
log. Note that the response code is 200, successful. The requested URL is
NOT on my web site.

Does this imply that I have actually created an open proxy or relay?


I have a mail server with an http interface that I proxy behind the Apache
2.4.2 web server.

How do you implement mod_fcgid?

I'm in the process of installing Apache 2.4.3 with fast-cgi on a new
server. In the past we used mod_php but reading this user group that seems
to be a bit deprecated so I want to use mod_fcgid in this implementation.

I obtained the download from:

<a href="" title=""></a>

and made it with apxs, and installed it as defined in the documentation into

Compilation error in Apache 2.4.3

I am trying to install Apache 2.4.3 on a new Red Hat Linux 6.3 machine
running on X86_64 hardware.

I installed OpenSSL version 1.0.1c and it seemed to install correctly.

Response code 408

This is a re-post; I didn't get an answer so I guess I didn't phrase the
original question very well.

We are getting a lot (about 2% of GET's) of response code 408.

Response code 408

I recently switched from Apache-2.2.14 to Apache-2.4.2. In the entire time
we ran 2.2.14 I don't recall seeing a response code 408. Since we switched
two weeks ago we average about 30 - 35 a day. Our server is not heavily

The RFC definition of response code 408 is "Request Timeout, the client did
not produce a request within the time the server was prepared to wait."

All of these 408's are arising from background (AJAX) requests in the
browser that are well known to be very short (16 bytes of data coded as an

Which parameter have I set to short?

PHP doesn't process pages

Apache-2.4.1, PHP 5.4.0 new installation.

PHP pages are being served as raw data, leading to a browser response "You
have chosen to download a file of type php; what should FireFox do with
this?" and an option to save or open with KWrite.

I asked this question before and it was suggested that I move PHP to be a
fast CGI module but after reading the PHP docs they strongly recommend that
you don't do that. Also recommended that I upgrade to Apache 2.4.2 but
unless that is the cause of the problem I don't want to get distracted.

Conversion 2.2.14 -> 2.4.1 still problems

After factoring in the suggestions from a number of folks here (thanks!) I
still have problems getting a working configuration.

Many pages depend on PHP and I upgraded PHP to version 5.4.0, compiled it
as an apxs module in conjunction with Apache 2.4.1 resulting in


and in the config file:

LoadModule php5_module modules/

<Filesmatch \.php$>
SetHandler application/x-httpd-php

These were actually inserted by the PHP make install function.

When I try to serve a PHP based page I get a browser message:

Apache 2.4.1 Installation problems

I am trying to update from 2.2.14 to 2.4.1 and have encountered two
problems. 2.2.14 has been working properly for over 2 years. Pages are
located on a separate directory starting at /www with subdirectories s1,
s2, etc for different named virtual hosts. Config file for EACH virtual host
shows document root as /www/s1, /www/s2, etc as relevant.


Automated Database Backups

Does anyone have a way to run pg_dump from cron in a way that doesn't
require someone to enter the password on every run? I get the following
error even when the backup user has read permissions on all application

The database that fails is part of the PostgreSQL kernel, not my
application data so I'm leery of tampering with permissions here.

The command line I am using is:

/usr/postgres-8.4.2/bin/pg_dump -f /notraid/dbbkup.`date +%Y%m%d` -F
custom -v -U xxxx dbxxxx

Thanks in advance.