Issues with some sites (New and Old) after migrating to Ubuntu 24.04.1 lts

Discussion in 'ISPConfig 3 Priority Support' started by whiz_kid_uk, Oct 31, 2024.

  1. whiz_kid_uk

    whiz_kid_uk Member HowtoForge Supporter

    Hey Guys,
    Its not that often I ask for help however I have a strange problem, that googling, and reading I cannot find the answer too.
    I have upgraded my little server to Ubuntu 24.04.1 ltd, using the upgrade guide. Trying to make sure I have not missed any steps..

    The Issue I have is with new sites is when I create the site in ISPconfig, and add any php files, I get the following error
    The following error occurred:
    You have used invalid syntax.

    Please contact the webmaster with any queries.

    From the console PHP - v = PHP 8.3.13 (cli)
    If I change the default php versions on the sites afected it does not make any change, I do have several versions installed.

    ISPconfig its self seems to be working well, and other sites on the server are good too, which is why I am struggling with the actual issue. If I CLI to the server and go to the web site directory, and run php jez.php, the file runs fine.

    update-alternatives --config php * 0 /usr/bin/php8.3 83 auto mode
    update-alternatives --config php-cgi * 0 /usr/bin/php-cgi8.3 83 auto mode
    update-alternatives --config php-fpm.sock * 0 /run/php/php8.3-fpm.sock 83 auto mode


    Clearly I have either missed something, and / or screwed somthing -

    When updating I did also run this command to update and install the requirements for PHP
    apt -y install php8.3 php8.3-cli php8.3-cgi php8.3-fpm php8.3-gd php8.3-mysql php8.3-imap php8.3-curl php8.3-intl php8.3-pspell php8.3-sqlite3 php8.3-tidy php8.3-xsl php8.3-zip php8.3-mbstring php8.3-soap php8.3-opcache php8.3-common php8.3-readline php8.3-xml curl

    Any ideas please, and I am pulling my hair out (Even though I dont have any !)

    Cheers
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the error.log file of the website, it should show you what the reason for the error is.
     
  3. whiz_kid_uk

    whiz_kid_uk Member HowtoForge Supporter

    Hey @till, The log file is blank ? 0 Bytes.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you have vhost files with .err file ending for the affected sites in the apache or nginx sites-available folder?
     
  5. whiz_kid_uk

    whiz_kid_uk Member HowtoForge Supporter

    I have just checked there are no files with .err in sites-available.
     
  6. whiz_kid_uk

    whiz_kid_uk Member HowtoForge Supporter

    I think I have solved it. Stipped off all PHP's and reinstalled. Will come back shortly
     
    till likes this.
  7. whiz_kid_uk

    whiz_kid_uk Member HowtoForge Supporter

    Hey Till, thank you for your help - my changes above sorted the issue..
     
    till likes this.

Share This Page