Git pull deployment problem solving

Source: Internet
Author: User

Previous problems

Failed to pull from the server,

The PHP shell function fails to call git pull, but it is okay to execute git pull on the machine with the root permission alone.

The Shell Permission called by PHP is actually because the user WWW indicates that the WWW permission is unsuccessful, indicating that the user WWW has no permission. Therefore, you need to configure the permission for WWW.

 

1 first, set the home directory/home/uwww for WWW in/etc/passwd.

2. Let him have the logon permission to execute shell, home/uwww/bin/bash.

3 save and exit

4. Assign the user group chowm WWW to home/uwww: WWW Home/uwww

5. Switch su WWW to enter the WWW user login and execute the generated key

  1. Ssh-keygen-t rsa-c "your mailbox"

Copy the generated password to the SSH key of gitlab.

 

At this point, the WWW user has the permission to perform git operations.

 

Git pull deployment problem solving

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.