Installing Drupal 7 locally - php

When I run the install I get the same error:
Your PHP installation is too old. Drupal requires at least PHP 5.2.5, or PHP 5.2.4 with the
htmlspecialchars security patch backported.
After a few hours of research it seems incredibly complicated to upgrade my version of php (currently 5.2.4 locally on my mac os x 10.4.11) so it appears I need to 'backport the htmlspecialchars security patch'.
Can anyone please point me in the right direction for how to do this? I can't seem to find any documentation.

Have you tried one of the PHP packages from http://www.entropy.ch/software/macosx/php/ to upgrade your local PHP installation?

Related

PHP 7.4 or 8.08 on MAC what to install (For mamp)

What would be the best version to install 7.4 or 8.08? All I want to do is make a basic website, so I know 7.4 will suffice. Just curious if there is anything big I'm missing out on, I also cannot find where to install 8.08
Always prefer installing the latest version of the php as many things get deprecated in the older version and after some time some libraries may stop supporting your php version and you may not able to integrate your third party services. Also try to keep your software upgraded to the latest version. Also I feel mamp gives update really late. Some of the tasks are easy to do in mamp like port change and all but if you prefer xampp than you can get the latest version. but everything has their prons and cons. Xampp doesn't allow upgrading to latest version but mamp does so if you want to upgrade in xampp than you have to again install it.

How to install php 5.3 on windows 10 / 64bit / wampserver 64bit?

I am to work on a project currently running on php 5.3.
The only php exe I found for windows is : php-5.3.29-Win32-VC9-x86.zip.
No x64 version found.
So far, my firt try at installing locally (wampserver 64bits) has failed : Apache will not start with php5_module pointing to the "php-5.3.29-Win32-VC9-x86.zip" executable (dll).
Can anyone confirm php 5.3 can actually run on a 64bits pc ?
If confirmed as feasable, can you please help me ? (which download to use, should I use IIS/fastCGI instead, etc. ?)
Thanks in advance for any help,
Paco
I know this is not really the answer you want, but you REALLY should not use 5.3 .. It hasn't gotten any security patches in 3 years. If you project is not compatible with 7.1, you should at least be using 5.6.
You can get that here: http://windows.php.net/download#php-5.6
Try XAMPP. It runs on both x64 and x32 bit Windows PC
https://www.apachefriends.org/download.html
The answer is of course yes.
PHP on IIS goes through FastCGI, so that even on 64 bit Windows the IIS components are 64 bit, php-cgi.exe as FastCGI client can run as 32 bit. You should try to run 32 bit of PHP 5.x as based on observation the corresponding 64 bit builds (if available) are not as stable as it should.
Like others commented, you really should upgrade now to 7.x (even 5.6 reaches end of life in 2018), or never.

ImageMagick for PHP on Windows 7 Professional 64bit?

Morning all,
Day 2 - I knew this was going to get sticky...
Windows 7 Professional 64bit
IIS 7.5
PHP 5.3.19 (as suggested/installed by Web Platform Installer)
All working fine.
ImageMagick 6.8.2.2 2013-01-28 Q16 - 32bit version. (64bit version tried yesterday but couldn't get php_imagick.dll working)
Working
php_imagick.dll:
PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.3\ext\php_imagick.dll' - The specified module could not be found. in Unknown on line 0
Does anyone have any experience of this?
Do I need a 64bit version of PHP?
Should I be aiming at a newer or older PHP version?
How do I find out if my the version of PHP (installed by WPI) is 32 or 64bit?
Is it best to stick to 32bit when using Win7 64 or throw caution to the wind and use all 64bit versions?
I was assured that the days of incompatibility were over when I opted to upgrade to 64bit windows. I'm not young, but I'm still foolish, obviously...
My plan today is to run through every possible combination, including dropping IIS and using Apache. This will be a mammoth task, but I've got no other real options. Anything I find I will post here for future generations.
Thanks for any comments/help/observations.
Steve
OK, I was hoping to have something more comprehensive than this, but my fairly exhaustive investigations points to the following:
ImageMagick-x.x.x-x-Qx-x64-dll isn't compatible with x64 PHP Dlls.
There are sketching reports of x64 builds working, but for every report of a working installation, there are 10 that don't work. There are some admirable efforts to document this, but the chances are, it isn't going to work.
I've tried Nginx(x64), Apache(x64) and IIS servers, using PHP 5.3(x64) and 5.4(x64) TS and NTS.
I always get the "%1" or the "module not found" issue.
The answer is to steer clear of x64 binaries. Windows 7 x64 is fine, but don't use any other x64 components.
I'm interested in any other anecdotes, but I seriously doubt I would spend any more time on this. Given the relative hostility to Windows from the PHP, Apache and ImageMagick camps, a fix is likely to come from elsewhere.

php_memcache.dll for 64 bit wampserver with either php 5.3.13 or 5.4.3

Okay, so far ive been googeling and trying to find a solution for over 6 hours. normally i dont post questions because i feel the answer should be findable, but here goes nothing.
I need to work with PHP code that has implemented the memcache class. I use wampserver 2.2 as 64 bit install, with apache 2.2.2, php 5.4.3 (installed 5.3.13 too, to see if i could fix it in that version) and mysql 5.5.24
i have run the memcache service with both the memcached-win64-1.4.4-14.zip link and the memcached-1.2.6-win32-bin.zip link
I am now at a point where the feedback from wampserver i get is the following when (re)starting the apache module -> mem_cache_module, using the answers from a similar thread on stackoverflow.com/questions/3894065/php-memcache-dll-vc6-x64), in combination with php 5.3.13 64 bit:
PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
This is a lot further than i got with the other options, most (or all) results i can come up with seem to redirect to either a 32 bit dll (which i cant use since my wampserver is 64 bit) or with the wrong php version or api version (compilation date?) .. i do not think i am able to compile my own library to solve this.
I have added *extension=php_memcache.dll* to both php.ini files for both php versions and the dll files have been placed into the correct php/php5.x.x/ext/ folders of the wamp server
my assumption so far is that i need the php_memcache.dll compilated for 64 bit (x64) for php 5.3.13 on the 25th of may, 2010. That or i need to install a php version matching the binairy compiled on the 26th of june, 2009.
Do any of you have a soltion to my specific dillemma? Any help will be greatly appriciated.
I tried all dlls and none worked but suddenly the one given in comment by falcontoast http://www.mediafire.com/?8d3vd26z3fg6bf1 did work.
Will be glad if it works for someone :).
One must check architecture of the phpversion from phpinfo() and must use corresponding dll file. Also the version for memcached service should be of same type.
Try following steps that might work for you. Yes it did work for me when I almost gave up.
1 - Close all memcached services if any already running.
2 - get this service memcached-win64-1.4.4-14(find it) and install it and then start.(the ways to install are already given out there).
3 - get the dll file in comment by falcontoast and put that in extension(ext) folder.
4 - do the changes in php.ini file.
5 - restart the wamp server(probably exit it and then again start it).
If everything is done properly, then the program given here https://commaster.net/content/installing-memcached-windows should work fine.
Basically you need Memcache OR Memcached Library that match your PHP Executable. When I say match I'm not speaking of date but of code. The old PHP won't support new Memcache and vice-versa.
You can try to compile a special one just for your version of PHP (I tried once with other libraries it's not fun). Or you can find a version of PHP that would work with a version of Memcache but this new PHP will also need to work with your version of Apache...
After years of playing with that I just gave up and just used a unix system.
PS: Now that I think about it PHP already come with a correct version of Memcache... So your error may be just that you're using "new Memcached();" instead of "new Memcache();"
Thank you zzarbi!! Freaking finally, I have tried all possible dll's out there and the one you provided finally worked, all others gave Invalid Win32 application.
My setup is Wamp 64 bit with Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.12 on Windows 8 64bit

Can someone compile PHP runkit DLL extension for me?

I give up. I've asked this question some time ago but I'm again into that issue. I'm still stuck with compilation errors / missing files / other stuff that I can't / don't have time to fix. Don't get me wrong - I've compiled it several times, but none of the DLL files I've got worked. I use WAMPServer 2.1e [Apache 2.2.17, PHP 5.3.5] - after enabling php_runkit it does not start. Even already compiled DLLs from the Internet haven't worked. Another time Windows seems to be simply against me.
Now as a programmer I feel really, really lame to ask you the following: can someone compile PHP runkit DLL extension for me or point me to the WORKING one? Please test if it works and provide your WAMP stack configuration, so I can adjust mine.
You would be my hero.
I compiled Zenovich's fork for 5.3, no ZTS, VS9, commit f8daf39 with trivial changes in order to build in Visual Studio.
Unfortunately, the ZTS version seems to broken and did not compile. Its problems would require some effort to fix. So you must run PHP as a CGI binary, not as an Apache module.
Artefacto's binaries didn't work correctly for me so I compiled the newest runkit for PHP 5.3, 5.4 and 5.5 (both TS and NTS versions). You can grab it here - https://github.com/Crack/runkit-windows.
PHP 5.3 and 5.4 modules are compiled with VC9, 5.5 with VC11 so they work with official PHP binaries.

Categories