Installing GMP extension for built-in lighttpd + PHP

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page 1, 2  Next
Author Message
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 947

PostPosted: Wed Apr 14, 2021 19:32    Post subject: Installing GMP extension for built-in lighttpd + PHP Reply with quote
1. I'm using dd-wrt's built-in lighttpd. I've installed FreshRSS (https://freshrss.org/) on the the server, but one feature cannot be enabled and it returns this error message: "FAIL 64-bit or GMP extension! Wrong PHP configuration." FreshRSS doc has the explanation for this error
FreshRSS Documentation wrote:
If you get FAIL 64-bit or GMP extension!, then your PHP version does not pass the requirement of being 64-bit and/or have PHP GMP extension.
The easiest is to add the GMP extension. On Debian / Ubuntu: sudo apt install php-gmp
I've tried "opkg install php7-mod-gmp" and modified the module list in lightttpd.conf, but after that I get HTTP error 500, so I revert everything and reinstall entware to recover.

Question: How can I install GMP extension on dd-wrt?

2. After messing and recovering the server, I encounter this warning/error message every time php runs:
Code:
root@RB:~# php -v
Cannot load Zend OPcache - it was already loaded

Warning: Module "openssl" is already loaded in Unknown on line 0
PHP 8.0.3 (cli) (built: Mar  5 2021 23:32:53) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.3, Copyright (c), by Zend Technologies

Question: Is it normal or it's because my php.ini is not correct?

Router/Version: D-Link DIR-868L Rev.A1 DD-WRT v3.0-r46329 std (04/13/21)
File/Kernel: dir868a-webflash.bin / Linux 4.4.265 #2494 SMP Mon Apr 12 02:49:48 +07 2021 armv7l
Previous/Reset: DD-WRT v3.0-r46316 std (04/09/21) / no
Mode/Status: Repeater Bridge on 5GHz AC/N-Mixed (wl0 is purposely turned off) + USB Storage + lighttpd / working



phpinfo().zip
 Description:
phpinfo()

Download
 Filename:  phpinfo().zip
 Filesize:  21.21 KB
 Downloaded:  583 Time(s)


lighttpd_conf.zip
 Description:
lighttpd.conf

Download
 Filename:  lighttpd_conf.zip
 Filesize:  1013 Bytes
 Downloaded:  549 Time(s)


php_ini.zip
 Description:
php.ini

Download
 Filename:  php_ini.zip
 Filesize:  346 Bytes
 Downloaded:  535 Time(s)


_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
Sponsor
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 947

PostPosted: Sun Aug 29, 2021 5:17    Post subject: Reply with quote
today I realize php8 is available in Entware package list, so I go ahead and install php8-mod-gmp and add gmp.so to the list of extension in php.ini, but I encounter this error:
Code:
root@RB:~# php -v

Warning: PHP Startup: Unable to load dynamic library '/opt/lib/php8/gmp.so' (tried: /opt/lib/php8/gmp.so (Error relocating /opt/lib/libgmp.so.10: obstack_vprintf: symbol not found), /etc/php/modules//opt/lib/php8/gmp.so.so (Error loading shared library /etc/php/modules//opt/lib/php8/gmp.so.so: No such file or directory)) in Unknown on line 0
PHP 8.0.6 (cli) (built: May 11 2021 15:56:16) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.6, Copyright (c), by Zend Technologies

I've opened a bug report at entware repo, but they quickly discovered that there's nothing wrong when they fresh-install their php8 packages on their machine, and closed the issue.
So I decide to swap DDWRT's bundled php8 with Entware's php8. After some struggling, everything are good now: no more error, GMP module installed, website functioning normally.
Code:
root@RB:~# php-cli -v
PHP 8.0.9 (cli) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.9, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.9, Copyright (c), by Zend Technologies


Below are the steps I did:
  1. Open phpinfo page to see the list of currently loaded modules EDIT: better use type php and php -m
  2. Install Entware php8 + modules
  3. Edit \jffs\etc\lighttpd.conf to point to new Entware php8 ("bin-path"):
    Code:
    fastcgi.server = (
    ".php" =>
    ( "localhost" =>
       ( "socket" => "/tmp/php-fcgi.sock",
       "bin-path" => "/opt/bin/php-cgi",
       "max-procs" => 1,
       "bin-environment" =>
          (
          "PHP_FCGI_CHILDREN" => "2",
           "PHP_FCGI_MAX_REQUESTS" => "500"
          )
       )
    )
    )
  4. Transfer php.ini to \opt\etc\php.ini (backup the old one first)
  5. Change module path in \opt\etc\php.ini
    Code:
    extension_dir = /opt/lib/php8/
  6. Restart lighttpd (or reboot router):
    Code:
    stopservice lighttpd && iptables -I INPUT -p tcp --dport http -j ACCEPT
    startservice lighttpd && iptables -D INPUT -p tcp --dport http -j ACCEPT
  7. Verify if php8 is migrated: php-cli -v, type php-cli, check if all modules are loaded: compare new phpinfo with old one EDIT: use php-cli -m, load website to see if everything are good.
  8. Enjoy!


Other (self-)notes for lighttpd.conf:
  • mod_compress has been subsumed by and replaced with mod_deflate since lighttpd 1.4.56 https://redmine.lighttpd.net/projects/1/wiki/docs_modcompress
    Quote:
    1970-01-01 08:00:23: server.c.1508) server started (lighttpd/1.4.58)
    1970-01-01 08:00:23: mod_deflate.c.546) DEPRECATED: compress.filetype replaced with deflate.mimetypes
    1970-01-01 08:00:23: mod_deflate.c.559) DEPRECATED: compress.cache-dir replaced with deflate.cache-dir

    → swapping with mod_deflate solve the issues (cache is generated properly in /tmp/lighttpd/cache/compress/ & served to browser)

  • missing mimetype for SVG/SVGZ: browser asks to download SVG file instead of displaying on website

@kernel-panic69: can you take a look at this issue and decide if it's a valid bug?



lighttpd.conf.zip
 Description:
modified lighttpd.conf (contains sections not suitable for generic use)

Download
 Filename:  lighttpd.conf.zip
 Filesize:  1.22 KB
 Downloaded:  182 Time(s)


_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)


Last edited by IONK on Tue Aug 31, 2021 14:37; edited 1 time in total
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12814
Location: Netherlands

PostPosted: Mon Aug 30, 2021 17:32    Post subject: Reply with quote
I had a quick look, it seems PHP should be compiled with the --with-gmp option set (see my patch)

DDWRT does not have this set, I do not know how much extra KB it takes and if it is worthwhile

I am far from a PHP expert



with-gmp-php8.mk.txt
 Description:

Download
 Filename:  with-gmp-php8.mk.txt
 Filesize:  430 Bytes
 Downloaded:  197 Time(s)


_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 947

PostPosted: Mon Aug 30, 2021 21:01    Post subject: Reply with quote
egc wrote:
I had a quick look, it seems PHP should be compiled with the --with-gmp option set (see my patch)

DDWRT does not have this set, I do not know how much extra KB it takes and if it is worthwhile

I am far from a PHP expert
Thanks for chiming in. Let's wait for experts' comments (on PHP & code size). Maybe other php modules will similarly require extra compilation flags? If no comment then at least there's a known workaround (swapping with Entware's php8).
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Tue Aug 31, 2021 11:19    Post subject: Reply with quote
egc wrote:
I had a quick look, it seems PHP should be compiled with the --with-gmp option set (see my patch)

DDWRT does not have this set, I do not know how much extra KB it takes and if it is worthwhile

I am far from a PHP expert


According to 'opkg list | grep gmp':
Code:

libgmp - 6.2.1-1a - GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers.

php7-mod-gmp - 7.4.20-1 - GMP shared module

It's a separate package in Entware. Not sure whether the package is intended for PHP 8. Even Debian listed it as a separate package.

Debian -- Details of package php8.0-gmp in sid
https://packages.debian.org/sid/main/php8.0-gmp

You can enable or disable that extension in phpconfig.ini or php.ini, according to some Google results. Take a look at those ini files.

The last time I compiled PHP from source codes was like 15 years ago. "--with-gmp" is possibly a new option.

I think Entware is not a part of DD-WRT?? You have to find its administrator for help.

Alternatively, stay with PHP 7????

Maybe PHP 8 is still a work-in-progress. SO be patient? Smile


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 947

PostPosted: Tue Aug 31, 2021 14:26    Post subject: Reply with quote
mwchang wrote:
According to 'opkg list | grep gmp':
Code:

libgmp - 6.2.1-1a - GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers.

php7-mod-gmp - 7.4.20-1 - GMP shared module

It's a separate package in Entware. Not sure whether the package is intended for PHP 8. Even Debian listed it as a separate package.

Debian -- Details of package php8.0-gmp in sid
https://packages.debian.org/sid/main/php8.0-gmp
the latest Entware package list has php8-mod-gmp (I believe Entware just added php8 a few weeks ago). I think your package list is not updated yet, if you do "opkg update" and rerun list grep then you can see php8-mod-gmp.

mwchang wrote:
You can enable or disable that extension in phpconfig.ini or php.ini, according to some Google results. Take a look at those ini files.
DDWRT comes with php8 and quite a lot of modules for php8, but it seems like there's no GMP, because there's no gmp.so or libgmp.so in /etc/php/modules (there are only openssl.so and opcache.so inside that folder, and php -m doesn't show GMP).

mwchang wrote:
I think Entware is not a part of DD-WRT?? You have to find its administrator for help.
I thought I could just use DDWRT's php8 together with Entware's php8-mod-gmp, but it didn't work. I opened a bug report at Entware repo regarding their php8-mod-gmp, but they found nothing wrong and closed the issue. Details in 2nd post above.

mwchang wrote:
Alternatively, stay with PHP 7????

Maybe PHP 8 is still a work-in-progress. SO be patient? Smile
At the time I started this thread, DDWRT has already incorporated php8 and many php8 modules, but Entware didn't have php8 yet, only php7. I had no preference for php7 or php8, I just wanted to get GMP, but at that time I had no idea how to configure lighttpd or php, so I tried asking here, but there's no reply (see why here). Probably I should have asked "PHP8 downgrade?" and found the answer in one of the links kernel-panic69 posted in his reply.
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Wed Sep 01, 2021 3:28    Post subject: Reply with quote
IONK wrote:
1. I'm using dd-wrt's built-in lighttpd. .... more ...

today I realize php8 is available in Entware package list, so I go ahead and install php8-mod-gmp and add gmp.so to the list of extension in php.ini ... more ...

At the time I started this thread, DDWRT has already incorporated php8 and many php8 modules, but Entware didn't have php8 yet, only php7.... more ...

Instead of trying to use the stock LightTPD mixed with the PHP8 in Entware, it might be easier for you to disable the stock LightTPD and use both PHP and LightTPD from Entware! You should be using /opt/etc to configure them. You are not going to manage it from WEBUI neither.

The following was just a reference:

Lighttpd and PHP on DD-WRT (Possibly OpenWRT too) ~ aRouter
http://arouter.blogspot.com/2011/07/lighttpd-and-php-on-dd-wrt-possibly.html

I suspect the stock LightTPD was never meant to use PHP and other extensions including MySQL.
Quote:
DDWRT comes with php8 and quite a lot of modules for php8, but it seems like there's no GMP, because there's no gmp.so or libgmp.so in /etc/php/modules (there are only openssl.so and opcache.so inside that folder, and php -m doesn't show GMP).

Sorry about this.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 947

PostPosted: Wed Sep 01, 2021 8:03    Post subject: Reply with quote
mwchang wrote:
Instead of trying to use the stock LightTPD mixed with the PHP8 in Entware, it might be easier for you to disable the stock LightTPD and use both PHP and LightTPD from Entware! You should be using /opt/etc to configure them. You are not going to manage it from WEBUI neither.

The following was just a reference:

Lighttpd and PHP on DD-WRT (Possibly OpenWRT too) ~ aRouter
http://arouter.blogspot.com/2011/07/lighttpd-and-php-on-dd-wrt-possibly.html
  • It can be a 5min job for experts, but it can also be a big hurdle for other people, including myself of last week. Not all DDWRT users are comfortable with Linux commands, or are knowledgeable about server/php, or are willing to spend time, or are willing to get their hands dirty, to build/install/configure everything by themselves, just for a hobby project.
  • You're correct, I should have thought of downgrading to PHP7 at that time, and asked that question and got the answer. Maybe I didn't do so because I had little knowledge of lighttpd/php at that time, and I was scared of making too much changes to the already-working website (there's just one missing feature without GMP). Thanks for finding/sharing the link about installing lighttpd & php on DDWRT, I hope it will benefit others.
  • Just in case I didn't express it clearly in my 2nd post: I have already solved my original problem by switching to Entware's php8 + Entware's php8-mod-gmp (which are only available recently). During the process, I discovered some issues, so I posted a reply to myself as a kind of documentation, to benefit everyone. I guess downgrading to php7 will also work, but because I had no preference for php7 or php8, I will use php8 for now in case I want to switch back to DDWRT's php8 after the compatibility issue with DDWRT's php8 is fixed.

mwchang wrote:
I suspect the stock LightTPD was never meant to use PHP and other extensions including MySQL.
Maybe you made some typo or I misunderstood your point, but DDWRT's lighttpd + php8 + various php8 modules are working out-of-the-box, just that the GMP module is not statically built into DDWRT's php8 and somehow DDWRT's php8 is not compatible with Entware's php8-mod-gmp.
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Wed Sep 01, 2021 10:37    Post subject: Reply with quote
IONK wrote:
[*]It can be a 5min job for experts, but it can also be a big hurdle for other people, including myself of last week. Not all DDWRT users are comfortable with Linux commands, or are knowledgeable about server/php, or are willing to spend time, or are willing to get their hands dirty, to build/install/configure everything by themselves, just for a hobby project.

.... more ...

Maybe you made some typo or I misunderstood your point, but DDWRT's lighttpd + php8 + various php8 modules are working out-of-the-box, just that the GMP module is not statically built into DDWRT's php8 and somehow DDWRT's php8 is not compatible with Entware's php8-mod-gmp.

Hopefully your ticket would be answered in coming builds. And egc had responded.

I agree that if the stock LightTPD could be recompiled, it's just a 5-minute job to use an extra configure options "--with-gmp". This will affect all routers all models anyway, and might trigger error.

Forgive my wild guesses and oversight. Sorry for wasting your time. Smile

BTW, a PHP expert/programmer does not have to know how PHP and LightTPD are compiled. Division of labor....


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Wed Sep 01, 2021 11:08; edited 1 time in total
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Wed Sep 01, 2021 10:46    Post subject: Reply with quote
egc wrote:
I had a quick look, it seems PHP should be compiled with the --with-gmp option set (see my patch)

Is it necessary to also patch php.ini as well to disable GMP by default?

From opkg list, php8-mod-gmp is a separate package not installed by default.

Could we assume that no PHP error would be triggered if no codes made calls to GMP?


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12814
Location: Netherlands

PostPosted: Wed Sep 01, 2021 11:11    Post subject: Reply with quote
I am not a PHP expert but you probably need:
Code:
extension=gmp


In your .ini file if you want to use it Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 947

PostPosted: Wed Sep 01, 2021 12:33    Post subject: Reply with quote
mwchang wrote:
Hopefully your ticket would be answered in coming builds. And egc had responded.

I agree that if the stock LightTPD could be recompiled, it's just a 5-minute job to use an extra configure options "--with-gmp". This will affect all routers all models anyway, and might trigger error.

Forgive my wild guesses and oversight. Sorry for wasting your time. Smile

BTW, a PHP expert/programmer does not have to know how PHP and LightTPD are compiled. Division of labor....
It seems like no ticket? Not that I know of?
Actually it's PHP not lighttpd issue. Not all users need GMP, so it's not necessarily to include GMP in php binary, but to make php compatible with Entware's module, so that users can install additional modules from Entware as they need.
But this seems to deviate from what I was trying to say: I meant that installing only one missing GMP module readily available from Entware would be simpler than throwing away DDWRT's php and reinstalling all php modules from Entware and figuring out which config to change to use Entware's php instead of DDWRT's.
mwchang wrote:
egc wrote:
I had a quick look, it seems PHP should be compiled with the --with-gmp option set (see my patch)

Is it necessary to also patch php.ini as well to disable GMP by default?

From opkg list, php8-mod-gmp is a separate package not installed by default.
the default php.ini doesn't enable GMP (because there's no gmp.so or php_gmp.so to load).
mwchang wrote:
Could we assume that no PHP error would be triggered if no codes made calls to GMP?
that's a very broad question, and someone will probably tell you to run all PHP tests to verify by yourself, and report back here.

egc wrote:
I am not a PHP expert but you probably need:
Code:
extension=gmp


In your .ini file if you want to use it Smile
erm..is this for me?
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12814
Location: Netherlands

PostPosted: Wed Sep 01, 2021 12:43    Post subject: Reply with quote
It is for @mwchang if you compile with --with-gmp you have to enable it in the .ini I guess Smile
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Wed Sep 01, 2021 14:41    Post subject: Reply with quote
egc wrote:
It is for @mwchang if you compile with --with-gmp you have to enable it in the .ini I guess Smile

The default LightTPD that comes with DD-WRT does not have mod-gmp compiled into it. It's safer to make an EXPLICIT declaration in php.ini.

Just a suggestion. Make everything explicit and visible to avoid confusions.

I don't plan to turn on LightTPD nor use PHP in the near future. SO pardon me. I only spoke from my past experiences when I compiled PHP & Apache from source codes for Caldera OpenLinux. Smile


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Wed Sep 01, 2021 14:50; edited 1 time in total
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Wed Sep 01, 2021 14:48    Post subject: Reply with quote
egc wrote:
I had a quick look, it seems PHP should be compiled with the --with-gmp option set (see my patch)

DDWRT does not have this set, I do not know how much extra KB it takes and if it is worthwhile

I am far from a PHP expert

attachment: with-gmp-php8.mk.txt

Do you have a SVN number for this patch?

Maybe IONK could track the patch/change himself so that he could attempt PHP 8 again later.

And maybe I might do the same... when I got time. Smile


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum