I am always studying.
Regarding the details of the title, in the standard plan of Sakura server
Create the following file to change the PHP version for each domain
I uploaded it to the root directory of the domain.


Action myphp-script /aaa/bbb/php74.cgi
AddHandler myphp-script .php .html


exec /usr/local/php/7.4/bin/php-cgi

When I uploaded it, I got a 500 Internal Server Error.

If i check the log

AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use'LimitInternalRecursion' to increase the limit if necessary. Use'LogLevel debug' to get a backtrace

When I checked it, I found that it was an error because the redirect reached the specified value.
I don't know why it happens.

Would you please tell me what caused it and how to avoid it?

Thank you.

The current version of php is low, and multiple sites are running with wordpress in that state, but the version of wordpress itself is also low, and the theme used is also using multiple tags that can not be used in the latest version. I am in a situation where I cannot update wordpress. Therefore, we installed the latest wordpress in the subdomain and tested the theme there. In order to check and test with multiple people and distant people, we decided to do it as close to the production environment as possible instead of the local environment. So, I would like to change the PHP version for each domain in order to install the latest wordpress with the current service running.
Also, since it is difficult to switch multiple sites at once, I asked a question because it is necessary to change the PHP version in the domain in order to replace each site with the latest one.

Addendum 2
HereI tried to change the permissions of the file with reference to
The same error occurred.

  • Answer # 1

    By deleting all the files in the corresponding upload folder and uploading again
    I was able to change the PHP version of only the target domain.
    I used the same file, so I don't know why it's possible. .. ..
    Since the purpose has been achieved, I will solve it once.
    I will add it if it becomes clear in the future.