I have a VPS with Ubuntu 22.04.3 LTS and
Plesk Obsidian
Version 18.0.58
I’m a begginer in app deployement.
I want to deploy a Django app on this server so I followed this tutorial : https://support.plesk.com/hc/en-us/articles/12377516625559-How-to-install-Django-applications-in-Plesk-
But I received this error : "/bin/sh: 1: exec: python: not found" and an error page of Passenger.
How can I solve this ?
Thank you for your help !
I tried to find a configuration of Passenger but I didn’t find it.
2
Answers
That error means your system can’t find your python executable. First check your python version with
python3 --version
. If not installed yet typesudo apt-get update
and thensudo apt-get install python3
.Try to adjust the Passenger Configuration to specify the correct Python exec. path:/etc/systemd/system/plesk-php73-fpm.service.d/phusion-passenger.conf
. The 73 number must be replaced with your PHP version. Finally restart teh services withsudo systemctl restart plesk-php73-fpm.service
andsudo systemctl restart apache2
Hope this can help you 🙂
Solution is provided on the Plesk forum: https://talk.plesk.com/threads/passenger-issue-bin-sh-1-exec-python-not-found.373056/