i can't run php on centos 6 with webmin and virtualmin (fresh install)
<? echo phpinfo ?>
when run above php code, it is blank, but right click source code, i can see the php code that is "" in plain text....
First, does that filename end in .php?
If so, can you please run:
and update with the results?
My initial guess is that PHP isn't installed. Assuming you don't see something like:
then you need to run
which will then install php and the dependencies. At that point, you'll want to restart your web service:
And try the page again.
If it was already installed and restarting the service didn't help, then we'll have to actually look at the php config section of Apache. But lets verify that this is OK first.