To those installing web2py on ubuntu 24.04.3 the setup-web2py-nginx-uwsgi-ubuntu-focal.sh script (found in the web2py/scripts) is not compatible with ubuntu 24.04.3
Use the attached script instead.
Remember to make the script executable
~/web2py$ chmod 755 /scripts/setup_web2py_nginx_ubuntu_24_4.sh