Error run EACCES on port 80

System Information
Strapi Version: 4.4.5
Operating System: Windows 2022 Datacenter + Plesk Obsidian 18.0.48 
Database: MariaDB 10.6.9
Node Version: 16.16
NPM Version: 8.19.2
Yarn Version: N/A

→ server.js

module.exports = ({env}) => ({
  host: '0.0.0.0',
  port: 8081,
  app: {
    keys: env.array('APP_KEYS'),
  },
});

→ package.json

  "dependencies": {
    "@strapi/plugin-i18n": "4.4.5",
    "@strapi/plugin-users-permissions": "4.4.5",
    "@strapi/strapi": "4.4.5",
    "better-sqlite3": "7.4.6",
    "cross-env": "^7.0.3",
    "mysql": "^2.18.1"
  },
  "engines": {
    "node": ">=14.19.1 <=18.x.x",
    "npm": ">=6.0.0"
  },
  

Hi,
if use port 8081, application run in localhost:8081, but if use my domain xyz.com:8081, i have this error :

→ localhost : 80

$ npm run-script start

> plesk-strapi@0.1.0 start
> strapi start


 Project information

┌────────────────────┬──────────────────────────────────────────────────┐
│ Time               │ Tue Jan 10 2023 16:05:06 GMT+0100 (heure normal… │
│ Launched in        │ 1628 ms                                          │
│ Environment        │ development                                      │
│ Process PID        │ 11532                                            │
│ Version            │ 4.4.5 (node v16.19.0)                            │
│ Edition            │ Community                                        │    

Actions available                                                                   

Welcome back!
To manage your project , go to the administration panel at:
http://localhost:8081/admin

To access the server , go to:
http://localhost:8081

xyz.com : 8081

HRESULT: 0x2
HTTP status: 500
HTTP subStatus: 1002
HTTP reason: Internal Server Error
Application has thrown an uncaught exception and is terminated:
TypeError: process.send is not a function
    at Strapi.stop (E:\plesk\vhost\xyz.com\strapi-demo.xyz.com\node_modules\@strapi\strapi\lib\Strapi.js:321:15)
    at Strapi.stopWithError (E:\plesk\vhost\xyz.com\strapi-demo.xyz.com\node_modules\@strapi\strapi\lib\Strapi.js:314:17)
    at Server.<anonymous> (E:\plesk\vhost\xyz.com\strapi-demo.xyz.com\node_modules\@strapi\strapi\lib\services\server\http-server.js:31:21)
    at Server.emit (node:events:513:28)
    at emitErrorNT (node:net:1490:8)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

if change for port 80, localhost & online not runing, i have this error :

→ localhost : 80

$ npm run-script start

> plesk-strapi@0.1.0 start
> strapi start

[2023-01-10 16:02:29.555] error: listen EACCES: permission denied 0.0.0.0:80
Error: listen EACCES: permission denied 0.0.0.0:80
    at Server.setupListenHandle [as _listen2] (node:net:1446:21)
    at listenInCluster (node:net:1511:12)
    at doListen (node:net:1660:7)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

xyz.com : 80

(node:10548) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
1 Like