Msg#: 4181116 posted 12:54 pm on Aug 3, 2010 (gmt 0)
I am configuring a new server with Lighttpd, PHP5 & mysql as on this page:[howtoforge.com ]
Well, i am noob on those things, the problem is that when I test php via a simple index.php page with <?php phpinfo(); ?> in it, everything's ok. But, When I embed that into an .html file as shown below, the page returns blank.
<html> <head> <title>PHP Test</title> </head> <body> <?php phpinfo(); ?> </body> </html> what may be the reason for that? I think something is wrong.
p.s.: Using mysql_secure_installation, i have disabled remote connections. What is this for? On 'CentOS perfect setup' pages, everyone recommends setting:
mysqladmin -h server.example.com -u root password yourrootpassword do I really have to set this?
Msg#: 4181116 posted 2:18 pm on Aug 3, 2010 (gmt 0)
Hi there teasers,
When I embed that into an .html file as shown below, the page returns blank.
It will, you need the file type to be .php otherwise the parser won't be invoked to do it's job - you can however do something with apache that tells it to use the php parser on .html files too, though I haven't done this before.
Msg#: 4181116 posted 5:37 pm on Aug 3, 2010 (gmt 0)
thanks matthew.. So I think the above example, which puts php into html is a wrong example as performing a test -- unless 'do something with apache that tells it to use the php parser on .html files too' as you said.