Symptoms
-
Unable to access a local git repository, for example git clone command fails:
git clone https://[email protected]/plesk-git/my_app
Cloning into ‘repo’…
Password for ‘https://[email protected]’:
fatal: repository ‘https://[email protected]:7080/plesk-git/repo/’ not found -
The following error is found in the domain’s error log
/var/www/vhosts/example.com/logs/error_log
:[Tue Sep 19 00:32:36.985861 2017] [auth_basic:error] [pid 4217:tid 140077837539072] [client 203.0.113.2:36100] AH01617: user john.doe: authentication failure for “/plesk-git/example.git”: Password Mismatch
-
CloudLinux operating system and CageFS feature is used
Cause
Git package is not permitted in CageFS.
Resolution
-
Connect to the server using SSH
-
Add git rpm package to CageFS and apply changes:
# cagefsctl –addrpm git
# cagefsctl –force-update -
Make sure the LoadModule directives exists and is not commented in
/etc/httpd/conf.modules.d/01-cgi.conf
file as in the following output:# cat /etc/httpd/conf.modules.d/01-cgi.conf | grep -v ^#
<IfModule mpm_worker_module>
LoadModule cgid_module modules/mod_cgid.so
</IfModule>
<IfModule mpm_event_module>
LoadModule cgid_module modules/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module modules/mod_cgi.so
</IfModule> -
Restart httpd service to apply changes:
# systemctl restart httpd.service