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
#!/bin/sh 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?
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.
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.
- after upgrading the php version of the rental server from 58 to 74, composer stopped working on ssh connections
- when i transfer a php file to the php server of xfree, i can't see it with internal server error (permissions are fine )
- wordpress - cooperation between vs code and sakura server
- php - i want to change the memory_limit setting to solve the memory shortage
- php - change data in laravel intermediate table
- when i run [php artisan server] in the laravel terminal, the server does not start
- php version upgrade
- the shape of the data in the dataset in cakephp4? i want to change the data type
- php - the built-in server does not start properly
- php - i want to save a file on another server using the move_uploaded_file function
- php - i want the greeting to change depending on the time of day
- [php] i want to execute the file of server b from server a and get the result
- php - i want to run a file on another server using curl
- php - what version should i use when using laravel in practice?
- php - about the version when developing using the framework
- i want to rearrange the latest version of old php programs!
- php - i want to change the product name dynamically
- php - change model reference table
- php - i want to change the number of pages, but i only go to 2 pages
- php : How to prohibit a certain device on the site?
- php : Laravel .htaccess.
- How to configure redirection for PHP site page?
- php : Safari downloads the file instead of opening the page
- php : Please help with redirect
- php : Unable to Check HTAccess File, Ensure It Is Readable HTCCESS Error