PHP.ini reverted and changed after restarting apache

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Locked
labrax
New here
Posts: 2
Joined: Sun Nov 17, 2019 1:45 am

PHP.ini reverted and changed after restarting apache

Post by labrax »

Im on latest php7 and firmware 4.4.1.1117
So I was trying to install Ioncube with editing php ini at

Code: Select all

/mnt/HDA_ROOT/.config/php.ini
adding this code to php.ini

Code: Select all

zend_extension = /usr/local/apache/modules/ioncube_loader_lin_7.3.so
above "zend_extension = opcache" because ioncube must be load first


but after restarting Apache using "/etc/init.d/Qthttpd.sh restart" php.ini reverted back to original and everything started with "zend_extension = exampletext" will changed to "zend_extension = opcache", I gave it a try from cli and gui still ended up same :( I think this is Qthttpd.sh fault

any help would be appreciated.
labrax
New here
Posts: 2
Joined: Sun Nov 17, 2019 1:45 am

Re: PHP.ini reverted and changed after restarting apache

Post by labrax »

So after wasting hours trying, finally found the culprit by removing this
"|| /sbin/setcfg PHP zend_extension opcache.so -f $PHP_INI"

and everything works after restarted apache.
tumanek
First post
Posts: 1
Joined: Wed Mar 17, 2021 1:23 am

Re: PHP.ini reverted and changed after restarting apache

Post by tumanek »

Could you chceck if the solution is correct?
I've got the same problem..
Thanks
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: PHP.ini reverted and changed after restarting apache

Post by OneCD »

* topic locked to prevent further necroposting *

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Locked

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”