Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New installation - No input file specified. #5027

Closed
SkysCrystal opened this issue Jan 20, 2023 · 5 comments · Fixed by #5054
Closed

New installation - No input file specified. #5027

SkysCrystal opened this issue Jan 20, 2023 · 5 comments · Fixed by #5054
Labels
Support Support users to use FreshRSS

Comments

@SkysCrystal
Copy link

SkysCrystal commented Jan 20, 2023

Describe the bug
After I uploaded files (FreshRSS 1.20.2) to vps, I set Nginx-root to p folder and changed all files to owner www.

I added the following codes to Nginx:

location ~ ^.+?\.php(/.*)?$ {
        fastcgi_pass unix:/tmp/php-cgi.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        # By default, the variable PATH_INFO is not set under PHP-FPM
        # But FreshRSS API greader.php need it. If you have a “Bad Request” error, double check this var!
        # NOTE: the separate $path_info variable is required. For more details, see:
        # https://trac.nginx.org/nginx/ticket/321
        set $path_info $fastcgi_path_info;
        fastcgi_param PATH_INFO $path_info;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    } 

    location / {
        try_files $uri $uri/ index.php;
    }

To Reproduce
Visiting my website, it shows No input file specified. or Http error 500.

How can I solve this problem? Thanks!

Expected behavior
Can visit site and set db.

Screenshots
None.

Environment information (please complete the following information):

  • Device: [VPS]
  • OS: [Debian 11]
  • Browser: [Chrome]
  • FreshRSS version: [1.20.2]
  • Database version: [Mysql 8.0.30]
  • PHP version: [PHP 8.1.7]
  • Installation type: [Git download]

Additional context
None.

@math-GH math-GH added the Support Support users to use FreshRSS label Jan 21, 2023
@SkysCrystal
Copy link
Author

SkysCrystal commented Jan 22, 2023

php error log

[22-Jan-2023 13:49:26] WARNING: [pool www] child 549932 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function openlog() in /home/wwwroot/mysite/lib/lib_rss.php:23"
[22-Jan-2023 13:49:26] WARNING: [pool www] child 549932 said into stderr: "Stack trace:"
[22-Jan-2023 13:49:26] WARNING: [pool www] child 549932 said into stderr: "#0 /home/wwwroot/mysite/p/i/index.php(24): require()"
[22-Jan-2023 13:49:26] WARNING: [pool www] child 549932 said into stderr: "#1 {main}"
[22-Jan-2023 13:49:26] WARNING: [pool www] child 549932 said into stderr: "  thrown in /home/wwwroot/mysite/lib/lib_rss.php on line 23"

@SkysCrystal
Copy link
Author

openlog( ) is diabled on my VPS. Problem is solved.

@Alkarex
Copy link
Member

Alkarex commented Jan 24, 2023

By curiosity, was syslog() also disabled?

@SkysCrystal
Copy link
Author

SkysCrystal commented Jan 25, 2023

By curiosity, was syslog() also disabled?

Yes, syslog() was also disabled. It forbade me from refreshing RSS. I have also fixed this.

FreshRSS Installation based on LNMP 中文博客 Chinese Blog

@Alkarex
Copy link
Member

Alkarex commented Jan 29, 2023

Workaround patch #5054

Alkarex added a commit that referenced this issue Jan 30, 2023
* Workaround disabled openlog syslog
#fix #5053
#fix #5027

* COPY_SYSLOG_TO_STDERR

* Better return

* Simplify openlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support users to use FreshRSS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants