Where is your .php file located? By default, apache is configured to serve files from /var/www/html/ . Put your file in that folder then point your browser to localhost/<filename>.php
Ask Fedora is community maintained and Red Hat or Fedora Project is not responsible for content. Content on this site is licensed under a CC-BY-SA 3.0 license.