Although I have supposedly successfully installed apache2, php5, mysql-server, mysql-client, and php5-mysql, PHP still isn't functioning properly. Any HTML code in a .php file will display - but PHP code is displayed in my browser element inspector as commented out, or other weird stuff. Here is an example. I have a file in my /var/www/ directory called phptest.php, and its content is simply:
Code: Select all
<?php
phpinfo();
?>Code: Select all
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"><?php
phpinfo();
?>
</pre></body></html>Code: Select all
<!--?php
phpinfo();
?-->I hope this is the right place to ask, sorry if not.
Thank you for your time.