I am pretty new at this, but I am trying to run apache server and I have a php test page in the sites-enabled directory that consists simply of the text:
<?php
phpinfo();
echo "Hello World";
?>
When I try to start apache2 I get the error:
"apache2: Syntax error on line 298 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/sites-enabled/phptest.php: /etc/apache2/sites-enabled/phptest.php:1: <?php> was not closed.
From what I can tell online, my PHP looks fine. Can anyone tell me what I am missing?
Bookmarks