Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 10:26:51

Author Topic: 'sh /script/cleanup' resets 'etc/php.ini' to Default..  (Read 3829 times)

0 Members and 1 Guest are viewing this topic.

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
'sh /script/cleanup' resets 'etc/php.ini' to Default. Its killing me because my wordpress sites eats alot of php memory and reseting to default after 'sh /script/cleanup' its a big problem. Can this be fixed somehow ? I have my own server and I need somehow to be sure I have 2Gb of memory_limit for all sites whenever cleanup is done.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #1 on: 2013-08-29, 12:00:33 »
You can use custom file for /home/phpin/tpl/php.ini.tpl to prevent overwrite php.ini.

That it.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #2 on: 2013-08-29, 14:42:56 »
You mean for example to convert this line :

Code: [Select]
memory_limit = <?php echo $memory_limit_flag?>
in

Code: [Select]
memory_limit = 2048
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #3 on: 2013-08-29, 15:02:43 »
that mean copy file  php.ini.tpl  at /home/phpini/tpl  and rename - paste to be "custom.php.ini.tpl"

"custom" file is customize zone for your config, ... read viewtopic.php?f=15&t=245&p=3449&hilit=rule+custom#p3449
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #4 on: 2013-08-29, 18:28:55 »
Thank you. So all I have to do is to copy php.ini.tpl from  '/home/phpini/tpl' to the same folder but with name 'custom.php.ini.tpl' and 'custom.php.ini.tpl' will be used instead of 'etc/php.ini' when I you run 'sh /script/fixphp'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #5 on: 2013-08-29, 18:28:55 »
Thank you. So all I have to do is to copy 'php.ini.tpl' from  '/home/phpini/tpl' to the same folder but with name 'custom.php.ini.tpl' and this new file' will be used instead of 'etc/php.ini' when I you run 'sh /script/fixphp'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #6 on: 2013-08-29, 23:35:55 »
Any way to bypass custom 'home/kloxo/httpd/cp' and 'home/kloxo/httpd/default' default changes when SSH 'sh /script/cleanup'  ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #7 on: 2013-08-30, 00:26:20 »
All index.php inside login, cp, disable, default and webmail taken from /usr/local/lxlabs/kloxo/file/default_index.php.

So, you can learn to defaut_index.php for how to use your custom page. When running cleanup, all this index.php will be overwrite by default_index.php.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: 'sh /script/cleanup' resets 'etc/php.ini' to Default..
« Reply #8 on: 2013-08-30, 02:11:45 »
Nice, thank you Mustafa.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.029 seconds with 18 queries.

web stats analysis