[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: [users@httpd] correct proxy_fcgi setup for phpmyadmin using Apache 2.4.10
From: Daryl King <allnatives.online () gmail ! com>
Date: 2015-08-28 14:26:18
Message-ID: CAP=VsLTjLAoFZVKK5-4mWS6=4ZDGVGRK1DvEtPgb0bbSiTXBFw () mail ! gmail ! com
[Download RAW message or body]
I'm using Apache 2.4.10 with PHP-FPM and mod_proxy_fcgi. Although I can
successfully use ProxyPassMatch for all php files under my web root
(including /phpmyadmin) using this:
"ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php5-fpm.sock|fcgi://
127.0.0.1:9000/website/public"
I found that I would consistently get this error in my Apache log:
[proxy_fcgi:error] AH01071: Got error 'Primary script unknown\n'
The only way to stop it was to use this instead:
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php5-fpm.sock|fcgi://localhost/"
</FilesMatch>
The only problem now is that the .php files in /phpmyadmin aren't
being proxied to PHP-FPM anymore and instead of a login box I get raw
php code.
I would like to continue using phpmyadmin but can't seem to get it
working again.
[Attachment #3 (text/html)]
<div dir="ltr"><div>I'm using Apache 2.4.10 with PHP-FPM and mod_proxy_fcgi. \
Although I can successfully use ProxyPassMatch for all php files under my web root \
(including /phpmyadmin) using this:<br>"ProxyPassMatch ^/(.*\.php(/.*)?)$ \
unix:/var/run/php5-fpm.sock|fcgi://<a href="http://127.0.0.1:9000/website/public" \
target="_blank">127.0.0.1:9000/website/public</a>"<br></div>I found that I would \
consistently get this error in my Apache log:<code><br>[proxy_fcgi:error] AH01071: \
Got error 'Primary script unknown\n'<br></code><pre><code>The only way to \
stop it was to use this instead:<br><FilesMatch \.php$><br> SetHandler \
"proxy:unix:/var/run/php5-fpm.sock|fcgi://localhost/"<br></FilesMatch><br></code></pre><pre><code>The \
only problem now is that the .php files in /phpmyadmin aren't being proxied to \
PHP-FPM anymore and instead of a login box I get raw php \
code.<br></code></pre><pre><code>I would like to continue using phpmyadmin but \
can't seem to get it working \
again.<br></code></pre><pre><code><br></code></pre><pre><code><br></code></pre><br><div><br></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic