Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home PHP Upgrade/Switch To PHP 5.0 5.1 5.2 5.3 With .htaccess

Upgrade/Switch To PHP 5.0 5.1 5.2 5.3 With .htaccess

.htaccess is the default Apache’s directory-level configuration file. It provides the ability to customize configuration directives. In this tutorial, I’ll show how to simply upgrade or switch your PHP version with .htaccess.

First, create a new file named: .htaccess or if you had it, open it and add the following line on the top of the file. Note that it’s always in the root of your website directory.

Upgrade/switch to PHP 5

AddHandler application/x-httpd-php5 .php .php5 .php4 .php3

— Or you can try —

Upgrade/switch to PHP 5.1

AddHandler application/x-httpd-php51 .php .php5 .php4 .php3

Upgrade/switch to PHP 5.2

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

Upgrade/switch to PHP 5.3

AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

— Or —

Downgrade/switch to PHP 4

AddHandler application/x-httpd-php4 .php .php4 .php3

May 17, 2011Hoan Huynh
Auto Convert Text To URL Link And MailTo Email Address With ASP.NET C#Fix session_start() open(/tmp) failed Permission Denied With .htaccess, ini_set and php.ini
You Might Also Like:
  • Fix session_start() open(/tmp) failed Permission Denied With .htaccess, ini_set and php.ini
  • Step By Step Upgrade Piwik From 1.2 To 1.4
  • Virtualmin Upgrade PHP
  • Protected Web Directories With .htaccess
  • Linux Find Out PHP/ MySQL/ MySQLD/ HTTPD … Command File Location
  • Upgrading To .Net Framework 4 Makes Form Elements Become Undefinded Or Unavailable
  • HTTP/ HTTPS Document, CGI-BIN And Access/ Error Logs On cPanel, Plesk And VirtualMin
  • How to install PHP extension without re-compiling PHP
  • How To Check And Start An Application If It Is Not Running In Windows
  • How To Track Website With Multiple Google Analytisc Accounts
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

9 years ago PHP, Tips And Tricksapache, How To, htaccess237
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
21,918 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
19,746 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
15,583 views
JQuery Allow only numeric characters or only alphabet characters in textbox
13,094 views
C# Read Json From URL And Parse/Deserialize Json
9,557 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • Research Paper Writing Service
  • Annotated Bibliography Example – How it Can Help You
  • Essay Writing Online Tips – How to Write Essays Online With Essay Proof Editing
  • Get Research Paper Assistance From Professional Help
  • Customized Essay Writing Agency – Why You Want It
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (28)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (62)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development