Many thanks, it works.
Posts by FlyingMike
-
-
Thanks, you are the best!
-
Hello,
after Upgrade from i-MSCP 1.1.18 to 1.1.19 PhpSwitcher 0.0.9 will not switch the PHP Versions.
My Config:
i-MSCP 1.1.19
PhpSwitcher 0.0.9 with php 5.2, 5.3 and 5.5 installed
Debian 7 with PHP 5.4Here the PhpSwitcher Debug Log:
Code- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::Config::_init: Tying /etc/imscp/apache/apache.data
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::Config::_loadConfig: Loading /etc/imscp/apache/apache.data
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::Config::_parseConfig: Parsing /etc/imscp/apache/apache.data
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'afterHttpdBuildConfFile' event from Servers::httpd::apache_fcgid::_init
- [Thu Dec 11 13:00:12 2014] [warn] iMSCP::Config::FETCH: Accessing non existing config value PHP5_FASTCGI_BIN from the /etc/imscp/apache/apache.data file (see file /var/www/imscp/gui/plugins/PhpSwitcher/backend/PhpSwitcher.pm at line 360)
- [Thu Dec 11 13:00:12 2014] [debug] Modules::Plugin::_exec: Executing Plugin::PhpSwitcher::run() action
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdAddDmn' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdRestoreDmn' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdAddSub' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdRestoreSub' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdDisableDmn' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdDelDmn' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdDisableSub' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'beforeHttpdDelSub' event from Plugin::PhpSwitcher::run
- [Thu Dec 11 13:00:12 2014] [debug] iMSCP::EventManager::register: Registering listener on the 'afterDispatchRequest' event from Plugin::PhpSwitcher::run
Best regards,
Mike -
-
My Config:
Debian Wheezy x64
i-MSCP 1.1.14
phpswitcher 0.0.9I'm upgrad my i-MSCP from 1.1.13 to 1.1.14... Upgrade is ok... but i must upgrade all Users that used phpSwitcher with another php version, because they have been promoted back to the original php 5.4 version.
When I run "imscp-rqst-mngr" the following comes:
Code- Processing 320, PhpSwitcher, enabled. (11 of 11: remaining 0)
- $VAR1 = bless( {
- 'confFile' => [
- 'APACHE_VERSION = 2.2.22',
- '',
- 'ITK_PHP5_PATH = /etc/php5/apache2/php.ini',
- '',
- 'CMD_A2ENSITE = /usr/sbin/a2ensite',
- 'CMD_A2DISSITE = /usr/sbin/a2dissite',
- 'CMD_A2ENMOD = /usr/sbin/a2enmod',
- 'CMD_A2DISMOD = /usr/sbin/a2dismod',
- 'CMD_APXS2 = /usr/bin/apxs2',
- 'CMD_VLOGGER = /usr/local/sbin/vlogger',
- '',
- 'HTTPD_SNAME = apache2',
- '',
- 'APACHE_CONF_DIR = /etc/apache2',
- '',
- 'APACHE_LOG_DIR = /var/log/apache2',
- '',
- 'APACHE_ROOT_DIR = /var/www',
- '',
- 'APACHE_BACKUP_LOG_DIR = /var/log/apache2/backup',
- '',
- 'APACHE_USERS_LOG_DIR = /var/log/apache2/users',
- '',
- 'APACHE_MODS_DIR = /etc/apache2/mods-available',
- '',
- 'APACHE_MODS_ENABLED_DIR = /etc/apache2/mods-enabled',
- '',
- 'APACHE_SITES_DIR = /etc/apache2/sites-available',
- '',
- 'APACHE_CUSTOM_SITES_CONFIG_DIR = /etc/apache2/imscp',
- '',
- 'APACHE_SCOREBOARDS_DIR = /var/www/scoreboards',
- '',
- 'APACHE_USER = www-data',
- '',
- 'APACHE_GROUP = www-data',
- '',
- 'PHP_STARTER_DIR = /var/www/fcgi',
- '',
- 'PHP5_FASTCGI_BIN = /usr/bin/php5-cgi',
- '',
- 'HTACCESS_USERS_FILE_NAME = .htpasswd',
- '',
- 'HTACCESS_GROUPS_FILE_NAME = .htgroup',
- '',
- 'HTPASSWD_CMD = /usr/bin/htpasswd2',
- '',
- '##### Obsolete',
- '',
- 'APACHE_WWW_DIR = /var/www/virtual',
- 'CMD_HTTPD_CTL = /usr/sbin/apache2ctl',
- 'APACHE_RESTART_TRY = 3',
- 'APACHE_NAME = apache2',
- '',
- '###### LEVEL FOR PHP.INI FILE',
- '# Accepted values are: per_user, per_domain or per_vhost',
- '#',
- '# per_user: each customer will have only one php.ini file',
- '# per_domain: each domain / domain alias will have its own php.ini file',
- '# per_site: each site for domain, domain alias, subdomain and subdomain alias will',
- '# have its own php.ini file',
- '#',
- 'INI_LEVEL = per_site'
- ],
- '_list' => [],
- 'lineMap' => {
- 'APACHE_RESTART_TRY' => 51,
- 'APACHE_NAME' => 52,
- 'HTACCESS_GROUPS_FILE_NAME' => 43,
- 'APACHE_GROUP' => 35,
- 'CMD_A2ENSITE' => 4,
- 'HTPASSWD_CMD' => 45,
- 'APACHE_USERS_LOG_DIR' => 21,
- 'CMD_APXS2' => 8,
- 'APACHE_MODS_DIR' => 23,
- 'APACHE_LOG_DIR' => 15,
- 'APACHE_WWW_DIR' => 49,
- 'APACHE_CONF_DIR' => 13,
- 'APACHE_SCOREBOARDS_DIR' => 31,
- 'CMD_A2DISSITE' => 5,
- 'APACHE_VERSION' => 0,
- 'PHP5_FASTCGI_BIN' => 39,
- 'CMD_A2ENMOD' => 6,
- 'ITK_PHP5_PATH' => 2,
- 'PHP_STARTER_DIR' => 37,
- 'APACHE_SITES_DIR' => 27,
- 'APACHE_BACKUP_LOG_DIR' => 19,
- 'INI_LEVEL' => 62,
- 'HTACCESS_USERS_FILE_NAME' => 41,
- 'CMD_VLOGGER' => 9,
- 'CMD_A2DISMOD' => 7,
- 'APACHE_ROOT_DIR' => 17,
- 'APACHE_USER' => 33,
- 'APACHE_MODS_ENABLED_DIR' => 25,
- 'CMD_HTTPD_CTL' => 50,
- 'APACHE_CUSTOM_SITES_CONFIG_DIR' => 29,
- 'HTTPD_SNAME' => 11
- },
- 'fileName' => '/etc/imscp/apache/apache.data',
- 'configValues' => {
- 'APACHE_RESTART_TRY' => '3',
- 'APACHE_NAME' => 'apache2',
- 'HTACCESS_GROUPS_FILE_NAME' => '.htgroup',
- 'APACHE_GROUP' => 'www-data',
- 'CMD_A2ENSITE' => '/usr/sbin/a2ensite',
- 'HTPASSWD_CMD' => '/usr/bin/htpasswd2',
- 'APACHE_USERS_LOG_DIR' => '/var/log/apache2/users',
- 'CMD_APXS2' => '/usr/bin/apxs2',
- 'APACHE_MODS_DIR' => '/etc/apache2/mods-available',
- 'APACHE_LOG_DIR' => '/var/log/apache2',
- 'APACHE_WWW_DIR' => '/var/www/virtual',
- 'APACHE_CONF_DIR' => '/etc/apache2',
- 'APACHE_SCOREBOARDS_DIR' => '/var/www/scoreboards',
- 'CMD_A2DISSITE' => '/usr/sbin/a2dissite',
- 'APACHE_VERSION' => '2.2.22',
- 'PHP5_FASTCGI_BIN' => '/usr/bin/php5-cgi',
- 'CMD_A2ENMOD' => '/usr/sbin/a2enmod',
- 'ITK_PHP5_PATH' => '/etc/php5/apache2/php.ini',
- 'PHP_STARTER_DIR' => '/var/www/fcgi',
- 'APACHE_SITES_DIR' => '/etc/apache2/sites-available',
- 'APACHE_BACKUP_LOG_DIR' => '/var/log/apache2/backup',
- 'INI_LEVEL' => 'per_site',
- 'HTACCESS_USERS_FILE_NAME' => '.htpasswd',
- 'CMD_VLOGGER' => '/usr/local/sbin/vlogger',
- 'CMD_A2DISMOD' => '/usr/sbin/a2dismod',
- 'APACHE_ROOT_DIR' => '/var/www',
- 'APACHE_USER' => 'www-data',
- 'APACHE_MODS_ENABLED_DIR' => '/etc/apache2/mods-enabled',
- 'CMD_HTTPD_CTL' => '/usr/sbin/apache2ctl',
- 'APACHE_CUSTOM_SITES_CONFIG_DIR' => '/etc/apache2/imscp',
- 'HTTPD_SNAME' => 'apache2'
- },
- 'confFileName' => '/etc/imscp/apache/apache.data'
- }, 'iMSCP::Config' );
-
@TheCry Yes that's right. Bareos is very good. I tested Bacula. There was also a great backup solution but i think Bareos is better.
-
A small question due to relocation or installation of new servers .... with what or how you backup your data (/var/www/virtual; /var/mail/virtual; databases, etc.)?
I myself use rsync for backups. Is there instead a fast backup program for Linux? A question would be where you backup your data? External Hard Drive, Cloud, Network, other Colocation, and so on?
Maybe also interesting for "newbies" how to properly backup their data.
-
@Nuxwin No Problem. Ubuntu is not the future for me. When the same errors is on new Debian then i'll switch to php5-fpm but the server run stable with it.
-
-
Auch wenn es schon einige der Anleitungen gibt... trifft sich gerade sehr gut da ich heute einen wechsel von Ubuntu auf Debian mache und den Server neu aufsetze. Bei so guten Anleitungen kann eigentlich nichts schief gehen... ausser ich hab wieder Pech! Na mal sehen.