rchurch
06-21-2005, 07:42 AM
I transferred a website from a personal machine to my Plesk VPS, and have realized that the <? include('xxxx.inc') ?> sequences are not working. It appears that they are not being passed on for php processing. They actually show up when I view the source in a browser.
The pages are .html files and the php includes are used to insert other content into them. They worked a bit when I changed the extension of the files from .html to .html.php
It seems that the apache configuration in Plesk is not setup to do the php including. I suspect that what I did on a whole server basis has to be done on a virtual host basis only, as users of the other domains may not want that functionality.
I cannot tell for the life of me what should be changed in the apache configuration for the virtual host. I always took it for granted.
Is there a way to get Apache to treat html files as php files? I could use that as a temporary fix.
The pages are .html files and the php includes are used to insert other content into them. They worked a bit when I changed the extension of the files from .html to .html.php
It seems that the apache configuration in Plesk is not setup to do the php including. I suspect that what I did on a whole server basis has to be done on a virtual host basis only, as users of the other domains may not want that functionality.
I cannot tell for the life of me what should be changed in the apache configuration for the virtual host. I always took it for granted.
Is there a way to get Apache to treat html files as php files? I could use that as a temporary fix.