If you want to install a script like Joomla or any other that is php/MYSQL related, you will need to install an Apache & Mysql server on your pc. In that case, you dont need a domain name & only you can view it on it.
If you want it viewed online, that is doable but requires some bit of work & having your PC running all the time etc + other preparations to make it work.
In that case, a simpler solution is to use x10hosting!
If u want to play around on your PC, you will need to download & install a package like Xampp from
http://www.apachefriends.org and install it on you pc.
When installing & you are asked to install apache & mysql servers as services, say YES so they start automatically when u start the PC.
If not, start them manually via the XAMPP Console whenver u need them.
Both must be running or your servers wont work & your php pages wont be found, etc ...
You are ready to go ....
Place your PHP folders, like your unzipped joomla in the "htdocs" folder.
Your joomla site will be accessible at
http://localhost/joomla or whatver the folder name isis.
Remember if you want to install such a script, you will need to create a database first as during the installation you will be asked for the db name, db host, db password & db username.
To access & create the DB, you will need to go to
http://localhost/phpmyadmin. It will be very familiar if u have created a DB via the Cpanel.
Create a Database + all the required stuff...
You are now ready to install what u want.
If your php script requires no DB, then u dont need to create one.
NB. There's a Xampp related problem requiring you to
edit
xampp\apache\conf\httpd.conf
and uncomment
#LoadModule rewrite_module modules/mod_rewrite.so
restart xampp apache
Good luck