Problem to run file

I run the file like
but it cannot show the web-page as expected.
LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Since you are running from the command line, the most you should expect is a text display in the terminal.  That will not launch a browser that will show you a web page.  And if the PHP command line is not installed or enabled, it may not show you anything but an error.
HuaMin ChenProblem resolverAuthor Commented:
PHP command line is installed already. How to run the .php file?
Dave BaldwinFixer of ProblemsCommented:
This is all I have to do.

[root@dibscos6 html]# php phpinfo.php
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

HuaMin ChenProblem resolverAuthor Commented:
I'm running that in the same way like you. Why can't the .php file be displayed on browser?
Dave BaldwinFixer of ProblemsCommented:
That command runs the PHP program in the terminal and the web browser (Firefox) does not run in the terminal.  To run Firefox from the command line to view that page, you would have to start Firefox, not PHP.  I'll show you in the next comment.
Dave BaldwinFixer of ProblemsCommented:
This opens Firefox to the same page.

[davidc@dibscos6 ~]$ firefox http://localhost/phpinfo.php

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HuaMin ChenProblem resolverAuthor Commented:
I then get this
HuaMin ChenProblem resolverAuthor Commented:
I get the current problem when issuing
firefox http://localhost/info5.php

while info5.php does exist within
Dave BaldwinFixer of ProblemsCommented:
Can you connect to any other page like index.html?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.