I've searched the internet for days to find out how to install ffmpeg (and lame) on XAMPP for Mac (PHP). But I didn't find the key to my quetsion.
I need to covert mp3's on my webserver (php) using lame, but I like to test it on my XAMPP for Mac first.
I think I need the "php_ffmpeg.dll" which can be downloaded at Sourceforge.
I found a step-by-step description here but this question only refers to XAMPP for Windows. But I need it for Mac.
Can anyone help to supply a step-by-step description?
The DLL file is not what you need, they're only for Windows.
Follow these instructions to install ffmpeg on your Mac, then use one of PHP's program execution functions to call the ffmpeg executable from your PHP code.
Related
I found tons of instructions, how to install Imagick on windows. Here is a very good and detaild explanation.
I am following the instructions. So, first, download the latest DLL from PECL. Copy the php_imagick.dll to the extension dir, copy the _CORE* libraries to PHP root directory, and it shows me the following version: ImageMagick 6.9.1-2 Q16 x64 2015-04-14
Wow, great, now I have nothing to do just install this exe.
Oh, wait...
There are no installer like this. And the problems starts here. Of course, I've tried to download and install the latest installer, installed it, set the environment variables, but it always says something about entry points.
I don't know why Imagick guys removes the releases from their ftp, I think this is a very bad behaviour. Can not access from archive too.
So I am unable to installing the Imagick.
Can anybody help me with this version of installer, or give me a step-by-step instruction, how to install this Imagick for Windows 10, 64bit for Apache 2.4.2 64bit, and PHP 5.6.5 64bit?
I tried the 32bit version, but with that, the phpinfo() does not show me anything.
EDIT: There is an alternative download location here.
I started a thread on the Imagick forum, and now I don't know, should I cry or should I laugh...
The answer for my question was this:
Hmm... it seems we don't build our libraries with 'deprecated' methods. I will see if we can change this before the next release so DrawAllocateWand will not suddenly be gone.
I tell to the guy, ok, it's a cool thing, but I've just reinstall my machine from the scratch, so, I got this error:
Procedure entry point (DrawAllocateWand) not found in DLL
or something similar, I translated it.
So, please tell me, where can I download the ImageMagick 6.9.1-2 Q16 x64 2015-04-14 binaries, because it seems, that php_imagick.dll need this, and I should work...
The answer was:
We don't keep an archive of old binary version of ImageMagick. You could however decide to build IM from source.
CONCLUSION
If you ever had a working installer for windows for Apache, PHP, Imagick, you should always keep these in the cloud for yourself. MHO: I really hate these things. I know, most of us is working on linux boxes, but our company policy is to use OS what admin says. So I need to use windows. Now I should suck for a while, to download and install a cygwin with compilers, compile the Imagick somehow, and set all the environments variables, because some developers do not use a version controller, or maybe the sotrage is too expensive for them to store old binaries... I can not imagene these options.
ImageMagick is available here:
http://windows.php.net/downloads/pecl/deps/
Imagick, that has been compiled against that version of ImageMagick is available here
http://windows.php.net/downloads/pecl/releases/imagick/3.4.0rc5/
Downloading random versions of libraries from other places is not guaranteed to work.
I recently purchased a Mac to do my LAMP development. However, coming from Debian, using the apt-get tool to download PHP extensions was surprisingly easy but doesn't exist on my Mac. After reading up on multiple forums, it seems one needs to download Xcode and use ports to do so, OR, download the binaries and compile them. So my question is, what is the best tool to use in order to get all these extensions (php5-mysql, php5-gd, libapache2-mod-php5, php5-curl etc).
Note: I am using the default PHP installed on my Mac which apparently doesn't come with many extensions or support for them.
You are correct. You can download XCode first and then use MacPorts to download/install/enable php and each extension. This is the same approach we use to setup our LAMP development environment on our MacBook Pros at work.
Alternatively to MacPorts, there's also Link which has the same approach
I'm using a windows machine for local development and I'd like to install php_svn so I can write some code in php that provides an svn interface for a web app so that the client can download all their files easily. The php4win site is down, and I can't find the php_svn.dll anywhere and running pecl.bat install svn doesnae work either. "The DSP svn.dsp could not be found" I'd be very grateful if anyone has any information on how I can install this php extension on windows, and the /pierre site doesn't seem to contain the php_svn extension within it.
Just by doing a few quick searches on your request, I couldn't find it, either. It looks like you'll either have to compile the library for Windows, yourself, or try the method that Björn mentions on this answer.
Alin, thanks for your effort. I ended up with using the svn command line client directly from php. Like this $Res = svn --non-interactive ls -R -v "file:///C:/Proj/Svn/..." and then parsing the result string.
every time I try to install php on windows I get a file called php-5.4.8.tar.bz2 I dont know how to install this kind of file can someone help me?
If you are new to PHP, then I would suggest you to use WAMP Server. Link below:
http://www.wampserver.com/en/
Install it, execute it, start working. Real fast and easy. It comes pre-configured with Apache, MySQL and PHP.
You're using the wrong file, you're on Windows not Unix!
This should help:
http://www.php.net/manual/en/install.php
yet, use a wamp server, it's simple and easy to use. enjoy your PHP trip ! :)
In case you're looking for a place to start learning PHP, I highly suggest this simple tutorial:
http://www.w3schools.com/php/
It's a very straight forward tutorial that'll get you started with PHP in no time!
You have downloaded the installation package for Unix based systems. You want to download the Windows Version. Note that you will also need to download an install Apache with this.
You may find it easier to install a full development package. I recommend WAMP or XAMPP. These contain all the tools you need to get started, including Apache, PHP, and MySQL.
Compressed archive created by bzip2, a file compression program often found on Unix-based systems; incorporates the Burrows-Wheeler compression algorithm as well as Run-Length Encoding (RLE) for high levels of compression; often used for Linux software package distributions.
Info about .bz2
You can unrar it using winrar
I'm looking for a way to compile phpredis (https://github.com/nicolasff/phpredis) for windows (because the few already compiled binaries I found where Thread Safe only thus not working on my NTS PHP). I've done everything written there : https://wiki.php.net/internals/windows/stepbystepbuild but I'm clueless about what files/directories I should get from https://github.com/nicolasff/phpredis, where to put them and how to have the building environment "configure" tool detect.
Note: I'm not familliar with Github as well.
You can find the DLL's and intructions here:
http://char101.github.io/phpredis/
I just installed them successfully on my wamp server.
UPDATE
If that doesn't work, try to download from this link:
https://github.com/nicolasff/phpredis/downloads
(I was able to install on Windows 8/Wamp only with the second link)