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..
I have tried following but problem persists..
Here is the position of suPHP line in httpd.conf file..
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.
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.