George T Posted November 16, 2013 Share Posted November 16, 2013 Hello to PrestaShop Experts. What is the BEST and most compatible version of PHP that one may select? I am currently using: PHP 5.3.26 (I am in control of using any version up to the latest available) MySQL 5.5.32-cll PrestaShop 1.5.6 (currently, the latest stable release) ONLY EXPERT ADVICE PLEASE (PrestaShop members -OR- only from those who have tested various version and have reached to their conclusion). THANK YOU IN ADVANCE. (note that I have read PrestaShop's suggestion and that of other authors; they have outdated / conflicting information...) Link to comment Share on other sites More sharing options...
Rolige Posted November 16, 2013 Share Posted November 16, 2013 I think php 5.3.x is the best for prestashop 1.5.x Link to comment Share on other sites More sharing options...
El Patron Posted November 16, 2013 Share Posted November 16, 2013 fast cgi 2 Link to comment Share on other sites More sharing options...
NemoPS Posted November 16, 2013 Share Posted November 16, 2013 I personally found 5.4 to run fine as well 1 Link to comment Share on other sites More sharing options...
vekia Posted November 16, 2013 Share Posted November 16, 2013 The same as Nemo I'm on 5.4 and works very very well Usually im using the latest available php version, you have to note that old 1.4.x version will work, but you will see a lot of deprecated notifications (due to the functions in php that were deprecated) 1 Link to comment Share on other sites More sharing options...
bellini13 Posted November 16, 2013 Share Posted November 16, 2013 (edited) Instead of stating who should reply, just let folks reply next time, and feel free to ignore the answers you do not like ONLY EXPERT ADVICE PLEASE(PrestaShop members -OR- only from those who have tested various version and have reached to their conclusion). Edited November 16, 2013 by bellini13 (see edit history) 4 Link to comment Share on other sites More sharing options...
Rolige Posted November 16, 2013 Share Posted November 16, 2013 Well i think PS 1.5 was designed based on php 5.3 because this version was the most stable when PS 1.5 started. At this moment php 5.4 is the best option for whatever project and i think would be the perfect option for PS 1.6And php 5.5 is relatively new and is not recommended to develop This is only my view point but, like vekia said, maybe works perfectly to in php 5.4, to be honest i don't have tested in php 5.4, he is very experienced and maybe if it's the best option. Link to comment Share on other sites More sharing options...
vekia Posted November 17, 2013 Share Posted November 17, 2013 php 5.3 has got several critical vulnerabilities like CVE-2011-3268, For security purposes if i were you I will use 5.4.21, the latest stable 5.4.x version Link to comment Share on other sites More sharing options...
George T Posted November 23, 2013 Author Share Posted November 23, 2013 php 5.3 has got several critical vulnerabilities like CVE-2011-3268, For security purposes if i were you I will use 5.4.21, the latest stable 5.4.x version Thank you Vekia, I will use version 5.4.21 as advised. Thank you to everyone else in sharing their experience(s). SOLVED [for PrestaShop 1.5.6.1 I will use PHP version 5.4.21] SOLVED Later, based on my personal findings and conclusion, I will add my feedback to this post before I will mark it as "solved". Link to comment Share on other sites More sharing options...
George T Posted November 23, 2013 Author Share Posted November 23, 2013 Referring to and please don't hint at who can should answer your post...else we will have to weigh the quality of your question... Please excuse me... I had the following issue: (note that I have read PrestaShop's suggestion and that of other authors; they have outdated / conflicting information...) After reading books, PrestaShop's docs, posts, articles, and having communicated with my hosting provider, I found this to be the only way to get qualified, first-hand oppinions from experienced folks that have actually conducted the test themselves. I wanted to avoid opinions from those that would post on what they heard or read from somewhere and the information runs the risk of misinforming or being outdated. [i was dissatisfied with my research in the first place.] Again, please excuse me from hinting this in my post. I will refrain from doing it again in the future. Best regards, George Link to comment Share on other sites More sharing options...
tuk66 Posted November 26, 2013 Share Posted November 26, 2013 5.4 is reportedly 30% faster than 5.3 Link to comment Share on other sites More sharing options...
Dh42 Posted November 26, 2013 Share Posted November 26, 2013 I use 5.4.21 on my server. Link to comment Share on other sites More sharing options...
cicada_021 Posted December 26, 2013 Share Posted December 26, 2013 (edited) Guys... I dont know what happened to me and my website but its crazy, I have a shared linux host and presta v1.5.2 and everything was ok in last year till my administrator changed the PHP to 5.3.28. Now everything is Error!!! The site dont run on permission 755 anymore, I changed the permission of many files and folder thats been in error reporting but it gets error again in another folders nonstop. -I got fail on using 1-click upgrade module -I got fail to install a fresh presta Please!!! I dont know what to do, If someone knows please tell me to give the user and password.... Edited December 26, 2013 by cicada_021 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 26, 2013 Share Posted December 26, 2013 Now everything is Error!!! what error exactly? Link to comment Share on other sites More sharing options...
benjamin utterback Posted December 26, 2013 Share Posted December 26, 2013 Guys... I dont know what happened to me and my website but its crazy, I have a shared linux host and presta v1.5.2 and everything was ok in last year till my administrator changed the PHP to 5.3.28. Now everything is Error!!! The site dont run on permission 755 anymore, I changed the permission of many files and folder thats been in error reporting but it gets error again in another folders nonstop. -I got fail on using 1-click upgrade module -I got fail to install a fresh presta Please!!! I dont know what to do, If someone knows please tell me to give the user and password.... Don't worry, let us know the specific errors and we will help you out. The php change shouldn't damage your store but server configurations may need to change. Link to comment Share on other sites More sharing options...
cicada_021 Posted December 27, 2013 Share Posted December 27, 2013 its my site http://www.persianstuff.net/en/ when I want to install 1-click upgrade it says: The following module(s) were not installed properly: - autoupgrade : Unable to copy ajax-upgradetab.php in /home/sweet318/public_html/persianstuff/myadmin/autoupgrade but I copy the files manually and then when click the configure on module section of 1-click upgrade it give me this: Parse error: syntax error, unexpected ',' in /home/sweet318/public_html/persianstuff/modules/autoupgrade/AdminSelfUpgrade.php on line 3569 in Configuration Information it says: Required parameters: Please fix the following error(s) Set write permissions for "img" folder and subfolders, recursively Set write permissions for "mails" folder and subfolders, recursively Set write permissions for "modules" folder and subfolders, recursively Set write permissions for "translations" folder and subfolders, recursively Optional parameters: Please fix the following error(s) magicquotes But i give to all folder permission 777 even the files. Link to comment Share on other sites More sharing options...
cicada_021 Posted December 28, 2013 Share Posted December 28, 2013 Dear friends, my website is still down, may somebody help me ? Dear Benjamin, may you fix this prob for me yourself ? Link to comment Share on other sites More sharing options...
BoKr Posted December 30, 2013 Share Posted December 30, 2013 No expert and just a normal user which is relatively new to ecommerce but I noticed that Piwik, a noticable alternative to Google NSAnalytics, may have problems with php 5.4x versions. Link to comment Share on other sites More sharing options...
benjamin utterback Posted December 30, 2013 Share Posted December 30, 2013 Dear friends, my website is still down, may somebody help me ? Dear Benjamin, may you fix this prob for me yourself ? Hi, please open a new thread and post your problem there, PM me with the forum link and I'll help you out as best I can. Please make sure to stay on topic of the Thread title to ensure the highest chance of support. Thanks! Link to comment Share on other sites More sharing options...
computergeek Posted February 16, 2014 Share Posted February 16, 2014 reasons for MySQL crash in Prestashop 1.5.6.1 Link to comment Share on other sites More sharing options...
vmarkovic Posted August 30, 2014 Share Posted August 30, 2014 (edited) Hi Guys,One question about PHP version on PS 1.6.0.9, mine was set to 5.2 but after switcing to 5.3 or 5.4 I get following error: Warning: preg_replace(): Compilation failed: invalid range in character class at offset 24 in /home/hejkupim/public_html/classes/Tools.php on line 1150 Here is my /home/hejkupim/public_html/classes/Tools.php line 1150: $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str); The line is part of // Remove all non-whitelist chars secition. Any help would be very apreciated.Regards,Vedran Edited August 30, 2014 by vmarkovic (see edit history) Link to comment Share on other sites More sharing options...
the.rampage.rado Posted August 30, 2014 Share Posted August 30, 2014 I have exactly the same error at my shop after PHP upgrade.Sadly everybody is now 1.6 FANCY and nobody want to fix old version issues. Tried upgrading to 1.6 last weekend - everything was a mess, I can't imagine how I'll update it when it becomes 'stable', probably have to get 2 months off just for the upgrade. Link to comment Share on other sites More sharing options...
vmarkovic Posted August 30, 2014 Share Posted August 30, 2014 I have exactly the same error at my shop after PHP upgrade. Sadly everybody is now 1.6 FANCY and nobody want to fix old version issues. Tried upgrading to 1.6 last weekend - everything was a mess, I can't imagine how I'll update it when it becomes 'stable', probably have to get 2 months off just for the upgrade. Hi the.rampage.rado, I forgot to mention my PS ver. is 1.6.0.9, upgraded from 1.6.0.6 with working emails. I updated my previous post. Regards, Vedran Link to comment Share on other sites More sharing options...
the.rampage.rado Posted August 30, 2014 Share Posted August 30, 2014 Obviously this is bug in tools.php, which is fine for me... Hope there's some good dev who will help here! Link to comment Share on other sites More sharing options...
El Patron Posted August 30, 2014 Share Posted August 30, 2014 Hi Guys, One question about PHP version on PS 1.6.0.9, mine was set to 5.2 but after switcing to 5.3 or 5.4 I get following error: Warning: preg_replace(): Compilation failed: invalid range in character class at offset 24 in /home/hejkupim/public_html/classes/Tools.php on line 1150 Here is my /home/hejkupim/public_html/classes/Tools.php line 1150: $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str); The line is part of // Remove all non-whitelist chars secition. Any help would be very apreciated. Regards, Vedran Hi vedran, please open a forge report here: (with your description and any fix you might have) http://forge.prestashop.com then post bug report URL back to this topic so other can follow/comment vote up. Obviously this is bug in tools.php, which is fine for me... Hope there's some good dev who will help here! it's not a bug if there is no bug report, in the future simply open one for best results to all, opening bug report is best happy day, el 1 Link to comment Share on other sites More sharing options...
the.rampage.rado Posted August 30, 2014 Share Posted August 30, 2014 (edited) it's not a bug if there is no bug report, in the future simply open one for best results to all, opening bug report is best happy day, el OK, here's the forge report for this issue - http://forge.prestashop.com/browse/PSCFV-12500 Hope it will get some attention. Localized URLs in various languages are really needed. My error log became 100 mb because of this issue util I realize there's an issue Edited August 30, 2014 by the.rampage.rado (see edit history) 2 Link to comment Share on other sites More sharing options...
El Patron Posted August 30, 2014 Share Posted August 30, 2014 OK, here's the forge report for this issue - http://forge.prestashop.com/browse/PSCFV-12500 Hope it will get some attention. Localized URLs in various languages are really needed. My error log became 100 mb because of this issue util I realize there's an issue that is an awesome forge report! thank you! Link to comment Share on other sites More sharing options...
roband Posted August 30, 2014 Share Posted August 30, 2014 Hi Guys, One question about PHP version on PS 1.6.0.9, mine was set to 5.2 but after switcing to 5.3 or 5.4 I get following error: Warning: preg_replace(): Compilation failed: invalid range in character class at offset 24 in /home/hejkupim/public_html/classes/Tools.php on line 1150 Here is my /home/hejkupim/public_html/classes/Tools.php line 1150: $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str); The line is part of // Remove all non-whitelist chars secition. Any help would be very apreciated. Regards, Vedran This bug has already been reported and the fix will be included in 1.6.0.10. See: http://forge.prestashop.com/browse/PSCSX-2755 Cheers, Robert. 2 Link to comment Share on other sites More sharing options...
the.rampage.rado Posted August 31, 2014 Share Posted August 31, 2014 It works great for me on 1.5.6.2. Missed that forge.Will close mine Link to comment Share on other sites More sharing options...
Sashok Posted February 6, 2015 Share Posted February 6, 2015 PHP 5.6.4 - fly is normal now testing... Информация о сервере Linux #1 SMP Wed Dec 17 01:55:02 UTC 2014 x86_64 Версия программного обеспечения на сервере Apache/2.2.22 (@RELEASE@) Версия PHP 5.6.4 Доступный объем памяти 1024M Максимальное время выполнения 600 2 Link to comment Share on other sites More sharing options...
Tapioka Posted May 19, 2015 Share Posted May 19, 2015 php 5.4 presta 1.6.0.6 [19-May-2015 17:33:10 Europe/Moscow] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 24 in /public_html/classes/Tools.php on line 1149 in line $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str); Link to comment Share on other sites More sharing options...
BoKr Posted May 24, 2015 Share Posted May 24, 2015 @Tapioka Please make a search for $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\] You may find a solution for this error. cheers Link to comment Share on other sites More sharing options...
Mister Denial Posted April 19, 2016 Share Posted April 19, 2016 I use 5.4.21 on my server. Is that still the version you would recommend for 1.6.1.14 / 15 ? My hosting company has 5.4.31 on my account, and I just noticed a "Cannot modify header information - headers already sent" error in BO, which according to other forums posts is linked to upgrading from PHP 5.3 to 5.4 So which version are you currently using / recommending? Link to comment Share on other sites More sharing options...
bellini13 Posted April 20, 2016 Share Posted April 20, 2016 I use PHP v5.5.30 and it is working properly with v1.5.6.3 Link to comment Share on other sites More sharing options...
Dh42 Posted April 21, 2016 Share Posted April 21, 2016 @misterdenial I am actually using 5.5.32 now with Maria, but at the same time I don't run many PrestaShop sites on my server. I would recommend 5.6 to a client though, it is compatible with everything I have seen so far in the late 1.6 branch. Link to comment Share on other sites More sharing options...
Mister Denial Posted April 21, 2016 Share Posted April 21, 2016 I use PHP v5.5.30 and it is working properly with v1.5.6.3 If 1.5.x support PHP 5.5 I assume it's safe to think that 1.6 should also support PHP 5.5 ? It would actually be a nice feature for the Prestashop team to add a list of recommended settings / configurations, in addition to the minimum requirements to run Prestashop. Link to comment Share on other sites More sharing options...
Mister Denial Posted April 21, 2016 Share Posted April 21, 2016 @misterdenial I am actually using 5.5.32 now with Maria, but at the same time I don't run many PrestaShop sites on my server. I would recommend 5.6 to a client though, it is compatible with everything I have seen so far in the late 1.6 branch. Hi Lesley, thanks for the info! I only run one on my VPS right now, so pretty much all resources are free for one site. I've heard several times that Maria DB is a good choice. Are there any pitfalls for those wishing to migrate from Inno / MyISAM to Maria DB? PHP 5.6, thanks, taking notes. I'll ask my host if they can upgrade me. I also read that 5.5 and upwards has built in caching that actually works, compared to the trouble many of us have with APC / memcache? Link to comment Share on other sites More sharing options...
bellini13 Posted April 21, 2016 Share Posted April 21, 2016 PHP 5.6, thanks, taking notes. I'll ask my host if they can upgrade me. I also read that 5.5 and upwards has built in caching that actually works, compared to the trouble many of us have with APC / memcache? opcache needs to be compiled into PHP, but other than that, yes it works very well. However, it really depends on the other webserver software you are using, and how you have them configured. For opcache to work properly and effectively, the memory has to be shared across all of the worker threads, or the worker threads have to be configured so they are not killed too early. if not, then the cache only lives for a single request and is pointless. Link to comment Share on other sites More sharing options...
Dh42 Posted April 21, 2016 Share Posted April 21, 2016 This is true, only DSO and fcgi really support it. Most hosts won't support fcgi though. I personally like fcgi with mpm_worker, mpm_event is not bad either though. Link to comment Share on other sites More sharing options...
Mister Denial Posted April 22, 2016 Share Posted April 22, 2016 (edited) opcache needs to be compiled into PHP, but other than that, yes it works very well. However, it really depends on the other webserver software you are using, and how you have them configured. For opcache to work properly and effectively, the memory has to be shared across all of the worker threads, or the worker threads have to be configured so they are not killed too early. if not, then the cache only lives for a single request and is pointless. Thanks both for your reply and information on this, it's very helpful. Right now my server information is this: Apache Version 2.2.27 PHP Version 5.4.31 MySQL Version 5.6.29 Architecture x86_64 Operating System linux Server Load 0.11 (8 cpus) Memory Used 65.91 % Swap 0.00 % When I upgraded to PHP 5.4 the experts of my hosting company took a look and tweaked and tuned Apache / PHP / SQL but Prestashop is not widespread on MyHosting, so they don't have much experience with the software, and specific optimizations that might be useful for this specific software to run as smooth as possible. I am not really a tech guy (more merchant in me), but I am fairly sure that fast CGI is possible on my VPS, I saw this in the php.ini configuration settings. EDIT: I am wondering if I should drop 1-2 CPU cores in favor of more memory - what do you think? Edited April 22, 2016 by Mister Denial (see edit history) Link to comment Share on other sites More sharing options...
frater.alexander Posted January 25, 2017 Share Posted January 25, 2017 What prestashop release can I run on PHP5.6 ? Link to comment Share on other sites More sharing options...
mecollectibles Posted May 6, 2019 Share Posted May 6, 2019 (edited) On 11/26/2013 at 12:30 AM, Dh42 said: I use 5.4.21 on my server. Hello, This answer is for around few years ago. Well, I have a quesyion as you & vekia I have used the advises & always worked well. My questions to both of you & others is if you still use these phph 5 versions or have you tested your servers with php 7 too as you might have changed your mind during this long time. After all. what will be the problems if we use PHP 7.0 or 7.1 ? Do they damage the website activity? What are your latest advises please? BTW, My prestashop version is 1.5.6 Edited May 6, 2019 by mecollectibles (see edit history) Link to comment Share on other sites More sharing options...
Wuschel Posted June 10, 2019 Share Posted June 10, 2019 7 hours ago, nafisjedriel said: I think presta in version 1.5.6 should work good with php 5.6 but php7 is brand new and you shouldn't upgrade php to this version. I wouldn't agree. Prestashop 1.5.6 works fine with PHP 7.0, 7.1, 7.2 and even 7.3 if correctly patched. Though eleazar's patches are no longer available in this forum, you may download the zip files for 1.5 and 1.6 from @Whiley's (German) blog: http://ps.multimedia-bodensee.de/index.php/prestashop-tutorials/prestashop-tricks-tipps/item/6-anpassung-prestashop-1-5-6-2-und-1-6-1x-an-php-7-2 It may of course be the case that possibly a purchased module or third party theme also needs some minor adaptations. But you should give it a try. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now