• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

php

  1. Kulturmensch

    Resolved Wrong php version in root bash

    If I try to start a script in bash as root in /usr/local/bin the php version of the bash is shown as 7.4. Some commands of the script are belonging to my domain i.e using "drush" which uses php 8.1 as I am using for the whole domain. As result I get the error: PHP Fatal error: Composer...
  2. Nicola Urbinati

    Resolved PHP 8.0, 8.1 not starting

    Hi, Just installed PHP 8.0 and 8.1, but the services do not start properly. In the GUI, under the services tool, they are given as: 8.0: not started 8.1: not configured They both give the same result with: ● plesk-php81-fpm.service - The PHP 8.1.9 FastCGI Process Manager Loaded: loaded...
  3. AhmedEx

    Issue Nginx configuration to accept websocket requests (SSL/WSS)

    i have plesk server with apache2 and nginx and i have a websocket app it works on port 2589 and i used ratchet and autobahn to work with websocket, nginx version nginx version: nginx/1.20.2 and ufw status Status: inactive and my nginx directive config for websocket location ^~ /WsConn {...
  4. jhernanper

    Issue Unable to install SuiteCRM: Symfony Runtime Exception. Tried everything - desperate

    Hi everyone, I hope you are all having a great summer!!! This is my first post in this forum, so please bear with me! My server has Plesk Obsidian v18.0.45 running over Ubuntu 20.04.4 LTS, with Apache version 2.4.41 and PHP version 8.0.21. Everything on a VPS with a dedicated IP. I have...
  5. M

    Issue Php 7 vs 8 performance issue

    Hello everyone, i have two dedicated servers with plesk obsidian, both running debian 10 (10.5 and 10.11) and both hosting moderate traffic websites. I tried updating php version from the current 7.3.33 to more modern ones (7.4.30, 8.0.20, 8.1.7) but i have worse performance using them. The...
  6. W

    WordPress Toolkit Application Update Notifcations Not Sending

    The Plesk Notifications for WordPress Toolkit Application Updates are not sent. However, I have implemented the provided hotfix but this has not resolved the issue. Additionally, in My Plesk > Tools & Settings > Scheduled Tasks -- the list of tasks is completely empty. However, all the other...
  7. L

    Resolved Php script is working from the browser but not from Cron Job

    Hello.... I have this simple code to check if a php file is running if not it start it... error_reporting(E_ALL ^ E_NOTICE); $output = shell_exec('ps -C php -f'); if (strpos($output, "php launchListener.php")===false) { shell_exec('php launchListener.php > /dev/null &'); } It work...
  8. Hans | Pixel Creation

    Question More info on phpenv

    In the changelog for Plesk Obsidian 18.0.44 it says “The console now works using a domain’s PHP version instead of the system PHP.” We use chroot extensively and I have a setup where I add all available PHP versions and have symlinks in the PATH, including a symlink for `php` to the most recent...
  9. V

    Question PHP and NodeJS together

    Hi all, I have Laravel InertiaJs web. Works really well and superfast. Laravel InertiaJs is basically PHP server serving Vue pages (JS templates). My problem starts in moment I want to start SSR (Server Side Render) of these Vue pages - done with NodeJS. I need PHP server to serve web pages...
  10. N

    Issue Services page - PHP-FPM version list

    I have a list of PHP-FPM services that looks kinda strange. First off, I'm sure a part of these is actually uninstalled but is still present here. By the way, how do I check it? Second, why are all they shown as disabled? In fact, my websites are running using these components - which means...
  11. Sven Wappler

    Question PHP CLI versions in chrooted environment

    Hello, first I would like to ask a question of understanding because I am new to Plesk users. I am a server administrator and PHP developer and would like to use Plesk as a reseller among other things. I am also looking for solutions for partner agencies. PHP software needs more and more access...
  12. M

    Resolved Grant to switch php setting

    Hello everyone, for first, i'm sorry if this is not right section, and for my English :) I don't know but i can't switch php version for a single domain. I have some domains with php 7.3.3 that i would like to upgrade them, but i can't. I finded on internet that, maybe, i can enable plesk to...
  13. A

    Resolved Need help adding a customer with a service plan using with REST Api/CLI method

    Hello, so I am in the process of creating a hosting website. I'm fairly new to using APIs but I have managed to successfully connect and create a user using PHP/curl. I'll just show my code as its probably a better way to show you where I am up to: So that above bit works fine, I can create a...
  14. J

    Input do you still need to use disabled_functions with cloudlinux alt-php and cagefs

    Hi, In the past plesk used to disable php functions like exec passthru shell_exec system etc. I noticed that this isn't the case anymore and by default only opcache_get_status is disabled. I wonder if this is the best and secure configuration. We currently use Cloudlinux (7 and 8) with lsphp...
  15. Cordal

    Resolved php.ini files

    I have a server with debian 10 and plesk 18.0.41 with different versions of php, where the php.ini files of each version and the general php file are located, since in /etc/php/ there is only php 7.3, which is the that the system brings by default. Thanks in advance
  16. R

    Question Missing Authorization Headers in FPM application served by Nginx

    Hi All, I've been struggling with this issue for the last two days and I've concluded that this a server configuration issue. I have a Laravel application running on my server which serves a simple API. I'm trying to use a personal access token in postman to access the endpoint passing it as a...
  17. D

    Question vulnerability CVE-2021-21708 - PHP Code Execution

    Hello Pleskians and Plesk-Team! i saw a new exploit in PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, As u can read here: NVD - CVE-2021-21708 or you do a quick google search on your own: "CVE-2021-21708" So as workaround for now we surely can update our...
  18. TimReeves

    Resolved Webmail - PHP not working, file downloaded not executed

    It's a new server I'm installing, Debian 10, a Plesk image was already installed. When selecting packages in the installer I saw that one can remove the Apache package, and since I use only Nginx I did. But then webmail was also automatically removed, so I reinstalled both Apache packages. But...
  19. K

    Question Php 8 in Plesk but php 7 directory

    Hi there! In Plesk I can enable both PHP 7x and PHP 8 which is also what I offer to my clients. /opt/plesk However when I logon to my server /etc/php states only PHP 7. Now I'm a bit confused. :(
  20. S

    Question PHP document root

    I tried searching on multiple sites, but did not found anything that can help me. Is it possible to change the PHP DOCUMENT_ROOT to the httpdocs folder inside plesk? This is what I am using:
Back
Top