S
S
Sazoks2019-06-06 07:42:44
PHP
Sazoks, 2019-06-06 07:42:44

Why did the VPS work normally after switching from the Apache module to CGI?

We keep a site on VPS with a friend. Recently, when uploading photos, we caught an http error. I thought for a long time what the problem was ... And I checked the access rights, and rebooted the server, and reinstalled WP, ​​in general, I did everything! Nothing, as there was a mistake, and remained. I don't know why, but my friend suddenly decided to change the PHP mode from the Apache module to CGI and ... oh gods! Everything worked! Neither I nor he knows what it is connected with. Why did we do it all, but it all worked. I was wondering why. Who has been in this thread for a long time, tell me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-06-06
@Sazoks

1. in the config there was some kind of shitty directive when you changed the php view, you regenerated the config, as a result of this, the problem went away.
2. CGI - in your case, I think you were not stubborn and you have FastCGI or PHP-FPM
in fact, for this whole family, all php_flag, php_admin_value, php_admin_flag do not work in .htaccess
As a result of this, there could be errors, for example php_admin_value session.save_path = was by default and not the one in .htaccess
3. different php versions, when changing the php view, the php version could also change, because completely different settings are involved, or even compiled in different folders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question