how to deploy php website on server
You need to have an account with a hosting provider here are a few good ones:
https://xneelo.co.za/web-hosting/
https://www.afrihost.com/
https://www.elitehost.co.za/
Then after setting up an account deploying your site will be as easy as uploading your php files to you public_html/ folder