After suphp to php-fpm convert, Apache fails with httpd.conf file Invalid command error

raghav

Verified User
Joined
Sep 8, 2011
Messages
35
Recently I converted a server from suphp to php-fpm.

Everything works fine except that Apache randomly fails with a httpd.conf file error for a single user "dauser1".

Here is what apache log shows..
AH00526: Syntax error on line 19 of /usr/local/directadmin/data/users/dauser1/httpd.conf:
Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration
httpd.service: main process exited, code=exited, status=1/FAILURE

I have tried following but problem persists..
cd /usr/local/directadmin/custombuild
./build update
./build php
./build rewrite_confs

Here is the position of suPHP line in httpd.conf file..
<Directory "/home/dauser1/public_html">
<FilesMatch "\.(inc|php|phtml|phps|php73)$">
AddHandler "proxy:unix:/usr/local/php73/sockets/dauser1.sock|fcgi://localhost" .inc .php .phtml .php73
</FilesMatch>
<IfModule mod_fcgid.c>
SuexecUserGroup dauser1 dauser1
</IfModule>
</Directory>
suPHP_ConfigPath /home/dauser1/
<VirtualHost 107.191.109.226:80 >
ServerName www.dauser1-domain.com

Currently, I have commented out all 'suPHP_ConfigPath' occurences in /usr/local/directadmin/data/users/dauser1/httpd.conf and restarted apache to get it back online.

But, the problem comes back randomly.

How to fix this permanently?

thanks.
 
Not sure, but is this perhaps forgotten custom httpd configuration? Check the various CUSTOMX fields and see if it's located there.
 
Also check your custombuilds custom directory if there are any custom configurations in there
/usr/local/directadmin/custombuild/custom/ap2 and /usr/local/directadmin/custombuild/custom/ap2/extra
 
Also check your custombuilds custom directory if there are any custom configurations in there
/usr/local/directadmin/custombuild/custom/ap2 and /usr/local/directadmin/custombuild/custom/ap2/extra
Thanks.

There is a httpd-default.conf at /usr/local/directadmin/custombuild/custom/ap2/extra, but it do not contain any thing related to suPHP

Any other suggestions are welcome.
 
Only thing I can think of is the /etc/httpd/conf/extra/httpd-includes.conf file which can contain things which will not be overwritten, or might also be a bug in the new DA version.
 
Back
Top