Connection Help

Discussion in 'General' started by kike28101, Apr 19, 2022.

  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You forgot the code tags. Seems you really make helping you hard.
    What show commands (try to remember CODE tags...)
    Code:
    update-alternatives --config php
    update-alternatives --config php-cgi
     
  2. kike28101

    kike28101 Member

    I don't quite understand what you mean by CODE tags
    What you need is to see the information that the console presents, after executing the command, correct?
    I think my problem is in Apache

    update-alternatives --config php

    There are 4 choices for the alternative php (providing /usr/bin/php).

    Selection Path Priority Status
    ------------------------------------------------------------
    0 /usr/bin/php7.4 74 auto mode
    * 1 /usr/bin/php7.0 70 manual mode
    2 /usr/bin/php7.2 72 manual mode
    3 /usr/bin/php7.3 73 manual mode
    4 /usr/bin/php7.4 74 manual mode

    Press <enter> to keep the current choice[*], or type selection number:


    update-alternatives --config php-cgi
    There are 4 choices for the alternative php-cgi (providing /usr/bin/php-cgi).

    Selection Path Priority Status
    ------------------------------------------------------------
    * 0 /usr/bin/php-cgi7.4 74 auto mode
    1 /usr/bin/php-cgi7.0 70 manual mode
    2 /usr/bin/php-cgi7.2 72 manual mode
    3 /usr/bin/php-cgi7.3 73 manual mode
    4 /usr/bin/php-cgi7.4 74 manual mode

    Press <enter> to keep the current choice[*], or type selection number:
     
    Last edited: Apr 25, 2022
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You forgot to show output of command
    Code:
    update-alternatives --config php-cgi
    I'm fed up reminding you to use code tags. Is there a reason you do not paste the listings in code tags?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That host has wrong version of PHP for php-cgi.
    Please read https://www.howtoforge.com/community/threads/please-read-before-posting.58408/ like I told you to do previously. It explains the CODE tags. It also explains the error you have, how to find it and how to fix it. Read the part about "Panel not showing up/ server.sh script error".
     
  5. kike28101

    kike28101 Member

    update-alternatives --config php-cgi
    CODE
    There are 4 choices for the alternative php-cgi (providing /usr/bin/php-cgi).

    Selection Path Priority Status
    ------------------------------------------------------------
    * 0 /usr/bin/php-cgi7.4 74 auto mode
    1 /usr/bin/php-cgi7.0 70 manual mode
    2 /usr/bin/php-cgi7.2 72 manual mode
    3 /usr/bin/php-cgi7.3 73 manual mode
    4 /usr/bin/php-cgi7.4 74 manual mode

    Press <enter> to keep the current choice[*], or type selection number:
     
  6. kike28101

    kike28101 Member

    Read the part about "Panel not showing up/ server.sh script error".
    THIS POSSIBLE SOLUTION THAT YOU INDICATE ME, DOES NOT WORK.
    WE HAVE ALREADY TRIED IT SEVERAL TIMES AND IT DOESN'T WORK
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    This begs the question what exactly did you do? What happened instead of PHP version changing?
    It would be strange if the PHP version stays the same when you try to change it, and even stranger if nothing is printed on screen if error happens.
    Besides, this is the first time in this thread you write you have tried changing PHP version several times. Or is it something else you meant by "trying it"?
     
  8. kike28101

    kike28101 Member

    It does not work
    I select
    my PHP version that is suitable for my Debian 9 OS: PHP 7.0
    IT DOES NOT WORK

    If you want I can send you private access to my host.
    I have no problem with you connecting
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I go to sleep now. Back tomorrow.
     
  10. kike28101

    kike28101 Member

    OK Good rest
     
  11. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    This is the reason apache won't start. That is not a file ISPConfig creates, nor the instructions above to symlink, my guess is maybe it's a dangling symlink (ie. a symlink to a nonexistent file) and should just be removed, but what do you see from 'ls -l /etc/apache2/sites-*/*ispconfig*' ?
     
  12. kike28101

    kike28101 Member

    Hi Jesse
    Thanks for answering
    This is what it shows
    CODE
    -rw-r--r-- 1 root root 2313 Apr 25 21:45 /etc/apache2/sites-available/ispconfig.conf
    -rw-r--r-- 1 root root 3355 Oct 26 2020 /etc/apache2/sites-available/ispconfig.vhost
    lrwxrwxrwx 1 root root 47 Apr 22 18:09 /etc/apache2/sites-enabled/ispconfig.conf -> /etc/apache2/sites-available/000-ispconfig.conf
    lrwxrwxrwx 1 root root 48 Apr 22 18:09 /etc/apache2/sites-enabled/ispconfig.vhost -> /etc/apache2/sites-available/000-ispconfig.vhost
     
  13. kike28101

    kike28101 Member

    Ask
    Would it be good to reinstall apache2?
     
  14. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Ok, those bad links were caused by the second set of "ln" commands I posted earlier, which I edited incorrectly from the first set.
    Code:
    rm /etc/apache2/sites-enabled/ispconfig.conf
    rm/etc/apache2/sites-enabled/ispconfig.vhost
    rm /etc/apache2/sites-enabled/caminseivissa.org.vhost
    
    ln -s /etc/apache2/sites-available/ispconfig.conf /etc/apache2/sites-enabled/i000-spconfig.conf
    ln -s /etc/apache2/sites-available/ispconfig.vhost /etc/apache2/sites-enabled/000-ispconfig.vhost
    ln -s /etc/apache2/sites-available/caminseivissa.org.vhost /etc/apache2/sites-enabled/100-caminseivissa.org.vhost
    systemctl reload apache2
    
    If that causes an error it will likely list the same commands as earlier to get info, and you can check the apache error.log.
     
  15. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Thank you for trying to use code blocks, it does make reading log messages and such easier when used, eg. note the "Code:" section in my last post. You can enter code tags manually but they have to be in square brackets, or you can use the button in the editor to insert them (Insert > Code).
     
  16. kike28101

    kike28101 Member

    This is the result

    Code:
    rm /etc/apache2/sites-enabled/ispconfig.conf
    No such file or directory
    rm/etc/apache2/sites-enabled/ispconfig.vhost
    -bash: rm/etc/apache2/sites-enabled/ispconfig.vhost: No such file or directory
    rm /etc/apache2/sites-enabled/caminseivissa.org.vhost
    rm: cannot remove '/etc/apache2/sites-enabled/caminseivissa.org.vhost': No such file or directory
    
    ln -s /etc/apache2/sites-available/ispconfig.conf /etc/apache2/sites-enabled/i000-spconfig.conf
    ln -s /etc/apache2/sites-available/ispconfig.vhost /etc/apache2/sites-enabled/000-ispconfig.vhost
    ln -s /etc/apache2/sites-available/caminseivissa.org.vhost /etc/apache2/sites-enabled/100-caminseivissa.org.vhost
    systemctl reload apache2
    
    apache2.service is not active, cannot reload.
     
  17. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Use restart instead of reload.
     
  18. kike28101

    kike28101 Member

    I have used these codes, but it doesn't work
    Code:
    /etc/init.d/apache2 start
    /etc/init.d/apache2 restart
    sudo service apache2 start
    
     
  19. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Do you get an error, or ?
     
  20. kike28101

    kike28101 Member

    I don't get any error
    with this code it tells me that OK,
    but I can't access the ISPConfig panel
    Code:
    /etc/init.d/apache2 restart
    [ ok ] Restarting apache2 (via systemctl): apache2.service
    
     

Share This Page