Answer the question
In order to leave comments, you need to log in
Apache page does not see PHP - why is this happening?
Hello, I have an index.php page in /home/username/public_html.
In the page, this is a mega-primitive:
<html>
HTML text
<?php
echo "PHP text";
?>
</html>
Answer the question
In order to leave comments, you need to log in
You need not just a PHP package, but the corresponding Apache module -libapache2-mod-php
is it installed and apache was told to interpret PHP or should he figure it out himself?
1. They don’t do it like that
2. You have to break your hands for this
3. They don’t do it like that
4. Enable processing html like php
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question