nginx PHP configuration

  • Hi,


    I'd like to set up some PHP web pages using the nginx plugin.
    I took the following neccessary steps (see attachments):
    1) add shared folder
    2) add pool
    3) add server


    Then I created an index.php file in the shared folder:


    phpinfo();


    This file is served, but sadly as plain text, the php command is not executed.
    I already googled this and found some references, but none of the solutions did work for me.
    Only if I enclose the script in tags like this, the PHP code is executed:


    <?php phpinfo(); ?>


    How can I have all .php files treated as such and omit the PHP script tags?


    Thanks,
    daflow

    • Offizieller Beitrag

    You can't. Why do you want to ise without the php tags?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!