Ошибка плагина DirectAdmin
Форум
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and DirectAdmin
  1. Boris Dolgov
  2. Wednesday, 27 July 2011
  3.  Subscribe via email
Hello!

Sometimes, some DirectAdmin administrators use php-cli with open_basedir or safemode and prohibit some functions like passthru() in global php.ini. But DirectAdmin plugin relies on it and also can\'t correctly diagnose it\'s prohibition.

Solution:
add php.ini without safe_mode, disabled_functions and open_basedir to /usr/local/directadmin/plugins/lvemanager;
change shebang of all .html and .raaw files of plugin to #!/usr/local/bin/php -c /usr/local/directadmin/plugins/lvemanager/
Rate this post:
  1. 15.09.2011 09:09:44
  2. # 1
Alexey Berezhok Accepted Answer
Posts: 35
Joined: 20.04.2010
0
Votes
Undo
Hello, Boris!

Can you create ticket describing the problem in helpdesk.cloudlinux.com with server access parameters? I need to investigate it.
  1. 15.09.2011 08:09:04
  2. # 2
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
Boris,

That will be addressed. I\'ll check if we need access or we need can replicate it inhouse.
  1. 14.09.2011 17:09:00
  2. # 3
Boris Dolgov Accepted Answer
Posts: 11
Joined: 03.07.2011
0
Votes
Undo
The fact that with safe_mode off the plugin still hangs and doesn\'t work.
  1. 14.09.2011 16:09:04
  2. # 4
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
Which problem? That fact that we need safe_mode off?
  1. 14.09.2011 16:09:50
  2. # 5
Boris Dolgov Accepted Answer
Posts: 11
Joined: 03.07.2011
0
Votes
Undo
Hi!

Are there any news with the problem I described? Do you need access to the server to investigate it?
  1. 12.09.2011 09:09:38
  2. # 6
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
We cannot fix it. We have to run those commands to get data out.
  1. 12.09.2011 09:09:31
  2. # 7
Martin Accepted Answer
Posts: 1
Joined: 12.09.2011
0
Votes
Undo
Hi there.

This should be fixed ASAP. This is the main reason why the DirectAdmin refuses to work in our environment. Any status regarding this issue?
  1. 27.07.2011 09:07:32
  2. # 8
Boris Dolgov Accepted Answer
Posts: 11
Joined: 03.07.2011
0
Votes
Undo
Igor Seletskiy wrote:
I thought it is side-effect of openbasedir. If not -- I will check.

No, it is not. I you need, I can give you access to the server.
  1. 27.07.2011 09:07:29
  2. # 9
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
I thought it is side-effect of openbasedir. If not -- I will check.
  1. 27.07.2011 09:07:50
  2. # 10
Boris Dolgov Accepted Answer
Posts: 11
Joined: 03.07.2011
0
Votes
Undo
And what can you say about lockup of the plugin and the panel?
DirectAdmin has a limited number of processes (10 in that case) and the plugin recursively blocks them all.
  1. 27.07.2011 07:07:48
  2. # 11
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
Thanks a lot. We should detect open_basedir, and tell that it is incompatible. I\'ll ask developers to fix that.
  1. 27.07.2011 07:07:05
  2. # 12
Boris Dolgov Accepted Answer
Posts: 11
Joined: 03.07.2011
0
Votes
Undo
Also, there is a kind of hangup in the plugin:
[[email protected] lvemanager]# netstat -ntp|grep 127.0.0.1:2222
tcp 0 0 127.0.0.1:2222 127.0.0.1:51117 SYN_RECV -
tcp 0 0 127.0.0.1:51107 127.0.0.1:2222 ESTABLISHED 648/php
tcp 0 0 127.0.0.1:51106 127.0.0.1:2222 ESTABLISHED 637/php
tcp 0 0 127.0.0.1:51109 127.0.0.1:2222 ESTABLISHED 650/php
tcp 0 0 127.0.0.1:51108 127.0.0.1:2222 ESTABLISHED 649/php
tcp 0 0 127.0.0.1:51110 127.0.0.1:2222 ESTABLISHED 657/php
tcp 0 0 127.0.0.1:51113 127.0.0.1:2222 ESTABLISHED 662/php
tcp 0 0 127.0.0.1:51112 127.0.0.1:2222 ESTABLISHED 661/php
tcp 0 0 127.0.0.1:51115 127.0.0.1:2222 ESTABLISHED 665/php
tcp 0 0 127.0.0.1:51114 127.0.0.1:2222 ESTABLISHED 664/php
tcp 0 212 127.0.0.1:51117 127.0.0.1:2222 ESTABLISHED 672/php
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51112 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51113 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51114 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51115 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51106 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51107 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51108 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51109 ESTABLISHED -
tcp 212 0 ::ffff:127.0.0.1:2222 ::ffff:127.0.0.1:51110 ESTABLISHED -
[[email protected] lvemanager]# ps aux | grep php
admin 637 0.0 0.1 95588 11792 ? S 14:28 0:00 /php
admin 648 0.0 0.1 95588 11792 ? S 14:28 0:00 /php
admin 649 0.0 0.1 95588 11792 ? S 14:28 0:00 /php
admin 650 0.0 0.1 95588 11792 ? S 14:28 0:00 /php
admin 657 0.0 0.1 95588 11792 ? S 14:28 0:00 /php
admin 661 0.0 0.1 95588 11792 ? S 14:28 0:00 /php
admin 662 0.0 0.1 95588 11796 ? S 14:28 0:00 /php
admin 664 0.0 0.1 95588 11796 ? S 14:28 0:00 /php
admin 665 0.0 0.1 95588 11796 ? S 14:28 0:00 /php
admin 672 0.0 0.1 95588 11792 ? S 14:28 0:00 /php

But I can\'t understand, where does the script query directadmin.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.