Submitted by singhdd on Fri, 02/17/2017 - 11:11
Hi, After enabling PHP FPM for one site. I get following error while Re-Check Configuration or on Restart Apache. Apache stops running until i go back to some other mode of PHP.
AH00526: Syntax error on line 68 of /etc/apache2/sites-enabled/wcdemo.cf.conf:
ProxyPass URL must be absolute!
Action 'configtest' failed.
The Apache error log may have more information.
I moved from FCId to FPM and phpinfo reported
Server API CGI/FastCGI
in both cases. Then I thought of restarting apache and the error appeared.
Status:
Active
Comments
Submitted by andreychek on Fri, 02/17/2017 - 11:31 Comment #1
Howdy -- what are you seeing on line 68 of /etc/apache2/sites-enabled/wcdemo.cf.conf?
Submitted by JamieCameron on Fri, 02/17/2017 - 18:45 Comment #2
This is probably due to a missing or disabled Apache module, like
mod_proxy_fcgi
.Submitted by singhdd on Sat, 02/18/2017 - 00:38 Comment #3
Shouldn't the module be enabled by virtualmin on change to FPM. I never touched apache modules myself.
@andreychek This happened on live server,so I wont be testing FPM again on live server until I confirm it is working on test server (Will be setting up 1 soon)
Submitted by JamieCameron on Sat, 02/18/2017 - 16:07 Comment #4
It should be enabled by default for new Ubuntu installs - but it sounds like we need to add a check to make sure.
Submitted by rokclimb15 on Mon, 02/27/2017 - 20:45 Comment #5
The error that occurs when the module isn't enabled is like so:
AH00526: Syntax error on line 38 of /etc/apache2/sites-enabled/site.com.conf: Invalid command 'ProxyPassMatch', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed.
This is also an issue, but it's pretty easy to figure out and correct with a2enmod. The issue caused by the OP is actually harder to fix manually.
AH00526: Syntax error on line 38 of /etc/apache2/sites-enabled/site.com.conf: ProxyPass URL must be absolute!
The fix is to add three slashes to the unix socket. See https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1324828/comments/3
If someone can give me access to the appropriate source I'm glad to contribute a patch. I'm also working on backporting the fix for https://bugs.launchpad.net/apache2/+bug/1668474 which crops up after fixing the unix socket path manually if the path is long. After that, I hope the new php-fpm feature will be more functional on 14.04!
Submitted by JamieCameron on Mon, 02/27/2017 - 21:12 Comment #6
The next release of Virtualmin will fix this unix socket issue by using a TCP port for connection to the FPM server instead.