Koozali.org: home of the SME Server

PHP on SME10

Offline stimzuk

  • ****
  • 154
  • +0/-0
PHP on SME10
« on: January 06, 2023, 06:34:57 PM »
Please help i don' find anything that helps in the Doc's even after hours (stupid me).
I upgraded sme9.2 to sme10.1.
From my windows-client i can access the Servermanger via browser and i can access the ibays. I even found my MySQL -DB's after upgrading and i can access them on the SME-Server10.1 with MariaDB. So far so good.
What ist with PHP? I read that with SME10 php-fpm ist used instead php, means what? Have i to do anything? Must i install php or is it deliverd with SME10?
How do i start php on my windows-client browser? In SME9.2 i used https://sme/phpmyadmin. How do i start it on SME10?
Sorry, a lot of the problems may be very clear to you but i am not a pro :(

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: PHP on SME10
« Reply #1 on: January 06, 2023, 08:31:30 PM »
Yes we use php-fpm for most things now.

Unless you have really specific requirements:

Code: [Select]
yum --enablerepo=smecontribs install smeserver-webhosting smeserver-phpmyadmin

(Please check - this is from memory)
...
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 Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: PHP on SME10
« Reply #2 on: January 06, 2023, 11:07:08 PM »
all ibays will default to php74 using dedicated php-fpm pool instead of using php module. from a user perspective this changes nothing. just enable php for the ibay as you usually did.
if you need more fine tuning follow John link. 

php modules only allows one version for all the server.  Php-fpm allow using php74 ok one site and php81 on another. This also allow tuning per pool of the variables you want using the contrib John pointed.

again for the end user same thing. open your website on an ibay where dynamic content is enabled in manager et voila.

Offline stimzuk

  • ****
  • 154
  • +0/-0
Re: PHP on SME10
« Reply #3 on: January 07, 2023, 09:00:48 AM »
Thank you very much. I made what Reetp suggested:
   yum --enablerepro=smecontribs install smeserver-webhosting smeserver-phpmyadmin
i even made a restart of the sme-server but after https://sme/phpmyadmin i still get the message:
   404 Not found    The requested URL /phpmyadmin/ was not found on this server

How do i start phpmyadmin?

Thank you

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: PHP on SME10
« Reply #4 on: January 07, 2023, 04:02:27 PM »
simply install the contrib. 
we both flew over the real question because we stopped on the question mark. 


all contribs are referenced on the wiki on the « contrib » page https://wiki.koozali.org/Category:Contrib

pick all those you need. 

Offline stimzuk

  • ****
  • 154
  • +0/-0
Re: PHP on SME10
« Reply #5 on: January 07, 2023, 05:58:03 PM »
Hi, sorry this answere really doesn't help. I spend hours on the documentation.
The simple question is if starting phpmyadmin on the win-client ist correct: https://sme/phpmyadmin ?
The win-client ist correctly conneted to the sme-server because https://sme/servermanger works very fine. So i assume https://sme/phpmyadmin should work in the same way. Bute i get the errormassage in the post before.
Thanks foe helping.

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: PHP on SME10
« Reply #6 on: January 07, 2023, 07:51:04 PM »
if your server name is sme
If your windows client is on the SME Server LAN
if your windows client uses SME Server DHCP
if your windows client uses SME Server DNS server.
If your have installed, enabled the contribs phpmyadmin

then yes https://sme/phpmyadmin should show you phpmyadmin interface.
but you should really use the full qualified domain name of your server or its ip. 

Offline stimzuk

  • ****
  • 154
  • +0/-0
Re: PHP on SME10
« Reply #7 on: January 07, 2023, 08:04:59 PM »
Hm..... suddenly it works. I played around and it works. Maybe i did something wrong....somewhere...
Thank you very much for helping and for your time!