Force PHP5 to use .php extension in a Directory
Problem: By default Lunarpages uses PHP4. There is an option to install PHP5, but the server keeps reporting PHP4 as default thus breaking some php apps that require PHP5 in order to install/run.
Solution: If you wish to set the PHP5 to run for a specific directory and only that directory and it's sub directories it can be done with the following code in a .htaccess:
<FilesMatch .php>
SetHandler application/x-httpd-php5
</FilesMatch>
If you're looking to run PHP5 across your entire account we recommend you make use of the PHP Configuration option page found in your accounts cPanel.
No comments:
Post a Comment