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-03-28, 20:30:15

Author Topic: Values are resetting  (Read 8484 times)

0 Members and 1 Guest are viewing this topic.

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Values are resetting
« on: 2016-01-11, 07:20:14 »
Hi,

I had an issue which you had solved,
https://github.com/mustafaramadhan/kloxo/issues/14#issuecomment-169918482

Now I am having the problem that it is still not allowing large files to upload.

I figured out that max_terminate_time kicks in and is not allowing the files to uploaded

http://stackoverflow.com/questions/18204131/does-request-terminate-timeout-overwrite-max-execution-time

So where can I change this option, that when I reboot / update server it dont overwrite the values I mentioned

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Values are resetting
« Reply #1 on: 2016-01-11, 11:00:36 »
In 'advanced php configure', inceasing value of 'Post Max Size' and 'Upload File Max Size'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: Values are resetting
« Reply #2 on: 2016-01-11, 12:18:22 »
Sorry if my question is not clear,


1. As you have suggested, my settings are already like this
2. I can see in the conf files via SSH that values are same.
3. My files are not uploaded, after 2 minutes are passed
4. I manually changed the max_terminate_time and I can upload files larger and time taking...


So for PHP FPM it checks for both values and which ever is smaller; is used. Now the solution can be

a) There should be an option for advance fpm settings for admin and client
b) You can tell me where I can change the value to my requirement so when I reboot / fix-all it resets to that value


Thanks,

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Values are resetting
« Reply #3 on: 2016-01-11, 12:30:46 »
1. For modified web server configure (like nginx), need modified their configure with follow 'customize rule'
2. For php-fpm, every client (think admin as client also) need separated configure. It's because Kloxo-MR implementing user-based php-fpm pool (other CP maybe implementing domain-based php-fpm pool like Plesk - CMIIW)
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: Values are resetting
« Reply #4 on: 2016-01-12, 07:42:13 »
When I rebeet, my values are reset in my client. So if it is resetting, the values must be coming from somewhere, I thought they are coming from default, so when I reset, it get value from default.config and add that to clientabc.config


/etc/php-fpm.d/clientabc.config <-- This is my client's settings
/etc/php-fpm.d/default.config
/etc/php-fpm.d/admin.config

I have manually changed max_terminate_time in all 3 files, and then used sh /scripts/fix-all, it loaded the values from the client settings page, but  max_terminate_time is reset in all 3.

This max_terminate_time is not in any admin / client settings page and it get reset in all the config files as well.

It means fix-all regenerate all the files, getting values from DB or some other place. I need to change the value of max_terminate_time in there so when a new config file is generated

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Values are resetting
« Reply #5 on: 2016-01-12, 09:26:04 »
In this context, all content in '/etc/php-fpm.d' will be overwrite if we use cleanup or fixweb/fixdns. Use 'customize rule', copy '/opt/configs/php-fpm/tpl/php53-fpm-pool.conf.tpl' to 'custom.php53-fpm-pool.conf.tpl' (in the same location). And then modified 'custom.php53-fpm-pool.conf.tpl'. After that, run 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: Values are resetting
« Reply #6 on: 2016-01-12, 11:19:21 »
Yes, it worked. Thank you


I am now in another problem. I tried to do 'sh upcp -y' to update my server version. It is showing me same version as before, but also my db stopped working give me ' #1286 - Unknown storage engine 'InnoDB'' for some tables

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Values are resetting
« Reply #7 on: 2016-01-12, 11:25:37 »
Yes, it worked. Thank you


I am now in another problem. I tried to do 'sh upcp -y' to update my server version. It is showing me same version as before, but also my db stopped working give me ' #1286 - Unknown storage engine 'InnoDB'' for some tables
It's because your 1 or more your database use innodb as storage engine. Change 'skip-innodb' to '#skip-innodb' in '/etc/my.cnf.d/server.cnf' and then restart mysql with 'sh /script/restart-mysql -y'.

If you want all database use myisam or aria, run 'sh /script/mysql-convert --engine=myisam' (change myisam to aria if you want use aria storage-engine).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: Values are resetting
« Reply #8 on: 2016-01-12, 11:50:33 »
Wow, thank you so much ... just my last quesiton.


What is the proper way to update? Is it 'sh /scripts/upcp -y' ? as I had just executed it and in admin panel login page it is still showing me `Kloxo-MR 7.0.0.b-2015100801` (this is another server)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Values are resetting
« Reply #9 on: 2016-01-12, 13:31:38 »
Use 'yum clean all; yum update -y' and then 'sh /script/cleanup' (instead 'sh /script/upcp -y'.

..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: Values are resetting
« Reply #10 on: 2016-01-12, 15:29:39 »
Error: Package: perl-Mail-DKIM-0.39-1.el5.noarch (mratwork-epel)
           Requires: perl(:MODULE_COMPAT_5.8. 8)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Values are resetting
« Reply #11 on: 2016-01-12, 15:44:17 »
Inform 'dir -l /etc/yum.repos.d; cat /etc/*release; uname -m'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: Values are resetting
« Reply #12 on: 2016-01-12, 16:06:04 »
[root@server script]# dir -l /etc/yum.repos.d; cat /etc/*release; uname -m
total 44
-rw-r--r-- 1 root root 1991 Aug  3 16:13 CentOS-Base.repo
-rw-r--r-- 1 root root  647 Aug  3 16:13 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  630 Aug  3 16:13 CentOS-Media.repo
-rw-r--r-- 1 root root 6259 Aug  3 16:13 CentOS-Vault.repo
-rw-r--r-- 1 root root  289 Aug  3 16:13 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 8411 Jan 12 10:07 mratwork.repo
-rw-r--r-- 1 root root 7587 Oct 20 05:10 mratwork.repo.rpmsave
CentOS release 6.7 (Final)
CentOS release 6.7 (Final)
CentOS release 6.7 (Final)
x86_64

Offline aamirrajpoot

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: Values are resetting
« Reply #13 on: 2016-01-12, 16:45:35 »
I also get lots of

Failed to set locale, defaulting to C
Failed to set locale, defaulting to C
Failed to set locale, defaulting to C
Failed to set locale, defaulting to C
Failed to set locale, defaulting to C

errors, and right now my sites are down...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Values are resetting
« Reply #14 on: 2016-01-12, 17:04:21 »
There something wrong with your server. Maybe missing locale setting (language setting).

For your issue, run:
Code: [Select]
yum remove mratwork* -y
cd /tmp
wget https://github.com/mustafaramadhan/kloxo/raw/rpms/release/neutral/noarch/mratwork-release-0.0.1-1.noarch.rpm --no-check-certificate
rpm -ivh mratwork-release-0.0.1-1.noarch.rpm
yum clean all
yum update mratwork* -y
sed -i -e 's/$releasever/6/g' /etc/yum.repos.d/mratwork.repo
sh /script/upcp -y
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.049 seconds with 21 queries.

web stats analysis