skip to Main Content

I have suse tumbleweed, apache and php7.
The setup i did
as described in https://en.opensuse.org/SDB:LAMP_setup.
I installed apache and tested with file index.html
successfully with browser chrome.
Then I defined index.php as described in that site
but chrome just downloads php file, but does not display.

Instead browser just downloads the php-file.
Any suggestions?

2

Answers


  1. Please check this Stackoverflow answer

    Additionally, you can also use the command: apache2ctl -M
    to check if PHP module is loaded in Apache. In case the apache2ctl command doesn’t work, try the command: httpd -M

    Login or Signup to reply.
  2. What is the content of your php file. If you have some syntax error, the page will just die without showing any info.
    First, verify all lines for errors and especially ";" at the end of each line.
    Then, if it doesn’t help, try to debug by commenting some lines and using die().

    If it’s not the problem of the file, then you should verify your php server settings. send the log and your settings file

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search