How can I change the PHP version to 5.2 on a server using either an .htaccess of php.ini file?
Locate the . htaccess file, right-click on it, and select edit. At the top of the file, insert the PHP handler for the version you would like to use. If there is a handler in the file already, it should be removed or replaced with your new handler.
ini is used for the whole server while the configuration in a . htaccess file is only used when a request goes to the directory or subdirectory the . htaccess file is located in. So you can have a global or default configuration in your php.
Adding
AddHandler application/x-httpd-php52 .php .php5 .php4 .php3
to your .htaccess might work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With