ISPConfig - More Setting

 

 


3.2.4

 

當爆Quota時, MySQL User 的 Permission 會被變更

GUI

GUI String: Database quota

GUI PHP: sites/database_edit.php

GUI Ver: database_quota

Cron php

lib/classes/cron.d/100-monitor_database_size.inc.php

quota_exceeded   # 爆Quota時的 flag

($data['new']['quota_exceeded'] == 'y' ? 'rd' : 'rw')

process_host_list()  # 改 Permission 的 Function

plugins-available/mysql_clientdb_plugin.inc.php

elseif($user_access_mode == 'rd') $grants = 'SELECT, DELETE, ALTER, DROP';

 


Interface modules

 

Version: 3.0.5.4

An ISPConfig-3 interface module is basically a directory in interface/web/,

some associated subdirectories and a module.conf.php file within the lib/ directory.

A module has the following layout.

i.e. VZserver

ls /usr/local/ispconfig/interface/web/vm/lib/module.conf.php

./vm/lib/module.conf.php
./login/lib/module.conf.php
./themes/default/templates/module.tpl.htm
./themes/default/templates/module_tree.tpl.htm
./dashboard/lib/module.conf.php
./dashboard/dashlets/templates/modules.htm
./dashboard/dashlets/modules.php
./admin/lib/module.conf.php
./mail/lib/module.conf.php
./monitor/lib/module.conf.php
./sites/lib/module.conf.php
./client/lib/module.conf.php
./help/lib/module.conf.php
./dns/lib/module.conf.php
./mailuser/lib/module.conf.php
./tools/lib/module.conf.php

# Enable & Disable modules

/usr/local/ispconfig/interface/lib/config.inc.php

$conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools,help';

 


Web tmp folder Permission

 

/usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php

if($web_config['security_level'] == 20) {

    // make tmp directory writable for Apache and the website users
    $app->system->chmod($data['new']['document_root'].'/tmp', 0770);

 


Timezone

 

# timezone 會影響

/var/log/ispconfig/auth.log

Successful login for user 'xx' from y.y.y.y at 2018-01-03 09:58:56

The timezone is set in the ISPConfig configuration files:

  • /usr/local/ispconfig/interface/lib/config.inc.php
  • /usr/local/ispconfig/server/lib/config.inc.php
//** Default: America/New_York
$conf['timezone'] = 'Asia/Hong_Kong';

 


Enable Debug

 

1) Login to ISPConfig with admin

2) "System" Tab > "Server Config" > "name of the server" > "Server" Tab

3) Loglevel > Select "Debug"

 


Lock file

 

當 server.sh 行到一半死左, 就會有 lock file 在 $temppath

"/usr/local/ispconfig/server/temp"

 


Doc

http://docs.ispconfig.org/development/interface/
 

 

 

 

 

Creative Commons license icon Creative Commons license icon