Results 1 to 2 of 2

Thread: PHP scripts pop-up from browser instead of executing

  1. #1
    Join Date
    Jul 2011
    Location
    Čačak, Serbia
    Posts
    76

    Default PHP scripts pop-up from browser instead of executing

    Hello,
    I installed LAMP using YaST, configured web server using script mysql_secure_installation
    as suggested in https://en.opensuse.org/SDB:LAMP_setup

    Now I have got problem: scripts not execute - they pop up from browser in popup windows that asks if I want to open it or download it (like it does for attachments). What can i do to make my scripts execute in web browser?

    Thank you for answering my questions

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,644
    Blog Entries
    14

    Default Re: PHP scripts pop-up from browser instead of executing

    Most likely you haven't enabled the php apache module. That will cause the webserver not knowing how to handle it. Do
    Code:
    sudo a2enmod php
    sudo systemct restart apache2.service
    You may have to change 'php' to 'php7'.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •