Laravel5.5 can't Install Image/Intervention - php

I just need some help I try to install image/intervention into my project, but got the problem message as the image below:
Do I have to upgrade PHP VERSION to a higher one?
I am really appreciated if you can help me solve this problem.
Thank You
Siripong

Take a backup of your htdocs and data folder (subfolder of MySQL folder), reinstall upgraded version of xampp and replace those folders.
N.B. Don't forget to take backup of your project in htdocs.

When you visit https://packagist.org/packages/intervention/image you can see that the requirement is php >=5.4.0 so all good here. I think is the dependencies that need a higher php version. The temporary solution may be, to downgrade the package to version 2.3 or even lower so you can make sure that the old versions are working. They need to fix the package if this is the case and if it is working for you with a lower version maybe you can used it like that, but depends on what your app needs.

Related

Is it posible to copy/paste xampp folder and make it work in another computer?

I have a xampp server in a laptop with an application running as development environment, and I need to move all the server to a new computer.
Will it work if I copy/paste the complete xampp folder from one to another, or is it needed to "install" xampp from the installation package in the new computer?
I need it to be the exact version because productive environment does not support a newer version of PHP (actual version is 5.5.11).
I already tried downgrading a xampp installation but it seems that I need to install also the xampp version that supports the PHP version.
I did not succeed on finding that specific version of PHP on surceforce.
Any clues would be appreciated.
I think you should consider to use VirtualBox or/and Docker for future :)
So I've figured out it can be done. I installed the newest version then copied all config folders from my actual version along with all my files.

I have developed am application using PHP7 but on the server there is PHP5 and we cannot upgrade the PHP there

Please help me, I have developed an application using Yii2 Framework which requires PHP5.6 or greater, and while deployment of the application on the test server I have noticed that on the test server we are using PHP5.5, So please tell me what can I do? The test server is running Ubuntu.
(Minimum requirement of Yii2 is PHP5.6 and we are using PHP5.5)
Thank You.
if I recall correctly, PHP 5.5.X and 5.6.X are not that different. So if you can deploy your application and it runs properly, you should be fine. If you are using composer, it might be harder (or impossible) to spoof your PHP version, though.
My two cents:
You tagged AWS (and therefor probably EC2), so why don't you just update your PHP version? Why don't you run your application on PHP 7.X anyway? It is a great improvement - performance-wise.
You can try a few things...
1) Do you need to have the dev modules from Composer on the test server? If not do a composer install —no-dev
2) Another switch worth trying on the test server is “--ignore-platform-reqs” I don’t recommend it and even though composer install the files the application might not work.
3) If the above isn’t a fix for you, modify your Composer file to put in the constraints of your environments, change your local environment to match the test server, and re-factor the application if necessary. I’d do that instead of rewriting a whole app in Yii1.
You might want to edit your question and add the information about your composer.json file. Do you commit the composer.lock file to source control?
Additionally, not wise for your company to use anything older than PHP 5.6. And PHP 5.6 will have security support ended in Dec 2018. http://php.net/supported-versions.php
Read the following PHP documentation linked below, particularly the backward incompatibility changes and deprecated features. If you use any of those, you need to change your code. If you don't, then you should be fine. You need to test it.
http://php.net/manual/en/migration56.php

Updating Codeigniter 1.7.3 to 3.1.7

I am trying to upgrade from CI version 1.7.3 to CI Version 3.1.7. The problem I have is for some unknown reason the User Guide for 3.1.7 DOES NOT even mention upgrading from version 1.7.3 to version 2.0-let alone upgrading from 1.7.3 to version 3.1.7. How can I get a list of changes made from version 1.7.3 to 3.1.7, IF codeigniter's own user' guide does not even MENTION my version?
I do remember reading something about changing CI version 1.7.2 to version 1.7.3, but then, I am not sure if that means I should follow the upgrade steps for 1.7.2?
So, if I am to follow the steps to upgrade from 1.7.2 to 2.0 then what was the point of upgrading to 1.7.3 to begin with? Any ideas would be greatly appreciated.
Thanks in advance!
This is the current upgrade paths on the CI Site. You need to upgrade from 1.7.x to 2.x, then 2.x to 3.x.
Most of it is pretty simple, but you will want to read carefully from 2.2 -> 3, as that has the most changes.
In response to the comment about system folders, in general you are always entirely deleting the existing system folder in your current project, and then putting in the new system folder from the version you are upgrading too. It is important to delete the old one first, not simply replace it, as sometimes files are removed and not replaced in upgrades.
The caveat is that this is only safe if you have used the framework as intended, and not modified any file inside the system folder. If you have, you will still need to do the aforementioned steps, but you will then need to address your previous modification, perhaps by re-hacking the system files.

Upgrading to PHP 5.5 MAMP PRO

I'm not a programming expert but I am trying to get more into Dynamic Website design using PHP. There's a hashing library on the new PHP version 5.5 that I want to use on a project but right now I'm running PHP 5.4. I use MAMP PRO V 2.1.4 and after looking online and on their site I couldn't find anything with step-by-step instructions on how to update the current PHP version I'm using. I was able to download a v5.5 folder from their site that they say is compatible with the version of MAMP I own. Here's what I've tried so far...
Ok so I looked at the php info page.
It looks like I need to add the new php version folder to my MAMP/bin/php folder and I did that. But it still doesn't show up as a selection on MAMP Pro.
So I read somewhere that MAMP Pro V 2.x only gives you two options for PHP and that I should rename the other folders in the PHP file.
I feel like I'm missing a important step. Any advice would be great! If you have any questions please ask. Hopefully I can figure this out and this post will help future non-program savvy web designers too.
Probably the esasiest way is to copy your PHP files somewhere else and then use Appdelete or similar, and delete the MAMP folder in your applications folder and re-install. I had to do this after a Yosemite install broke the older version of MAMP. Why keep the older versions?
I agree reinstall is very safe. u dont need to take a copy of old MAMP. the new install does it on its own. just feel free to downlod new MAMP and click install.
only care u need to take is this
Edit httpd.conf and open up line to include vhosts.conf and copy old vhosts.conf from old MAMP folder.

How to compile WSO2 WFS PHP 2.1.0 or where to get latest binaries

I'm having trouble compiling the WSO PHP framework on Windows. The latest version is here on github https://github.com/wso2/wsf. I've been trying to follow the instructions located at /php/README.INSTALL_WIN32
The problem is that the folder structure in github does not match what that build.bat is expecting and the build fails.
I'm having to do this as part of a website running an old version of php is being upgraded to 5.3 and still needs WSF to run.
I can't find the binaries anywhere pre compiled - if someone knows where they are then that would save having to try compiling them. If not, any help in the compile process is appreciated.
Thanks
I ran into the same problem as you except when trying to compile under Linux, I found the solution to be first configure/compiling the C components from the source from here, copying the contents after make into a new folder 'wsf_c' inside the php fodler and then using the build script within the php folder of the sources from Github. I know you've likely found a way around this already but I hope this may help someone.

Categories