Bug #332

admin PHP config is not applied to all customers

Added by Lucian Sabo over 1 year ago. Updated 2 months ago.

Status:In Progress Start date:08/18/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:- Spent time: -
Target version:6.1.x
Affected version:All Operating System:CentOS 5
Resolution: Architecture:32 & 64 Bit
Reproduceable:

Description

make some modifications in Advanced PHP Config under admin.
the modifications should be reflected in all customer configurations, but they are not.
You have to manually modify each user account.
For example I wanted to display errors, increase max upload filesize and disable Dl.

History

Updated by Marek Zakrzewski over 1 year ago

In this case you have to edit file: /usr/local/lxlabs/kloxo/file/phpini/htaccesstemp like this:

php_value upload_max_filesize 128M
php_flag enable_dl  off

Then login to Kloxo and click change on PHP basic config - this will rewrite php.ini for all customers.

Updated by Lucian Sabo over 1 year ago

Works great, thanks, but the changes are not shown in the user control panel.
The .htaccess file is rewritten though.
I think this is definitely a bug.

Updated by Marek Zakrzewski over 1 year ago

It's a little Kloxo self mod ;)

Updated by Danny Terweij 9 months ago

  • Target version set to 6.1.x

Updated by Mustafa Ramadhan 6 months ago

  • Status changed from New to In Progress
  • Assignee set to Mustafa Ramadhan
  • Affected version set to All

Maybe need 'Update All' beside 'Update' button (surely, with code for handling this feature).

Updated by Mustafa Ramadhan 6 months ago

  • Target version changed from 6.1.x to 6.1.11

Updated by Marek Zakrzewski 4 months ago

Bug confirmed. Also when I enter PHP admin config it starts fixphpini script.

Updated by Marek Zakrzewski 3 months ago

Maybe need 'Update All' beside 'Update' button (surely, with code for handling this feature).

That would be good !

Updated by Marek Zakrzewski 3 months ago

Each time I go to php config it starts:

yum -y install php-xcache

This seems to be a bug, because my xcache is installed already.

Updated by Marek Zakrzewski 3 months ago

The other thing I've noticed is that is starts:

/script/fixphp

each time I go to PHP config page. Then it takes so long to open this page.

Updated by Danny Terweij 3 months ago

Correct Marek I noticed that also a while ago.
I got a time out on that PHP Config button. A few days ago i was testing phpMyAdmin (the 3.5.0 beta) and by accident i looked at the Monitoring and Stats in phpMyAdmin. I was shocked!
What i did: copy over my-hugh.cnf to /etc/my.cnf without other modifications.
I restarted MySQL and pressed PHP Config. Now i can finaly can see the page!!.

Request: Remove the running of that script when PHP Config page is loaded.
When it must start: After something has changed (After submit) BUT forked to the backround. So the Kloxo GUI is not a show stopper.
Extra request: Review my.cnf for better performance when using a lot domains.

Updated by Marek Zakrzewski 3 months ago

I'm using my own /etc/my.cnf. This is my idea for 16 GB RAM and 8 core CPU:

[mysqld]
#skip-networking
#bind-address = 0.0.0.0
#server-id=1
#log-bin = mysql-bin
#skip-name-resolve
#skip-grant-tables
datadir=/var/lib/mysql
tmpdir=/dev/shm
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
#skip-federated
old_passwords=1
skip-external-locking
query_cache_limit=64M
query_cache_size=128M
query_cache_type=1
max_connections=300
max_connect_errors=100
#wait_timeout=120 - never use this or your collecquota won't work !
thread_cache_size=16
key_buffer=2048M
innodb_buffer_pool_size = 128M
innodb_thread_concurrency = 16
innodb_log_file_size=64M
innodb_log_buffer_size = 16M
innodb_lock_wait_timeout = 100
innodb_flush_log_at_trx_commit = 2
innodb_support_xa=0
innodb_additional_mem_pool_size = 32M
innodb_read_io_threads = 8
innodb_write_io_threads = 8
innodb_max_dirty_pages_pct = 90
innodb_file_per_table
sync_binlog=0
join_buffer=2M
max_allowed_packet=16M
table_open_cache=1024
table_cache=32k
sort_buffer_size=2M
read_buffer_size=2M
read_rnd_buffer_size=4M
max_connect_errors=100
tmp_table_size=512M
max_heap_table_size=512M
long_query_time=2
thread_concurrency=16
myisam_sort_buffer_size=64M
max_write_lock_count = 1
default-storage-engine=MyISAM

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

plugin-load=archive=ha_archive.so;blackhole=ha_blackhole.so

[mysqldump]
quick
max_allowed_packet=16M

Updated by Danny Terweij 3 months ago

  • Target version changed from 6.1.11 to 6.1.12

Updated by Danny Terweij 2 months ago

  • Target version changed from 6.1.12 to 6.1.x

Updated by Mustafa Ramadhan 2 months ago

  • Assignee deleted (Mustafa Ramadhan)
  • Operating System set to CentOS 5
  • Architecture set to 32 & 64 Bit

Also available in: Atom PDF