PHP FPM on Ubuntu 14.04

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/
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.



Howdy -- what are you seeing on line 68 of /etc/apache2/sites-enabled/

This is probably due to a missing or disabled Apache module, like mod_proxy_fcgi.

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)

It should be enabled by default for new Ubuntu installs - but it sounds like we need to add a check to make sure.

The error that occurs when the module isn't enabled is like so:

AH00526: Syntax error on line 38 of /etc/apache2/sites-enabled/ 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/ ProxyPass URL must be absolute!

The fix is to add three slashes to the unix socket. See

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 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!

The next release of Virtualmin will fix this unix socket issue by using a TCP port for connection to the FPM server instead.