Apache2 with php7

Hi, i'm trying to install php7 for my apache2 server and i have some problem by following https://openwrt.org/docs/guide-user/services/webserver/http.apache.
I create a test.php page

<?php phpinfo(); ?>


Bad Request
Your browser sent a request that this server could not understand.


[Tue Aug 25 16:36:11.665895 2020] [core:error] [pid 3663] [client] AH00126: Invalid URI in request '\xe2\x80\x9c/php/php-cgi\xe2\x80\x9d/test.php' 'GET /test.php HTTP/1.1'

It's asked in the tutorial to add in the end:

Action application/x-httpd-php “/php/php-cgi”

but i don't have the folder “/php/php-cgi”, i have “/usr/bin/php-fcgi” but it's the same problem

Package php7-cgi (7.2.31-1) installed in root is up to date.

any idea?

I've copied that directly from openwrt tutorial:

Action application/x-httpd-php “/php/php-cgi”

When i decode \xe2\x80\x9c, i see that it's just ”. so i removed the ” and now i have:

[Tue Aug 25 17:37:38.043268 2020] [authz_core:error] [pid 4867] [client] AH01630: client denied by server configuration: /usr/bin/php-fcgi

Yes in the openwrt tutorial it say to use the action module it's what i did

Action application/x-httpd-php "/php/php-fcgi"

As a (better ?) alternative use nginx. Works like a charm with PHP7 on openwrt.

Yes i'm looking but i'm really lost

it's also written for a release circa php5 ... ( and apache )... are you running apache and php5?

uhttpd is also good with php7... ( for basic-intermediate uses )

php5 is not available

root@OpenWrt:/test# opkg install php5
Unknown package 'php5'.
Collected errors:
 * opkg_install_cmd: Cannot install package php5.

with nginx, my php files are downloading..

that would be the point where you cease to follow that guide... or take steps to make it available, or as suggested to you here use one of the two alternative working daemons.

Finally, i've followed the guide for uHTTPd and php perfectly work. Is it a good webserver ?

OK for single user. Which is typical for LuCI, for example. nginx is the other extreme: Many users, public web server.