Koozali.org: home of the SME Server

Probleme php apres installation sme 10

Offline grabeul

  • 4
  • +0/-0
Probleme php apres installation sme 10
« on: September 24, 2025, 11:13:44 AM »
Bonjour,
je remplace mon ancien serveur par un nouveau et j'en profite pour faire la migration 9.2 vers 10.
J'ai fait une sauvegarde sur disque usb de mon 9.2 et je l'ai importé lors de l'installation de la version 10.
Tout les fichiers ont bien été transféré.
j'ai fait les mises à jours sme (via yum upgrade)
j'accède bien au server-manager et au phpmyadmin.
le probleme : je peux afficher une page en html mais une page en php me renvoie une erreur 500 sur toutes les ibays sauf la Primary qui elle fonctionne correctement.
Avez vous une idée ?
« Last Edit: September 24, 2025, 11:22:26 AM by grabeul »

Offline ReetP

  • *
  • 3,989
  • +6/-0
Re: Probleme php apres installation sme 10
« Reply #1 on: September 24, 2025, 01:29:43 PM »
Vous êtes en retard. La version 9 est obsolète depuis longtemps, ce qui complique la mise à jour vers la version 10, car certains éléments pourraient ne pas être disponibles.

Nous allons bientôt publier la version 11.

Vous devriez supprimer tous les modèles personnalisés, puis effectuer un nouveau test.

Consultez vos journaux pour détecter d'éventuelles erreurs.

Vous devriez également consulter les pages wiki sur les versions de PHP et PHP-FPM.

============

You are late to the party. v9 has been out of date for a long time which makes updating to v10 more difficult because some items may not be available.

We are soon going to release v11.

You should remove all custom templates and then test again.

Read your logs for errors.

You should also read the wiki pages on php versions and php-fpm.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline grabeul

  • 4
  • +0/-0
Re: Probleme php apres installation sme 10
« Reply #2 on: Today at 09:59:25 AM »
Merci pour la réponse. Je n'ai pas trouvé l'origine du problème. Je pensais faire une migration assez facilement entre la 9 et 10. Un transfert manuel étant nécessaire, je vais faire mes tests directement sur la version 11. J'ai installé la version 11 depuis une clé usb mais le système bloque sur l'emplacement des fichiers alors que cela fonctionnait en version 10. J'ai pu installer en passant par la version netinstall. J'ai réussi à transférer mes bases de données et leurs utilisateurs. Par contre je bloque sur le transfert avec rsynch entre les deux serveurs. Ma commande :
export RSYNC_PASSWORD="monpsw";rsync -auvz root@192.168.10.1:/home/e-smith/files/ibays/test/* /home/e-smith/files/ibays/test
fonctionne mais me demande le password root à chaque fois. Je voudrais faire un fichier bash pour automatisez tout cela mais je n'arrive pas à trouver un moyen qui ne me redemande pas le passord root à chaque fois.
j'ai essayé avec clé rsa sans succès (possible que j'ai mal fait). Si il existe une doc clair je suis preneur.

Une fois mes users et ibays transféré, il me restera un gros travail : modifier mes ibays avec mes page en php 5.3 vers 8.4

Offline ReetP

  • *
  • 3,989
  • +6/-0
Re: Probleme php apres installation sme 10
« Reply #3 on: Today at 10:42:53 AM »
Quote
I thought I'd be able to migrate between versions 9 and 10 fairly easily.

You could (though many of the issues are down to Redhat, not us).

But there are still lots of dufferences, just as there were wuth previous versions.

Use the correct methods and it isn't hard. Remember this is SME, not just any old system.

Quote
I'm going to run my tests directly on version 11.

You can but be aware it is Beta so may have issues (see bugzilla), many contribs are not yet migrated, and it may be even harder to jump from 9-11

Quote
I was able to install using the netinstall version.

https://wiki.koozali.org/Rocky2sme

You really should spend a lot of time reading the wiki.

Backup/Restore

The only way to really do this is backup/restore from a v10 backup. Anything else may cause issues.

You could have used this for v9-v10 and should be able to for v10-v11

https://wiki.koozali.org/Migratehelper

Again, read the wiki. There is a French version too...

Your RSA key issues will be to do with the fact that security has increased massively since v9 and your old keys are deprecated.

Hence use the correct methods to upgrade and save yourself a lot of trouble.

Quote
I'll have a big job left: modifying my ibays with my pages from PHP 5.3 to 8.4.

If you had kept up to date properly as advised you would not be in this position.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline grabeul

  • 4
  • +0/-0
Re: Probleme php apres installation sme 10
« Reply #4 on: Today at 11:31:23 AM »
Quote
You could have used this for v9-v10 and should be able to for v10-v11
https://wiki.koozali.org/Migratehelper
Again, read the wiki. There is a French version too...
Oui je l'ai lu.
Installation for SME 9 :
wget http://viewvc.koozali.org/smecontribs/rpms/smeserver-migratehelper/contribs10/migratehelper.sh -O /usr/bin/migratehelper.sh --no-check-certificate
renvoie une erreur 404. le fichier n'existe pas.

De plus :
Quote
Warning:
When starting this script :

/home/e-smith/files /home/e-smith/shares are EXCLUDED by default, because we expect a huge amount of user data that you could rsync later after having your new server up and running, and kept the old one up. This will allow you to be up and running faster than waiting to gzip gigabyte of data, transfer them and ungzip them.
Il faut bien faire un rsync entre les deux sites d'où ma question : peut on le faire sans taper le mot de passe root à chaque fois.

Quote
I'll have a big job left: modifying my ibays with my pages from PHP 5.3 to 8.4.

=> If you had kept up to date properly as advised you would not be in this position
Ce n'était pas un reproche mais juste une remarque.

Offline ReetP

  • *
  • 3,989
  • +6/-0
Re: Probleme php apres installation sme 10
« Reply #5 on: Today at 03:11:06 PM »
Oui je l'ai lu.
Installation for SME 9 :
wget http://viewvc.koozali.org/smecontribs/rpms/smeserver-migratehelper/contribs10/migratehelper.sh -O /usr/bin/migratehelper.sh --no-check-certificate
renvoie une erreur 404. le fichier n'existe pas.

Just check the mirror sites.

We are shutting down various old services so various links may no longer work, especially for links on v9 pages (which became obsolete on Nov 2020, nearly 5 years ago!!!). You should have upgraded by then so you have made life hard for yourself. Note that very shortly a lot more old EOL data will be removed as we will be upgrading all our infra directly after v11 is released.

Quote
De plus :Il faut bien faire un rsync entre les deux sites d'où ma question : peut on le faire sans taper le mot de passe root à chaque fois.
Ce n'était pas un reproche mais juste une remarque.

Either fix your ssh keys (better to copy data using the v10 server to retrieve from the v9 server), or do all the ibays in one go instead of individually, or accept you have to type the password in for each ibay if that is the rsync method you choose.

Quote
De plus :Il faut bien faire un rsync entre les deux sites d'où ma question : peut on le faire sans taper le mot de passe root à chaque fois.
Ce n'était pas un reproche mais juste une remarque.

Mine was a statement of fact. If you didn't want a comment you should have not made the statement.

See note No.3 in my sig......
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation