Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6861017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:28:55+00:00 2026-05-27T02:28:55+00:00

I am using php version 5.3 on media temple’s grid server, however when I

  • 0

I am using php version 5.3 on media temple’s grid server, however when I call a file using exec() the page is executing in PHP version: 4.4.9

The reason I am using exec() is to process the file in the background.

This is probably a simple question, but how do I manually set the PHP version to 5.3 for this file without using .htaccess?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:28:56+00:00Added an answer on May 27, 2026 at 2:28 am

    The PHP interpreter you invoke via exec() is often a CGI version installed on the server as /usr/bin/php. You need to find out if a more contemporary version is available and then call the interpreter explicitly:

    exec("/usr/bin/php-5.3  your-script.php  &");
    
    # or just adapt your scripts shebang #!/usr/bin/php5
    

    (Just an example, the filename will be different. Also you can usually leave out the path. It’s mostly just security relevant for setuid binaries.)

    You might find out about other versions via print_r(glob("/usr/bin/php*")). But asking your hoster might be a better idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using PHP Version 5.1.6 I have a string (session file) and need to
I'm using PHP version 5.3.2 on both my local development server and remote web
I'm using two different version of php on two different OS's. One is 5.2.9
We're using the Mantis bugtracker (version 1.1.8), which is based on PHP. To ease
I'm using XAMPP (latest version) on OS 10.6.2, that's bundled with PHP 5.3.0 I
Using PHP, it's possible to read off the contents of a file using fopen
I'm using PHP Version 5.1.6 and trying to escape a query string from my
using PHP Version 5.3.5 I am going insane. This piece of code is giving
I've convinced my boss to do the typesetting stuff using PHP(PHP Version 5.2.8). And
I'm using PHP Markdown (version 1.0.1n, updated October 2009) to display text saved to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.