
16th January 2010, 00:11
|
|
Member
|
|
Join Date: Dec 2008
Location: Bulgaria
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
|
|
thanks ..
thanks a lot ..
will u be nice and tell me more about those events ..
where can i see them .. how can i create them ... how can i use them
im reading this .. http://howtoforge.net/forums/showthr...ghlight=events but .. cant understand how to "launch" the action in the plugin ...
________
Honda cl200
________
KTM 50SX
________
Wellbutrin lawsuit settlements
Last edited by DUCKFACE; 12th May 2011 at 03:07.
|

16th January 2010, 11:05
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
The events get been called by ispconfig, so you can not launch them manually. You just bind a function in the local plugin to listen for a specific even. If you take a look at the existing, you will find the code in the onLoad function of the plugin. Example:
$app->plugins->registerEvent('web_domain_insert',$this->plugin_name,'insert');
This binds the local function of the plugin with the name "insert" to the event "web_domain_insert".
|

18th January 2010, 15:40
|
|
Member
|
|
Join Date: Dec 2008
Location: Bulgaria
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
|
|
how to be shure that plugin is working ?
im binding the events .. linking enabled and available (link is with root permition if this is a clue), nameing the file and the class with same name ... but still not working ..
how can i test if im using the plugin ?
________
Essential vaaapp
________
Magic flight
________
Nevada Marijuana Dispensary
Last edited by DUCKFACE; 12th May 2011 at 03:07.
|

18th January 2010, 15:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
From the ISPConfig FAQ: "How to enable debugging in ISPConfig 3"
http://www.faqforge.com/linux/contro...n-ispconfig-3/
|

18th January 2010, 16:23
|
|
Member
|
|
Join Date: Dec 2008
Location: Bulgaria
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
|
|
probably no
maybe im doing somethin wrong ... this is the log file ...
18.01.2010-17:17 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
18.01.2010-17:18 - DEBUG - There is already an instance of server.php running. Exiting.
18.01.2010-17:18 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
18.01.2010-17:18 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
18.01.2010-17:18 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
18.01.2010-17:18 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
18.01.2010-17:18 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
18.01.2010-17:18 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
18.01.2010-17:19 - DEBUG - There is already an instance of server.php running. Exiting.
18.01.2010-17:19 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
|

18th January 2010, 16:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
Then you have most likely a typo in the php code of your plugin which causes php to stop before the lockfile gets deleted. To debug this:
1) Comment out the server.sh cronjob in the root crontab.
2) Delete the lockfile:
rm -f /usr/local/ispconfig/server/temp/.ispconfig_lock
3) run:
/usr/bin/php -q /usr/local/ispconfig/server/server.php
as root user to get the php error message.
|

18th January 2010, 16:52
|
|
Member
|
|
Join Date: Dec 2008
Location: Bulgaria
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
|
|
result
this is the result ....
18.01.2010-17:42 - DEBUG - There is already an instance of server.php running. Exiting.
18.01.2010-17:48 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
18.01.2010-17:48 - DEBUG - Found 1 changes, starting update process.
why this is happening ..
and should i get server.sh again to enable ?
________
FORD CUSTOM HISTORY
________
List of Honda motorcycles specifications
Last edited by DUCKFACE; 17th March 2011 at 19:35.
|

18th January 2010, 16:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
Do steps 2 and 3 again.
|

19th January 2010, 16:43
|
|
Member
|
|
Join Date: Dec 2008
Location: Bulgaria
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
|
|
till .. its the same ..
probably somethin else is wrong ...
i got the same results
19.01.2010-17:41 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
19.01.2010-17:41 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
19.01.2010-17:41 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
19.01.2010-17:42 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
19.01.2010-17:42 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
19.01.2010-17:42 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
19.01.2010-17:42 - DEBUG - There is already a lockfile set. Waiting another 10 seconds...
|

19th January 2010, 16:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
I dont think so. Make sure that you disabled the cronjob and then delete the lock file so often until it gets not created anymore automatically as there might be other processes waiting and then run the server script manually as I told you above.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:29.
|
|
Recent comments
17 hours 12 min ago
20 hours 8 min ago
21 hours 21 min ago
22 hours 45 min ago
1 day 23 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 19 hours ago
1 day 19 hours ago
1 day 23 hours ago