Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.
The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work.
I've also "googled my ass of" but can't find any hints.
Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?
I'm trying to do this to be able to run Symfony2. So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)
The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from
/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so
to
/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so
Worked like a charm for me for PHP 5.4
I just compiled on mine the other day.
I wrote a self reminder post here: http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/
Let me know if you need further explanation. :)
Related
Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.
The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work.
I've also "googled my ass of" but can't find any hints.
Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?
I'm trying to do this to be able to run Symfony2. So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)
The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from
/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so
to
/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so
Worked like a charm for me for PHP 5.4
I just compiled on mine the other day.
I wrote a self reminder post here: http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/
Let me know if you need further explanation. :)
hoping someone will be able to help me.
I'm trying to install ImageMagick on a (Linux) server hosted at 1&1. I've managed to install ImageMagick itself, but I can't for the life of me manage to install the PHP PECL extension, and can't figure out if it's even possible without 1&1 doing it for me.
What do I need to have access to to be able to install the PECL plugin? Do I need access to the PHP installation itself? Do I need them to activate the extension for me? I was on the phone with them now, and they didn't seem very willing, but at the same time I'm pretty sure the guy I spoke with didn't really have a clue what this was about anyways.
Would be extremely thankful for tips!
I'm quite new to Linux and still trying to adapt my self. I've setup my working environment all good, installed XAMPP, node, sublime, etc. But when I tried running a laravel app, the first thing that caught me was I couldn't run php.
I was confused because i had already installed XAMPP (which i thought would've done it all for me), but then I simply created a symlink in my /usr/bin to the /opt/lampp/bin/php and it all worked well (I'm not sure if that was all correct, but it worked).
Then when I tried opening the app in my browser, it couldn't find the sql driver, so I asked my self, what exactly am I doing wrong? XAMPP should have taken care of all those things (as its name suggests), but it didn't setup php and mysql as i thought it would.
Am I missing something here? Should I install MySQL driver and PHP apart from XAMPP? Because that makes no sense at all for me. I really need some basic guidance here about this whole thing, what makes it so different from Windows where I simply install XAMPP and start programming?
I need to understand that so I can have a better understanding of the system it self and fix these kind of problems my self in the future.
PS: I'm using Ubuntu 16.04 and instaled XAMPP with PHP 7.0, downloaded from official website.
Thanks everyone!
I never used xampp on linux myself so i dont know how does it work here but I can tell you what really got me good start at understanding of linux was installing whole LAMP stack myself. So i would recommend googling 'How To Install LAMP' and try to figure it out from countless tutorials.
Basically you install apache, then mysql and php, restart server and check if 'It works'.
try two things
In the folder /etc/php/php.ini
uncheck the line extension=pdo_mysql.so
or in the folder of lampp (/opt/lampp/etc/php.ini)
And to start Laravel you need start with ~/php artisan serve
in the browser localhost:8000
trying to work out how to install zipArchive extension with MAMP, but not having much luck
any know how to do this? I have no idea
Answering my own question for completeness.
JUST UPGRADE MAMP!!!
Sorry for shouting ;)
First three Google results indicate that MAMP comes compiled without ZIP extension:
http://forum.mamp.info/viewtopic.php?f=2&t=8287
http://symphony-cms.com/discuss/thread/512/
http://forum.mamp.info/viewtopic.php?f=2&t=9300 - MAMP Zip Extension Install Guide
Mamp is a product that wraps PHP / MySQL etc within one easy package for the mac, and has nothing to do with the extension
the extension runs within PHP, so your questions should be how should i use the zipArchive with PHP
the answer to that questions is read the documentation:
http://php.net/manual/en/class.ziparchive.php
To install an extension is very straight forward, just drop the extension within the extensions folder and then restart PHP.
I'm running a Mac Mini with Apache/PHP5/MySQL as my staging server.
I'm building and using software that requires GDLib for manipulating graphics.
How can I install this on my machine?
Im not much of a CI guru but Im not scared of it. I just have no clue how to troubleshoot errors or problems when ./configure says file not installed at the end or something.
Any help on this would be fantastic!
Thanks
Rich
Install MAMP, you can set it to run on port :80 and you can still edit your config so www.example.site works just fine. I also have mine set so all of the files are still kept inside the /Sites/ folder.
Fixing the Apache/MySQL/PHP setup that comes bundles with OS X is very painful for non sysadmins, esp if you just want to get on with building sites.
If you can upgrade to Snow Leopard it's included out of the box. Otherwise, the instructions here should help.
Normally gd is included by default. Check phpinfo(), if there is any gd mentioned then it is installed.