Wolfgang Mueller wrote:
On Mon, 19 Aug 2019 at 20:14:01 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Having installed apache2 and php7 under Leap 15.1, I started apache2 using the Services Manager of yast2.
But Google-chrome and Firefox do not recognize a php script. They treat it as a text file, trying to open and/or download it. What is wrong?
The PHP script is not being put through the interpreter, and just served as text.
That's what I observed.
What is the filename of your script?
index.php sidebar.php glossar.php glossario.php ...
Are you sure that php7 can process certain filenames only? So far the filename did not matter at all.
anything can be processed as php code, but apache needs to know which files to treat like code and which are just text or html. Check out /etc/apache2/conf.d/php7.conf - the sethandler directives tell apache2 how to process the files that match the criteria. I can't tell why your files are not being correctly processed as php code. -- Per Jessen, Zürich (17.2°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org