Navigation

    • Register
    • Login
    • Search
    • Recent
    • Users
    • Groups

    magento 2.4 installation on cwp query

    CWP - Panel
    2
    10
    77
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      legend last edited by

      1. How do you ensure that the permission to the magento root is not overwritten all the time. For instance , i have to each time grant permision to the “user” in cwp, before the command is accepted or permission will be denied and sometimes the command is not even accepted

      2. Do I install composer as the root or the user with ssh access?

      sandeep 1 Reply Last reply Reply Quote 0
      • sandeep
        sandeep @legend last edited by sandeep

        @legend it is best to login as user via ssh, you can easily do it via this change user command :

        su -l username -s /bin/bash
        

        **replace username with the username of the account.

        L 1 Reply Last reply Reply Quote 0
        • L
          legend @sandeep last edited by

          @sandeep Thanks.

          1. Do I need to download composer as this user? I tried this but permission denied.

          Also do I set the permissions to the user as root?

          Cheers,

          sandeep 1 Reply Last reply Reply Quote 0
          • sandeep
            sandeep @legend last edited by sandeep

            @legend hi you need to download composer as root for global, then you can use it as user check our blog for the instructions.

            login as root via ssh then run this command, navigate to website script dir :

            su -l username -s /bin/bash
            

            then you can execute composer as user .

            that means all files are created as user. You can run below command to fix file permission at once :

            find -xtype d | xargs chmod 755
            find -xtype f | xargs chmod 644
            

            ensure you are in right directory before running upper commands.

            L 2 Replies Last reply Reply Quote 0
            • L
              legend @sandeep last edited by

              @sandeep Perfect.

              1 Reply Last reply Reply Quote 1
              • L
                legend @sandeep last edited by

                @sandeep

                this "find -xtype f | xargs chmod 644" gives the following:
                xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

                sandeep 2 Replies Last reply Reply Quote 0
                • sandeep
                  sandeep @legend last edited by

                  @legend said in magento 2.4 installation on cwp query:

                  xargs: unmatched single quote;

                  which os centos 8 or 7 ?

                  L 1 Reply Last reply Reply Quote 0
                  • sandeep
                    sandeep @legend last edited by sandeep

                    @legend said in magento 2.4 installation on cwp query:

                    @sandeep

                    this "find -xtype f | xargs chmod 644" gives the following:
                    xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

                    you can use this commands alternatively :

                    find . -type d -exec chmod 755 {} \;    
                    find . -type f -exec chmod 644 {} \;
                    
                    1 Reply Last reply Reply Quote 0
                    • L
                      legend @sandeep last edited by

                      @sandeep centos 7

                      sandeep 1 Reply Last reply Reply Quote 0
                      • sandeep
                        sandeep @legend last edited by

                        @legend said in magento 2.4 installation on cwp query:

                        @sandeep centos 7

                        in 7 that command runs perfectly. Try alternative command.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        Recent Topics

                        • is ngx_pagespeed works?

                        • How to add a new disk?

                        • Module IPv6 CWP

                        • PHP 8.0.0 testing - CWP

                        • Serious error with quotas

                        • Centos 8 Stream CWP - Delayed Update and CWP repositories are added

                        • Update NGINX Stable v1.16.1 to latest NGINX Stable v1.18.0 for CWP & CWP PRO!

                        • Phpmyadmin New Verison with autologin - CWP

                        URLs HOME | Blog | Support Portal