'Instauration of the PHP channel. Returns the module status.'

def setup(self):

    if self.session.get('channel'):
        channels = [self.session['channel']]
    else:
        channels = config.channels
    for channel_name in channels:
        channel = Channel(channel_name=channel_name, session=self.session)
        status = self._check_interpreter(channel)
        if (status == Status.RUN):
            self.session['channel'] = channel_name
            self.channel = channel
            break
    log.debug(('PHP    setup    %s    %s' % (('running' if (status == Status.RUN) else 'failed'), (('with    %s    channel' % channel_name) if (status == Status.RUN) else ''))))
    return status
