Copy link
If you face a Node.js application removal cPanel error, it happens because some files are missing or permissions are incorrect. Many users see the cPanel remove nodejs app no such file or directory message after deleting app folders manually. In such cases, you may need to recreate .htaccess to fix NodeJS removal and correct permissions using the chown Node.js app directory ownership error command. This tutorial will teach you how to resolve it quickly.
If you are uncertain about the location of your Node.js app, you can navigate to cPanel > Setup Node.js app and look in app settings for the document root directory.
Note: These steps require access to an SSH terminal. Please contact your hosting provider if you have never used the terminal.
1. Restore the missing folder:To recreate the folder, the terminal or SSH should be used.mkdir -v /home/youruser/public_html/myappChange youruser and myapp with your actual path.
2. Create an empty .htaccess file.Create the missing file inside the same directory.touch /home/youruser/public_html/myapp/.htaccess
3. Set the correct file ownership:Execute this command to change ownership.chown youruser:youruser /home/youruser/public_html/myapp/.htaccess
Now, try removing your Node.js app:Navigate to cPanel > Setup Node.js App > Find your app >> Click Remove.The error should no longer appear.
Fixing the NodeJS application removal cPanel error is easy—just recreate .htaccess to fix NodeJS removal, and use the chown nodejs app directory ownership error command if needed. With Big Cloudy hosting, you can avoid the No such file or directory” issue entirely.
Save my name, email, and website in this browser for the next time I comment.
Or copy link