Archive

Archive for the ‘Cpanel Server’ Category

Agent is not in recovery mode but recovery mode is required

January 30th, 2012 No comments

I have seen ‘ Agent is not in recovery mode but recovery mode is required’ error while restoring complete backup of one partition so can try below steps to fixed it.

Linux Installations

1. Start a remote SSH session or access a GUI terminal window (Konsole in KDE, Gnome Terminal in Gnome, etc.)

2. Use one of the following commands to stop the buagent service:

# /etc/init.d/cdp-agent stop

or

# service cdp-agent stop

3. Create the empty file /usr/sbin/r1soft/.recovery-mode:touch /usr/sbin/r1soft/.recovery-mode
as shown:

4. And last, save the /etc/init.d/buagent file, and restart the agent service.

/etc/init.d/cdp-agent start

or

service cdp-agent start

This will successfully place the Linux R1Soft Agent into recovery mode.

Categories: Cpanel Server Tags:

cPanel : UPCP error : Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273

January 15th, 2012 No comments

I have seen recent cPanel upgrade from old version 11.24 to 11.30 and got the following error.

# /scripts/upcp
/scripts/upcp syntax OK
Running Futex Check/Fix……Done
Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273.

This can be fixed using below :

wget -O /root/updatenow.static http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static && perl /root/updatenow.static --manual

Upgrade the cPanel :

/scripts/upcp --force

it should be work perfect.

Regards

Alex P

Categories: Cpanel Server Tags:

phpMyAdmin Error – Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly

May 16th, 2010 No comments

Last night I had migrated one our client accounts from old cpanel server to new cpanel server , customers reported their phpMyAdmin install was showing the error message “Cannot start session without errors”  and they were unable to even get to the phpMyAdmin login page on the new server.

This post looks at what caused the issue and how to fix it.

Clearly there’s something wrong with the way phpmyadmin sessions are being used. Cpanel work with is own internal PHP and store the application session files in different folder for security reason.

On Cpanel server, every application as his own php configuration setting like phpmyadmin , php configuration file is /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini , roundcube (/usr/local/cpanel/3rdparty/etc/roundcube/php.ini)

PHPmyAdmin session files are store in /var/cpanel/userhomes/cpanelphpmyadmin/ folder.  The /var/cpanel/userhomes/cpanelphpmyadmin/ folder ownership should be cpanelphpmyadmin.cpanelphpmyadminn  /var/cpanel/userhomes/cpanelphpmyadmin/ in order to get phpmyadmin work perfect.

root@server [/var/cpanel/userhomes]# chown cpanelphpmyadmin.cpanelphpmyadmin cpanelphpmyadmin/ -R

If session folder owned by any other username rather than cpanelphpmyadmin then you will get “Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly” error.

root@server [/var/cpanel/userhomes]# ll
drwxr-xr-x  4 cpanel           cpanel            4096 Dec 11 23:04 cpanel/
drwx--x--x  4 cpanelhorde      cpanelhorde       4096 Sep 24  2009 cpanelhorde/
drwx--x--x  4 cpanelphpmyadmin cpanelphpmyadmin  4096 Sep 24  2009 cpanelphpmyadmin/
drwx--x--x  4 cpanelphppgadmin cpanelphppgadmin  4096 Sep 24  2009 cpanelphppgadmin/
drwx--x--x  4 cpanelroundcube  cpanelroundcube   4096 Sep 24  2009 cpanelroundcube/
root@server [/var/cpanel/userhomes]#

Regards

Alex P