Error php7.4-fpm

Hello, friends! Peace and goodness to everyone! Spring mood!

I would like to share that a problem arose while adding a certificate for a subdomain.
When I created the subdomain, I forgot the WWW alias
Added a alias.
The certificate for the subdomain has already been received, I see a warning, a new certificate is needed if an alias is added.
I agree.
And the HCP freezes.

I rebooted the server, starting PHP 7.4 returned an error.
I call the status and see that the process completed with an error.
I’m having a hard time diagnosing the error. I am attaching a screenshot with an error, maybe someone has the same case, please help me understand what the error is.

Thank you

Hi @MrMax,

As you can see, the complete error is not shown in the screenshot you shared so I’m guessing what the actual error is. The next time, use this command:

systemctl status php7.4-fpm --no-pager -l

Seems you installed ioncube and you didn’t add the right conf, at least not in the right order. Ioncube must be loaded before any other Zend extension so the ini file you should add to /etc/php/7.4/cli/conf.d/ and /etc/php/7.4/fpm/conf.d/ should look to something like this 00-ioncube-loader.ini the first 00 will do that ioncube module starts the first.

Thank you very much!
I did everything as you said, installed 00-ioncube.ini
And everything worked!

Thank you so much!
Good luck to you, you helped me a lot!

1 Like

What can you check if PHP settings are not saved?
I go to the control panel, select the PHP version and want to change the amount of memory. Settings are not saved.
I go to the “Advanced” settings, and there it is empty.

Please tell me, I’m confused, I’ve already had the whole day today))
Sorry if this is a stupid question. I probably changed something myself during testing, but now I can’t remember.
Please, give me a little more help please

The first you could check are the Nginx logs located here: /var/log/hestia/

In basic options, can you see the data in the fields?

As root, show the output of these commands and please, avoid screenshots, copy and paste the output, select the output here and click on this icon </> so the output will be formatted and it will be easiest to read it.

v-list-sys-php-config json
ls -lh /etc/php/*/*/php.ini

Also this command but there is no need to show the entire output, only whether you see all the output of php.ini file.

I’m using php 7.4 as example but it would be good to test the command for all the php versions installed:

v-open-fs-config /etc/php/7.4/fpm/php.ini

The file output is there. I can also see it in the FTP client
On those files where the size is 0, the file itself is empty inside

root@profi-host:~# v-list-sys-php-config json
{
    "CONFIG": {
        "memory_limit": "128M",
        "max_execution_time": "30",
        "max_input_time": "60",
        "upload_max_filesize": "2M",
        "post_max_size": "8M",
        "display_errors": "Off",
        "error_reporting": "E_ALL & ~E_DEPRECATED & ~E_STRICT",
        "config_path": "/etc/php/5.6/fpm/php.ini /etc/php/7.4/fpm/php.ini /etc/php/8.2/fpm/php.ini /etc/php/8.0/fpm/php.ini /etc/php/7.3/fpm/php.ini /                  etc/php/8.1/fpm/php.ini /etc/php/8.3/fpm/php.ini"
        }
}
root@profi-host:~# ls -lh /etc/php/*/*/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/5.6/cli/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/5.6/fpm/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/7.3/apache2/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/7.3/cli/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/7.3/fpm/php.ini
-rw-r--r-- 1 root root 72K Apr 13 22:14 /etc/php/7.4/cli/php.ini
-rw-r--r-- 1 root root 72K Apr 13 22:14 /etc/php/7.4/fpm/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.0/apache2/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.0/cli/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.0/fpm/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.1/cli/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.1/fpm/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.2/apache2/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.2/cli/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.2/fpm/php.ini
-rw-r--r-- 1 root root   0 Apr 13 22:14 /etc/php/8.2/phpdbg/php.ini
-rw-r--r-- 1 root root 72K Apr 13 22:14 /etc/php/8.3/apache2/php.ini
-rw-r--r-- 1 root root 72K Apr 13 22:14 /etc/php/8.3/cli/php.ini
-rw-r--r-- 1 root root 72K Apr 13 22:14 /etc/php/8.3/fpm/php.ini
-rw-r--r-- 1 root root 72K Apr 13 22:14 /etc/php/8.3/phpdbg/php.ini

The question is… why?

Remove all the php versions you are no using with these commands:

v-delete-web-php 5.6
v-delete-web-php 7.3
v-delete-web-php 8.0
v-delete-web-php 8.1
v-delete-web-php 8.2

I completed everything.
The configuration file has appeared!
I am very happy.
The settings are saved.

If I can continue correctly, it is logical that now you can try installing additional versions from the panel.
Do I understand correctly?

1 Like

Yes, you can add php version from the panel or via command line:

For example:

v-add-web-php 8.2

You are just a very golden person))
Your help is priceless.
What would I do now to quickly learn the basic signs.
A very good thing forum.
And it’s great when such people can help you.

I wish you peace, goodness, success in your business!
Lovely and enjoy life!

:beers:

1 Like