Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
My web host is running a different PHP then the one Laravel is using. To overcome this I want Laravel to use another version of PHP. I'm having trouble finding where to do this. My question is it possible and if so where can I change it.
Laravel has a version of php as a dependancy. You cannot use a version of Laravel that requires, for example, PHP>=5.4 on a server that is using a version of PHP below 5.4.
If you have to use an older version of PHP, you need to use an older version of Laravel that supports your desired version of PHP.
Try searching the Laravel website for older versions, or consider upgrading your version of PHP to match Laravel's requirements.
If your web host is not running a version of PHP that supports Laravel (5.4+), they are a dangerous and unprofessional webhost and you should find a new one. PHP 5.3 and lower have been end-of-lifed (http://php.net/eol.php), meaning they may (and likely do) contain unpatched security holes and other bugs that will never be fixed.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I've got Apache + PHP 5.2.17 + mySQL on a Linux/Ubuntu server, and I was requested to upgrade the PHP version (I guess to 5.3.x or 5.4.x).
I would like to test my code in a versatile environment where I can switch among the PHP versions, and I'm trying to locate the proper software. I'm not sure whether 'UwAmp' or 'Laragon' could fit my needs (I don't mind to test it on a Windows machine).
Any suggestion is welcome. Thank you very much.
I've got Apache + PHP 5.2.17 + mySQL on a Linux/Ubuntu server, and I was requested to upgrade the PHP version (I guess to 5.3.x or 5.4.x).
Do yourself a favour and update to a version of php that have not been abandoned for years, at least 7.1. For reference, find the supported versions here. PHP 5.6 is not even in security fixes support anymore.
I would like to test my code in a versatile environment where I can switch among the PHP versions, and I'm trying to locate the proper software.
Use a local development server stack such as Ampps, MAMP, XAMP, or one of the myriad of such software. They allow for easy switching between php versions.
Alternatively, set up Travis CI with different php versions and a suite of tests. Travis is geared up to run tests suites in various PHP versions automagically.
Manually compiling and maintaining multiple versions of PHP, while doable, is not very practical if you actually wish to get things done. Using software that comes with multiple versions installed is arguably the only viable solution.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I recently registered to iPage web hosting, they are providing PHP Version 5.3.13 but Laravel 4.2 required PHP Version >= 5.4
Please guide me, how can I upgrade iPage php version or how can I configure laravel 4.2 to run?
You can't. Shared hosts like iPage (shared meaning they're based on traditional unix multiuser systems) do not allow end users to upgrade the version of PHP running on a server -- doing so would be chaos, as all users share the same PHP binaries.
Some shared hosts install multiple versions of PHP on their servers and provide a mechanism that allows users to switch between versions. It looks like iPage might offer this feature, although it's unclear if PHP 5.4 will be an option.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using the Opscode community PHP cookbook to install PHP on a node. The node is CentOS and I have attempted setting the install_method to "source" and also tried overriding the version in my Role file.
No matter what I do - Chef continues to install PHP 5.3.3.
I want to know how to use this cookbook to install a newer version of PHP - or understand if it's even possible. I see references to PHP 5.3.28 and 5.4.15 in the default attribute settings - so I am under the impression that it should be possible.
Does anyone know how I might accomplish this?
Chef simply uses the packages available in the systems package repositories. So that might be 5.3 in your case.
The reference to 5.4.15 is for the source install. You'd have to use another recipe
php::source
You could set the preferred version for PHP from chef
:php => {
:version => "5.5",
},
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
i installed the following s/w versions
php5.3.0
mysql5.0
now what is minimum requirement of apache server... anybody give right version to suggest me
thanks
Kumar
The best version is always the latest version.
This because with every updated version a lot of bugs and security problems are fixed.
Using an outdated version of software is never a good idea.
But then, sometimes you come accross poorly written software, or software written 10 years ago that still needs that old buggy software to run on. My advice: don't connect it to the internet.
Do you have to connect it to the itnernet? Look for another job ;)
As DCoder mentioned in the comment. ALWAYS test before deploying an update.
Minimum version of Apache server: 1.3.x (Windows, Unix)
Recommended version of Apache server: 2.x (Windows, Unix)
"We strongly recommend that users of all
earlier versions, including 1.3 family release, upgrade to to the
current 2.2 version as soon as possible." (source)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Most results I get on Google is how to get both versions running simultaneously on the same page but at different URLS but that's not what I want, I'd like for example to get http:\localhost to run PHP4 and PHP5 at the same time on the same page because I got a website that has old code from PHP4 that breaks up when loaded only in PHP5, and it has some parts made only in PHP5, so I would like to run both PHP versions at the same spot.
I'm on Windows XP running Apache, I wouldn't mind switching to IIS 2007 if it's required. I really need to do this I'm already aware of the security risk.
I know it's a repost but I got downvoted to oblivion because some of you don't want me to do this but I know I need to do this.
Update: the issue is that I have a site running locally that connects to a database I was told some of the code was in PHP4 and some in PHP5 and that both versions were required, I was assigned to fix this by running both versions, it's not a website that's connected to the internet so I figured no issues would happen.
Nopez. Not possible.
I think you have two options:
'embed' the other php version (iframe / ajax)
'patch' the old project to PHP5
I had to the second option a couple of times and it is do-able (all depending on the size and the code used of the project of course).