User Tools

Site Tools


DirectAdmin suPHP Error No such file or directory: couldn't create child process /usr/local/suphp/sbin/suphp for index.php

If you receive this error after trying to convert to suPHP on a DirectAdmin server, suPHP didn't build properly. The full error shown is as follows:

  [Sun Sep 15 17:45:23.133872 2019] [:error] [pid 24275:tid 139740033627904] 
  (2)No such file or directory: [client IP.IP.IP.IP:53478] couldn't create child process: 
  /usr/local/suphp/sbin/suphp for/home/admin/public_html/index.php

You will need to run the following to rebuild suPHP and correct this:

  cd /usr/local/directadmin/custombuild
  ./build suphp d
  ./build rewrite_confs

The full set of commands to run when converting from any PHP handler to suPHP after editing the CustomBuild options,conf file properly is as follows:

  cd /usr/local/directadmin/custombuild
  ./build update
  ./build php d
  ./build httpd d
  ./build suphp d
  ./build rewrite_confs

The error should be resolved once you've built suPHP.

If you have any trouble, feel free to open a ticket with KnownHost support! :)

control-panels/directadmin/how-to-fix-suphp-error.txt · Last modified: 2020/06/01 14:31 by Karson N.