You are not logged in.

#1 2021-07-24 12:16:25

malacology
Member
Registered: 2021-04-24
Posts: 152

Visit the wallbag page, found: No input file specified.

I install wallabag via AUR, and change owner via chown to root. I also install php74, php74-fpm, sqlite3 and nginx to help me let wallabag become a visible website.
My nginx config for wallbag is almost the same as the official docs and I have systemctl enable  php74-fpm. But when I visit the web, it shows that No input file specified.
My nginx configure is here

[root@archlinux ~]# cd /etc/nginx/
[root@archlinux nginx]# cd sites-enabled
[root@archlinux sites-enabled]# cat read.conf
server {
            listen 80;
            server_name read.malacology.net;
            return 301 https://$server_name$request_uri;
}
server {
    listen 443 ssl http2;
    server_name read.malacology.net;
    root /usr/share/webapps/wallabag;
    ssl_certificate /etc/nginx/web_ssl/read/1_read.malacology.net_bundle.crt;
    ssl_certificate_key /etc/nginx/web_ssl/read/2_read.malacology.net.key;
    ssl_session_cache builtin:1000 shared:SSL:10m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;
    access_log /var/log/nginx/access.log;

    location / {
        # try to serve file directly, fallback to app.php
        try_files $uri /app.php$is_args$args;
    }
    location ~ ^/app\.php(/|$) {
        # if, for some reason, you are still using PHP 5,
        # then replace /run/php/php7.0 by /var/run/php5
        fastcgi_pass unix:/run/php74-fpm/php-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        # When you are using symlinks to link the document root to the
        # current version of your application, you should pass the real
        # application path instead of the path to the symlink to PHP
        # FPM.
        # Otherwise, PHP's OPcache may not properly detect changes to
        # your PHP files (see https://github.com/zendtech/ZendOptimizerPlus/issues/126
        # for more information).
        fastcgi_param  SCRIPT_FILENAME  $realpath_root$fastcgi_script_name;
        fastcgi_param DOCUMENT_ROOT $realpath_root;
        # Prevents URIs that include the front controller. This will 404:
        # http://domain.tld/app.php/some-path
        # Remove the internal directive to allow URIs like this
        internal;
    }
    # return 404 for all other php files not matching the front controller
    # this prevents access to other php files you don't want to be accessible.
    location ~ \.php$ {
        return 404;
    }
}

Don't speak to silly man. Keep Minimalism.

Offline

Board footer

Powered by FluxBB