php.ini reverts back automatically after restart

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: php.ini reverts back automatically after restart

Post by dolbyman »

as ssaid before, copy your own php.ini from any location of your choice on startup

here is how to run it

https://wiki.qnap.com/wiki/Running_Your ... at_Startup

and as also said before, do a forum search
mgk21cn
Starting out
Posts: 25
Joined: Mon Oct 13, 2014 4:09 pm

Re: php.ini reverts back automatically after restart

Post by mgk21cn »

no news guys? .. i feel it just a miss !!
i couldnt install it correctly ..
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: php.ini reverts back automatically after restart

Post by dolbyman »

please reply with what exactly is not working or what you need news about.. replacing the ini aromatically after restart ?
mgk21cn
Starting out
Posts: 25
Joined: Mon Oct 13, 2014 4:09 pm

Re: php.ini reverts back automatically after restart

Post by mgk21cn »

yes my php.ini WITH zend and ioncube loaders files just disappear after restart ..

WHEN restaring web server it works fine and appear in view through my ssh console .
but after restarting device all gone .

trying all previous steps and no change ..

my qnap is ts251 4.3.3
my php is 5.6
---
i thought that zend guard and optimzer isnt installed .. i download them and perfrom test

Code: Select all

[~] # /sbin/getcfg QWEB PHP_ZEND_SUPPORT
[~] # /sbin/setcfg QWEB PHP_ZEND_SUPPORT 
[~] # /sbin/getcfg QWEB PHP_ZEND_SUPPORT
nothing appear except the last line out put : true

ps :i am still luinx & PHP commands 'S beginner

if you could help, pointing out further learning guides or tips , i would appreciate
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: php.ini reverts back automatically after restart

Post by dolbyman »

overwrite it on restart...read the thread
User avatar
Cris70
Starting out
Posts: 13
Joined: Tue Feb 21, 2017 12:02 am

Re: php.ini reverts back automatically after restart

Post by Cris70 »

Hi all!
I'm on QTS 4.3.3.0361 (updated a few days ago). I'm seeing this problem too.
What I really do not understand is that QTS has an option, in the Web Server configuration GUI, to change the php.ini.
So it would be logical to think that changing php.ini is a supported procedure... but when I change it and hit "apply", the web servers restarts and the php.ini is reverted!!
How can it be??

T.I.A.
Cris
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: php.ini reverts back automatically after restart

Post by dolbyman »

complain to QNAP then
mgk21cn
Starting out
Posts: 25
Joined: Mon Oct 13, 2014 4:09 pm

Re: php.ini reverts back automatically after restart

Post by mgk21cn »

Cris70 wrote:Hi all!
I'm on QTS 4.3.3.0361 (updated a few days ago). I'm seeing this problem too.
What I really do not understand is that QTS has an option, in the Web Server configuration GUI, to change the php.ini.
So it would be logical to think that changing php.ini is a supported procedure... but when I change it and hit "apply", the web servers restarts and the php.ini is reverted!!
How can it be??

T.I.A.
Cris

i have passed this problem by

1- as you upgrade to 4.3.3 just go contorl panel >> hardware >> check mark on ( run user defiend process ( auto.sh)

2- make copy of you desired php.ini and put in any dir on /share

3- then follow the steps in wiki link
https://wiki.qnap.com/mediawiki/index.p ... oldid=1317

4- using your ssh console ,use cp command to overwrite the defualt php.ini with the one you want to use

and dont forget to chomd + and unmout your temp.sh

5- restart you apache

6- restart yout nas

it should go write as mine .
Post Reply

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