Installing / not saving / Bad Server Response /api/v1/ NGINX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #16
    chown -R admin:admin
    .

    The owner should be defined as the owner of your web server. For example, the owner and group can be 'www-data'. I doubt that it is 'admin'.

    Comment

    • sdesp
      Member
      • May 2019
      • 51

      #17
      I tried admin/apache/nginx/webapps/
      daemon

      chown -R nginx:nginx .;
      chown -R nginx:nginx *;

      Code:
      root:x:0:0:root:/root:/bin/bash
      bin:x:1:1:bin:/bin:/sbin/nologin
      daemon:x:2:2:daemon:/sbin:/sbin/nologin
      adm:x:3:4:adm:/var/adm:/sbin/nologin
      lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
      sync:x:5:0:sync:/sbin:/bin/sync
      shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
      halt:x:7:0:halt:/sbin:/sbin/halt
      mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
      operator:x:11:0:operator:/root:/sbin/nologin
      games:x:12:100:games:/usr/games:/sbin/nologin
      ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
      nobody:x:99:99:Nobody:/:/sbin/nologin
      dbus:x:81:81:System message bus:/:/sbin/nologin
      polkitd:x:999:998:User for polkitd:/:/sbin/nologin
      avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
      avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
      postfix:x:89:89::/var/spool/postfix:/sbin/nologin
      sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
      ntp:x:38:38::/etc/ntp:/sbin/nologin
      tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin
      systemd-bus-proxy:x:998:996:systemd Bus Proxy:/:/sbin/nologin
      systemd-network:x:997:995:systemd Network Management:/:/sbin/nologin
      saslauth:x:996:76:Saslauthd user:/run/saslauthd:/sbin/nologin
      rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin
      named:x:25:25:Named:/var/named:/bin/false
      webapps:x:1000:1000::/var/www/html:/bin/false
      apache:x:995:1001::/var/www:/bin/false
      diradmin:x:994:994::/usr/local/directadmin:/bin/false
      mysql:x:993:993:MySQL server:/var/lib/mysql:/bin/false
      majordomo:x:992:2::/etc/virtual/majordomo:/bin/false
      nginx:x:991:991::/home/nginx:/bin/false
      dovecot:x:990:990::/home/dovecot:/bin/false
      admin:x:1001:1004::/home/admin:/bin/bash
      Last edited by sdesp; 06-05-2019, 02:38 PM.

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #18
        Code:
        webapps:x:1000:1000::/var/www/html:/bin/false
        apache:x:995:1001::/var/www:/bin/false
        nginx:x:991:991::/home/nginx:/bin/false
        What is your web server work directory (directory with EspoCRM, index.php, etc.)? Is it /home/nginx??? If so, I suppose you have to change the owner and the group owner of the EspoCRM directory to nginx.

        Comment

        • sdesp
          Member
          • May 2019
          • 51

          #19
          That is in The admin directory
          Code:
          /home/admin/domains/mydomain.com/public_html
          I’m not sure, But I guess that is The same as The username of The directadmin user.

          I unzipped from SSH, when files become root, there can’t be accessed through ftp. If They are admin, They can.

          Comment

          Working...