ISPConfig 3 Developer documentation

Discussion in 'Developers' Forum' started by till, May 16, 2008.

  1. otacon

    otacon New Member

    by listen do you mean a cron job, or in what manner do you have a plugin listen to the module?


    When I hear listen I envision the plugin pinging a certain file in the ispconfig port every 5 minutes.
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The plugin is not doing anything actively. The ISPConfig Server event based system and listening means that a plugin is subscribing itself for a event and that this plugin executes code when it gets called in case that the event happens.
     
  3. The Other Air Force

    The Other Air Force New Member

    I am just trying to develop a PHP script to export a list of zones from DNS. Using the API I can get lists for a particular client, but I am not sure how to get a list of all zones from ISPConfig. Is there a function to accomplish this? Or even a function to get a list of all client ID's so I could then in turn pass that off to the dns_zone_get_by_user() function?

    I want to import these zones to my vps providers DNS servers as a slave zone using their API so when clients add zones their slaves are added automatically.

    Thanks!
     
  4. cfoe

    cfoe ISPConfig Developer ISPConfig Developer

    I thought a little bit more about the online documentation and I am always coming back to MediaWiki (or another wiki platform) as a better solution for http://docs.ispconfig.org

    You can restrict access to admin-generated users, of cause.
     
  5. Wiamor

    Wiamor New Member

    is it absolutly nned to download the version instruckted in the manuel, to build Modules or can i also bild some just with a simple running version.
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    You can use a running versionas well.
     
  7. Wiamor

    Wiamor New Member

    i did follow the Steps for creating the menu struckture ... that works, but with creating the List and form pages i ran into problems.

    i did the same as you discribed in the doc. I created the form definition and the action file, but no Lan or list file apear after klicking on the link assosiated with them.

    all i did to the form file was erase some fields i didn't need and remaned the links.
    in the action file i changed
    $tform_def_file =

    and the help from:
    if(!stristr($_SESSION['s']['user']['modules'],'help')) {

    weher is my mistake?
     
  8. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Maybe the directories are not writable by the user that runs the ispconfig interface (ispconfig or the apache user, it depends if the interface is run as fastcgi or mod_php).
     
  9. Wiamor

    Wiamor New Member

    thx i'll have a look at it
     
  10. Wiamor

    Wiamor New Member

    is ist user ispapps or the other one needing the rights to writhe on that folder?
     
  11. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    From post #28:

    ... (ispconfig or the apache user, it depends if the interface is run as fastcgi or mod_php).

    So ist either the user ispconfig or the apache user depending of your installation, the user ispapps is not related to running the ispconfig interface at all.
     
  12. MaddinXx

    MaddinXx Member HowtoForge Supporter

    creating the files doesn't work for me either....

    Code:
    [Mon Jan 28 18:17:09 2013] [error] [client 81.221.83.35] PHP Warning:  fopen(templates/nginx_reverse_proxy_edit.htm): failed to open stream: Permission denied in /usr/local/ispconfig/interface/lib/classes/tform_tpl_generator.inc.php on line 149, referer: https://xxx/index.php
    Permissions are 750 for all files/folders, owner ispconfig:ispconfig
     
  13. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The error message should be self explaining, it means that the templates directory is not writable by the user that runs the ispconfig interface (most likely the user ispconfig).
     
  14. MaddinXx

    MaddinXx Member HowtoForge Supporter

    Hi till

    Yes, it needed more permissions - sorry for that. Was thinking 750 is enough as all others are 750 as well, but yep - they don't need to be writable anymore.

    Thx!
     

Share This Page