I think you'll find that most modern Linux distributions already have everything you seem to require.
Most refer to this as a "LAMP stack", where LAMP means Linux, Apache, MySQL, and PHP.
Feel free to grab any current version of any Linux distribution, such as Slackware, CentOS, or Red Hat Enterprise Linux.
You may find that you have to manually start the "Apache" (or "httpd") service on these distributions, which is covered in their documentation.
However, the Red Hat based distributions (CentOS and RHEL itself) typically just need the following commands run;
chkconfig --level 345 httpd on
service httpd start
Slackware is a bit more involved; there's an init.d script you may have to mark as executable, then run it;
chmod ug+x /etc/init.d/rc.httpd
There's also Debian, a popular Linux distribution that has been around almost as long as Slackware. However you strike me as someone that may benefit from Ubuntu Linux.
As for creating and accessing a PHP file, you'll have to have the following information (assuming you get a Linux distribution setup, and it's Apache started);
Master Linux Networking 101 to get your shiny new Linux server on a network.
Find out where Apache expects web files (like php files) to live.
(Hint: Check the httpd.conf
Learn, then write a PHP file.
Connect to the server with your web browser.
There is no "Linux5.0", "Linux" is a generic term, like "Windows". So when someone says "What Operating System are you trying to get that to work on?", and you reply "Windows" or "Linux", you're not being very helpful. Be specific, like "Windows XP SP3" or "Slackware 13.0". M'kay? Good.