First Install a web server on your own PC(Apache), and then install PHP and MySQL
We will suggest you to install AMP (Apache, MySQL, PHP) software on your system. It is available for all operating systems. some given below
- WAMP for Windows
- LAMP for Linux
- MAMP for Mac
- SAMP for Solaris
- FAMP for FreeBSD
- XAMPP (Cross, Apache, MySQL, PHP, Perl) for Cross Platform: It includes some other components too such as FileZilla, OpenSSL, Webalizer, Mercury Mail, etc.