NAS326 install mediawiki

2»

All Replies

  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Niko88 said:
    [Sun Nov 07 01:31:26.206626 2021] [core:error] [pid 3327] (2)No such file or directory: AH00099: could not create /opt/var/run/apache2/httpd.pid.zWOjxp
    mkdir -p /opt/var/run/apache2

  • ... no comments

    Thank you

    [Mon Nov 08 21:08:55.847699 2021] [mpm_prefork:notice] [pid 991] AH00163: Apache/2.4.48 (Unix) configured -- resuming normal operations
    [Mon Nov 08 21:08:55.848042 2021] [core:notice] [pid 991] AH00094: Command line: '/opt/sbin/apache2'

    Apache is running now.

    ______________________________

    I've found the document root and copied media wiki folder to there. But the index.php is not interpreted. I see the source code of that page.

    PHP7 is installed.
    /opt # opkg install php7
    Package php7 (7.4.22-1a) installed in root is up to date.

    But php -v is not working.

    / # find ./ -name "php"
    ./opt/share/apache2/htdocs/vendor/oojs/oojs-ui/php
    find: ./proc/3440/task/3440/fd/13: No such file or directory
    ./i-data/40a999dc/.PKG/PHP-MySQL-phpMyAdmin/php
    ./i-data/40a999dc/.PKG/PHP-MySQL-phpMyAdmin/php/lib/php
    ./i-data/40a999dc/.PKG/PHP-MySQL-phpMyAdmin/php/include/php
    ./i-data/40a999dc/.PKG/PHP-MySQL-phpMyAdmin/php/php
    ./i-data/40a999dc/.PKG/PHP-MySQL-phpMyAdmin/php/bin/php
    ./i-data/40a999dc/opt/share/apache2/htdocs/vendor/oojs/oojs-ui/php

    It seems, there is no php.

    I've tried to google that issue:
    https://stackoverflow.com/questions/11595830/php-not-interpreted-showing-in-view-source

    There is also no LoadModule command for php in my apache2.conf file. There is also no modules folder in apaches directory.

    How can I force apache to find php?
  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Don't know. Does this help?

Consumer Product Help Center