Accidentlly uninstalled PHP for ISPConfig

Discussion in 'Installation/Configuration' started by riverman, Dec 1, 2021.

  1. riverman

    riverman New Member

    Hey!
    I accidentally uninstalled the php version that ISP-Config uses. Now I get Internal Error 500.
    How can I solve this?
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Reinstall the php packages. You could follow those steps in a perfect server guide for your operating system, or just use your package manager if you still know the package names.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Another way is to look at the package manager log, see what were names of packages that got removed and install them back.
     
  4. riverman

    riverman New Member

    I've found this in log file for apache after trying to access isp-config admin panel:
    Code:
    php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    Php 7 and cgi is installed so i looked in directory /usr/bin/ and could not found any php-cgi7.0 file. So I've made a link:
    Code:
    ln /etc/alternatives/php-cgi php-cgi7.0
    Now it works but I have to admit I don't know if this was the correct solution...
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Maybe the most recently installed PHP becomes the default version in OS? Try to find how this is corrected on your Operating System.
     
  6. riverman

    riverman New Member

    Thanks! I actual removed the link and reinstalled php7.0-cgi and now I got the php-cgi7.0 file correctly.
    I don't know if this has to do about that but I don't get Latest News (in ispconfig/Home) anymore. I had to install some PHP-modules and perhaps I missed something..

     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Install all php related packages again according to the perfect server installation tutorial for your Linux OS and version.
     
  8. riverman

    riverman New Member

    I did that with no change.
    Code:
    apt-get -y install php7.3 php7.3-common php7.3-gd php7.3-mysql php7.3-imap php7.3-cli php7.3-cgi libapache2-mod-fcgid apache2-suexec-pristine php-pear mcrypt  imagemagick libruby libapache2-mod-python php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl memcached php-memcache php-imagick php-gettext php7.3-zip php7.3-mbstring memcached libapache2-mod-passenger php7.3-soap php7.3-fpm php7.3-opcache php-apcu libapache2-reload-perl
    I have a server upgraded to Buster and 7.0 was default php from the beginning if it has to do about anything.
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    riverman likes this.
  10. riverman

    riverman New Member

    As a summary:
    First install default PHP (Debian 11: 7.4, Debian 10: 7.3, Debian 9: 7.0, Debian 8: 5.6) in my case PHP7.3
    Code:
    apt-get install php7.3 php7.3-cli php7.3-cgi php7.3-fpm php7.3-gd php7.3-mysql php7.3-imap php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-zip php7.3-mbstring php7.3-soap php7.3-opcache php7.3-common php7.3-json php7.3-readline php7.3-xml
    Then choose default PHP with:
    Code:
    update-alternatives --config php
    update-alternatives --config php-cgi
     
  11. riverman

    riverman New Member

    About the missing Latest news in dashboard, in SYSTEM->Main config->Misc I had the url: https://www.ispconfig.org/atom/ but it should be: https://www.ispconfig.org/feed/atom/

    This is not anything I have changed (that I'm aware of) but perhaps it has been there for a long time. Anyhow it works great now!
    Thanks everybody that helped me with this!
     

Share This Page