Optware / Optware-ng

279 stars 52 forks source link

php-fcgi no working! #211

Closed me11ved closed 7 years ago

me11ved commented 7 years ago

Hi! I did everything on this article but the application does not work :( https://www.hqt.ro/nginx-web-server-with-php-support-through-optware-ng/ Go to http://192.168.59.1/info.php Error: An error occurred.

Model: RT-AC88U Firmware: 380.68_2

alllexx88 commented 7 years ago

Hi, it's working again now: ipkg update; ipkg upgrade php. The recent upgrade just disables zen opcache module in the default php.ini: it clearly doesn't (yet) work with php-fcgi

alllexx88 commented 7 years ago

It's working now, with opcache too (via installing php-opcache module), so I'm closing the issue

me11ved commented 7 years ago

Thanks for the prompt decision of a problem. But I work in conjunction with Apache. This problem is also solved there?

alllexx88 commented 7 years ago

Yes, it should be fine. The problem was with opcache zend extension, not with php-fcgi directly, so php-apache should be fine too.

me11ved commented 7 years ago

I go Apache start and in the errors log:

Failed loading /opt/lib/php/extensions/opcache.so: (null)

And other module:

PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lib/php/extensions/mysqli.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lib/php/extensions/mbstring.so' - (null) in Unknown on line 0

phpMyAdmin - Error: The mbstring extension is missing. Please check your PHP configuration. P.S. module php-mbstring installed

List of libraries in the folder

[user@RT-AC88U-A660 ~]$ ls -la /opt/lib/php/extensions drwxr-xr-x 2 loxa root 4096 Sep 20 15:38 . drwxr-xr-x 3 loxa root 4096 Sep 20 12:42 .. -rwxr-xr-x 1 loxa root 23316 Sep 20 13:37 bcmath.so -rwxr-xr-x 1 loxa root 17032 Sep 20 13:37 bz2.so -rwxr-xr-x 1 loxa root 21344 Sep 20 13:37 calendar.so -rwxr-xr-x 1 loxa root 40552 Sep 20 13:37 dba.so -rwxr-xr-x 1 loxa root 130504 Sep 20 13:37 dom.so -rwxr-xr-x 1 loxa root 46972 Sep 20 13:37 exif.so -rwxr-xr-x 1 loxa root 37828 Sep 20 13:37 ftp.so -rwxr-xr-x 1 loxa root 1176984 Sep 20 13:37 mbstring.so -rwxr-xr-x 1 loxa root 115380 Sep 20 13:37 mysqli.so -rwxr-xr-x 1 loxa root 131024 Sep 20 12:42 opcache.so -rwxr-xr-x 1 loxa root 115232 Sep 20 13:37 openssl.so -rwxr-xr-x 1 loxa root 90628 Sep 20 13:37 pdo.so -rwxr-xr-x 1 loxa root 24648 Sep 20 13:37 pdo_mysql.so -rwxr-xr-x 1 loxa root 19260 Sep 20 13:37 pdo_sqlite.so -rwxr-xr-x 1 loxa root 7740 Sep 20 13:37 shmop.so -rwxr-xr-x 1 loxa root 66316 Sep 20 13:37 sockets.so -rwxr-xr-x 1 loxa root 11400 Sep 20 13:37 sysvmsg.so -rwxr-xr-x 1 loxa root 6628 Sep 20 13:37 sysvsem.so -rwxr-xr-x 1 loxa root 9012 Sep 20 13:37 sysvshm.so -rwxr-xr-x 1 loxa root 37120 Sep 20 13:37 xml.so -rwxr-xr-x 1 loxa root 23696 Sep 20 13:37 xmlreader.so -rwxr-xr-x 1 loxa root 27652 Sep 20 13:37 xsl.so -rwxr-xr-x 1 loxa root 28696 Sep 20 13:37 zlib.so

alllexx88 commented 7 years ago

Please upgrade packages to the latest with ipkg update; ipkg upgrade. It works for me now (armv7 router).

UPD: I take it back, there is an issue. Working on it...

alllexx88 commented 7 years ago

OK, php-apache issue fixed with fe83860bea7d59bf3119f623fd8d233f38b81472. Binaries for your router are available in the feeds: run

ipkg update
ipkg upgrade

This is a totally different issue from the originally reported, btw

me11ved commented 7 years ago

Yes indeed. This is another problem. Next time, create a new task. Apache started now - but I could not start it in fcgi mode Thank you.