MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: aamirrajpoot on 2016-01-11, 07:20:14

Title: Values are resetting
Post by: aamirrajpoot 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
Title: Re: Values are resetting
Post by: MRatWork on 2016-01-11, 11:00:36
In 'advanced php configure', inceasing value of 'Post Max Size' and 'Upload File Max Size'.
Title: Re: Values are resetting
Post by: aamirrajpoot 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,
Title: Re: Values are resetting
Post by: MRatWork 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)
Title: Re: Values are resetting
Post by: aamirrajpoot 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
Title: Re: Values are resetting
Post by: MRatWork 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'.
Title: Re: Values are resetting
Post by: aamirrajpoot 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
Title: Re: Values are resetting
Post by: MRatWork 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).
Title: Re: Values are resetting
Post by: aamirrajpoot 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)
Title: Re: Values are resetting
Post by: MRatWork on 2016-01-12, 13:31:38
Use 'yum clean all; yum update -y' and then 'sh /script/cleanup' (instead 'sh /script/upcp -y'.

Title: Re: Values are resetting
Post by: aamirrajpoot 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
Title: Re: Values are resetting
Post by: MRatWork on 2016-01-12, 15:44:17
Inform 'dir -l /etc/yum.repos.d; cat /etc/*release; uname -m'.
Title: Re: Values are resetting
Post by: aamirrajpoot 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
Title: Re: Values are resetting
Post by: aamirrajpoot 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...
Title: Re: Values are resetting
Post by: MRatWork 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
Title: Re: Values are resetting
Post by: aamirrajpoot on 2016-01-12, 17:41:38
Now I can see 'Kloxo-MR 7.0.0.b-2016011202' is written on the login page,

none of my domains are working and I can only access it via ip:7778
Title: Re: Values are resetting
Post by: aamirrajpoot on 2016-01-12, 18:02:01
server->services is showing "No Services Under localhost"
Title: Re: Values are resetting
Post by: aamirrajpoot on 2016-01-12, 18:11:25
followed from here http://www.lowendtalk.com/discussion/41568/kloxo-mr-domain-setting

Go to 'switch programs' and select 'nginx-proxy' or 'hiawatha-proxy' for web (better select 'none' or 'lighttpd' first), 'nsd' for dns, 'none' for 'webcache' and 'bogofilter' for spam. Also click 'update' for 'php type' in 'webserver configure'

Also better, running 'sh /script/cleanup; sh /script/fix-all; sh /script/restart-all -y' after above steps.

Remember, for Kloxo-MR, need setup 'php configure' for servers and client.


Looks like something started to work but still domains are not up, services list is now displaying
Title: Re: Values are resetting
Post by: aamirrajpoot on 2016-01-12, 18:18:17
after rebooting, using fix-all and dont remember what else I have done. I am not getting


Could Not Connect
Description: Could not connect to the requested server host.
Title: Re: Values are resetting
Post by: aamirrajpoot on 2016-01-12, 18:27:20
[root@server ~]# service httpd restart
httpd: unrecognized service


My httpd is not working, I tried, changing it to Nginx and back to apache, didnt worked, i changed it to lighttpd and then back to apache, it is still not working

In services page, httpd is gray
Title: Re: Values are resetting
Post by: aamirrajpoot on 2016-01-12, 18:52:27
Executed 'yum install httpd httpd-tools' it said, package already installed,

Executed 'yum reinstall httpd httpd-tools' and then 'service httpd restart' it worked,


now all sites are showing 500 internal server error - kloxo  page...


----

more testing, came to
[root@server script]# sh  restart-php-fpm

*** Process for PHP-FPM service ***
  - Process: reload
Reloading php-fpm:                                         [FAILED]


So solved by 'service php-fpm restart'

Everythings looks like working,

1. Manually installed and loaded httpd
2. Manually started the service of php-fpm
3. manually started ftp 'service xinetd restart'



looks like everything working now... will message here if something stopped working
Title: Re: Values are resetting
Post by: MRatWork on 2016-01-13, 01:57:32
Use 'sh /script/restart-web -y' for restart web server (include php-fpm).