Update: the reason for this strange behavior was as simple as the fact that my browser had cached the wordpress/index.php file and not wordpress/. The reason they were not loading properly was because I had a muddled mess of apache2 and half-uninstalled apache (1).