There's not a lot of info there, and it sounds like a server setup issue, which isn't really my area of genius
, but here's a couple of questions that might help:
Firstly, it's also possible that the PHP module of Apache hasn't actually been installed on your Fedora box, so you should probably check that it's installed and enabled. (ie not just Apache, but mod_php as well, and any other php bits you might need as well, like session support, etc)
If that's all okay, then check that your server's mime types are set up to tell it to execute PHP programs when it sees files with a .php extension (or whatever extension you're using).
Beyond that, I don't really know enough about Apache config to say any more, but I hope those questions will be of some help.
All the best.