The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@foo.tld to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
You used an absolute path instead of a relative one during the creation of website (WP) on the local PC
But now your site is alive on the server and localhost is no longer a valid PATH
rather it should be your domain instead (you probably don’t even need a wordpress folder which is specified after localhost).
Maybe it will be much easier for you to install WordPress via our control panel (Softaculous app installer)
and then edit the website (add images, pages and resources) instead of digging all over the code looking for where all localhost is listed and correcting that omission.