[SOLVED] Composer for build PHP version

Discussion in 'ISPConfig 3 Priority Support' started by Ark74, Oct 10, 2019.

  1. Ark74

    Ark74 Member

    Hi guys!
    I wonder if you have being able to use composer along with a PHP additional version build from source.
    I did tried to add it to the jail but seems like /opt is not an allowed directory for jails in ispconfig.
    Traceback (most recent call last):
      File "/usr/sbin/jk_init", line 247, in <module>
      File "/usr/sbin/jk_init", line 244, in main
        activateConfig(config, jail, args)
      File "/usr/sbin/jk_init", line 162, in activateConfig
      File "/usr/sbin/jk_init", line 108, in handle_cfg_section
        self.didfiles = jk_lib.copy_binaries_and_libs(chroot, paths2, config['force'], config['verbose'], 1, try_hardlink=config['hardlink'],try_glob_matching=1,handledfiles=self.didfiles)
      File "/usr/share/jailkit/jk_lib.py", line 642, in copy_binaries_and_libs
        create_parent_path(chroot,os.path.dirname(file), be_verbose, copy_permissions=1, allow_suid=allow_suid, copy_ownership=retain_owner)
      File "/usr/share/jailkit/jk_lib.py", line 464, in create_parent_path
        os.mkdir(jailpath, 0755)
    OSError: [Errno 13] Permission denied: '/var/www/clients/clientX/webY/opt'
    Maybe build additional php versions on another directory like usr?

    Best regards.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    are you sure that opt exists in the web root? The web root is protected, so you can not add directries there unless you remove the protection with chattr -i first.
    Ark74 likes this.
  3. Ark74

    Ark74 Member

    TBH, I was aware that web root is protected, but not sure how.
    Is this on the manual or somewhere more detailed?

    Update: Found it around page 230, thanks.
    Last edited: Oct 10, 2019
  4. Ark74

    Ark74 Member

    That worked, now I have some other issues related to symfony and composer, but linking a php build to jails worked!
    till likes this.

Share This Page