KNOWNHOST WIKI

User Tools

Site Tools


control-panels:directadmin:how-to-fix-suphp-error

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
control-panels:directadmin:how-to-fix-suphp-error [2020/05/13 07:02]
Karson N.
control-panels:directadmin:how-to-fix-suphp-error [2020/06/01 14:31] (current)
Karson N.
Line 1: Line 1:
 ====== DirectAdmin suPHP Error No such file or directory: couldn't create child process /usr/local/suphp/sbin/suphp for index.php ====== ====== 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: 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:
 +<code>
   [Sun Sep 15 17:45:23.133872 2019] [:error] [pid 24275:tid 139740033627904]    [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:    (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   /usr/local/suphp/sbin/suphp for/home/admin/public_html/index.php
 +</code>
  
 You will need to run the following to rebuild suPHP and correct this: You will need to run the following to rebuild suPHP and correct this:
 +<code>
   cd /usr/local/directadmin/custombuild   cd /usr/local/directadmin/custombuild
   ./build suphp d   ./build suphp d
   ./build rewrite_confs   ./build rewrite_confs
 +</code>
  
 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: 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:
  
 <code> <code>
-cd /usr/local/directadmin/custombuild +  cd /usr/local/directadmin/custombuild 
-./build update +  ./build update 
-./build php d +  ./build php d 
-./build httpd d +  ./build httpd d 
-./build suphp d +  ./build suphp d 
-./build rewrite_confs+  ./build rewrite_confs
 </code> </code>
  
control-panels/directadmin/how-to-fix-suphp-error.txt · Last modified: 2020/06/01 14:31 by Karson N.