Additional PHP versions compiler script for ISPConfig

Discussion in 'Tips/Tricks/Mods' started by SergiX44, Dec 8, 2016.

  1. SergiX44

    SergiX44 Member

    Got the first working version on Debian, Ubuntu and Centos. Test builds run on Travis: https://travis-ci.org/SergiX44/ISPC-PHPCompiler
    Build is passing on all platforms, there are some issues compiling php 5.6 on debian 9, some help is very appreciated!
     
    ahrasis likes this.
  2. Fastserv

    Fastserv New Member

    Hi,
    thank you for this great script. I just tested the new version on Debian Jessie and got this message:

    Saving to: âphp-compiler.shâ
    php-compiler.sh 100%[====================================================================================>] 15.65K --.-KB/s in 0.005s

    2018-01-05 09:45:06 (2.84 MB/s) - âphp-compiler.shâ saved [16028/16028]
    php-compiler.sh: line 73: /etc/os-release: No such file or directory
    Error detected in latest command, exiting...
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Which Linux distribution and version do you use? An /etc/os-release file should be there on any recent Linux, but maybe it does not exist on old ones.
     
  4. Fastserv

    Fastserv New Member

    As I wrote above ;-) Debian Jessie, and the file is present as symbolic link to usr/lib/os-release
     
    till likes this.
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Oh sorry, missed that info in your text :)
     
  6. SergiX44

    SergiX44 Member

    What happen if you run this command through the shell?
    Code:
    source /etc/os-release && echo $VERSION
    
    Should print something like this:
    [​IMG]
     
  7. Fastserv

    Fastserv New Member

    It gives me 8 (Jessie)
     
  8. chico11mbit

    chico11mbit Member HowtoForge Supporter

    Very nice script. Thank you very much for your work. I have a question. Is it possible, that i have to "service phpXXXX-fpm start" after the installation. Because only then the php-fpm is running.
     
  9. SergiX44

    SergiX44 Member

    This should no be necessary, because after first installation or upgrade, the fpm daemon is started or restarted. But you are free to manager the phpXX-fpm as you want. ;)
     
  10. chico11mbit

    chico11mbit Member HowtoForge Supporter

    At the end i got these errors with every php version. System is ubuntu 14.04LTS
    Code:
    insserv: warning: script 'K02lexx' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'cron' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cron'
    insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `cron'
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'friendly-recovery' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `friendly-recovery'
    insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `friendly-recovery'
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plexmediaserver' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `plexmediaserver'
    insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `plexmediaserver'
    insserv: warning: script 'lexx' missing LSB tags and overrides
    php-compiler.sh: Zeile 391: systemctl: Befehl nicht gefunden
    php-compiler.sh: Zeile 392: systemctl: Befehl nicht gefunden
    php-compiler.sh: Zeile 396: systemctl: Befehl nicht gefunden
     
  11. SergiX44

    SergiX44 Member

    Don't know about the errors with "cron" or "plexmediaserver", seems that you have something wrong with your services.
     

Share This Page