I think you’re looking at this the wrong way.
Having an old application that requires such a archaic PHP version is bad enough. That does not mean, your new WordPress installation needs to use that same old version though. Instead, I would suggest to keep PHP 5.2.17 for the legacy application and use the latest PHP version for WordPress.
There are various ways to do this, it all depends on how exactly your server is set up.
-
Check this answer from StackOverflow for an Apache way. It generally boils down to
AddHandler
andSetHandler
. -
This answer from ServerFault explains how to solve it via NGINX. The main idea it seems is to access other ports via
fastcgi_pass
.
Related Posts:
- PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- What exactly does “Posts page” do in WordPress?
- How do I make my function add variables/values to the $post object?
- Change comments form title on a page by page basis
- Load custom field value into div with AJAX
- Get the title before comma
- wp enqueue style and style sheet depth
- “Can’t use function return value in write context” error
- Display 4 chronological posts starting with a random post
- Displaying Only Certain Tags in Loop
- Duplicates with WP_Query loop
- Customized title tag for each page in pagination?
- WordPress automatically adds tags when pasting code, how to stop it?
- ACF: Only get first row of a Repeater Field
- using add_action for a header hook that has an additional parameter
- Woocommerce add to cart quantity buttons with AJAX
- How can I use wp_query to show all product data using just the products ID?
- WP add_action factory
- how to retrieve uploaded url of zip files
- save imported posts as drafts
- How to show phpinfo() only in a new tab?
- RecursiveDirectoryIterator not working in admin
- Ajax load more posts with multiple tax query
- Ajax call not working
- WordPress Sending data to Ajax with select option
- Auto-Select Parent Category as Primary
- How can I pass a custom/dynamic product to the Woocommerce cart?
- Long running queries
- How to create global title in header of wordpress theme
- comments sorting incorrectly across multiple pages
- auto-populating custom nav with all items from custom post type
- Saving plugin settings – ERROR: options page not found
- how to show only specific category for a template
- Trouble Installing WordPress Get PHP Not Running Answer
- WP_Query fails despite having 1 post
- get_posts works in the page template but not in a shortcode
- Add post with approval by the admin
- Strip Paragraph Tag
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- Getting different user data depending on where I use variable
- WordPress PHP command and ELSE IF problem
- WordPress produces identical hash all the time
- How to unserialize data from MySQL
- if ( ! function_exists
- Split site title and apply different classes
- using wp enqueue style to create a CSS file specifically for a page template
- Pass get data from anchor URL [closed]
- Shortcode for a Series of Elevating Image Files, Excluding a Range?
- Shortcode won’t execute
- Dynamic CSS through PHP issue
- posts_nav_link pulling in multiple post types
- How do I custom code the start page?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Remove password protection from all posts
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- Adding a custom meta field with default NULL value which is not selectable
- Custom html/php/jquery map code in WordPress/elementor?
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Get taxonomy terms that share a common object property
- My Custom Post Type AJAX Query is Returning no posts – why?
- Styling a category link
- Woocommerce display orders with products from specific categories to specific admins
- How to exclude meta no index pages from wp_list_pages
- Search bar for wp menu
- How to check a variable Changes
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Remove all feeds and return custom 404 page
- How do I change the “login” label in My Account page to “Registered Customer”
- wp_get_nav_menu_items() with ACF
- How to add custom attribute to all outofstock and all instock products automatically?
- Site infected by link
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- sessionStorage saves input value in browser but it is not loaded in the form field
- Multiple Arrays for Custom Post Query using Boostrap accordions and ACF repeater fields
- Different Logo for Different Pages
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- SQL Query Search page
- Unable to get Post Category Name and URL
- Create a dynamic buddupress tab
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Accessing external database: ERR_INCOMPLETE_CHUNKED_ENCODING
- Trying send mail from Theme page
- Would it be possible to route WordPress Through an MVC Application
- How can I put a custom field as the link of a button shortcode?
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- jQuery vs. $ – Creating jQuery scripts in JavaScript in WordPress using External Libraries
- Problem using explode inside add_shortcode() callback funciton [closed]
- WordPress: Create A Widget to Accompany Plugin
- How to post data to a word press site in case of a mobile app
- What languages were used to build WordPress? [closed]
- How to strip/remove all blank spaces at the beginning/end of a search string
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- Millennial Media PHP Setup ( Code Integration )
- Insert into db with foreach problem
- why is kses removing semicolon from inline style?
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- links Slick jS library using wp_enqueue_scripts not pulling
- How to run site locally after downloading database
- How to change shipping method title based on cart amount?