mamp

Installing Mongo Driver on MAMP

佐手、 提交于 2019-12-23 18:47:48
问题 I have downloaded, compiled and installed the latest mongo driver for php & it's been placed at: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/mongo.so How would I go about adding this to the MAMP php.ini file? I have looked at just trying to add the "extention=mongo.so" however this does not work. I also tried to place the mongo.so file inside the dir: /Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-xxx/ And added the correct line of code to php.ini... Would I have

Incompatible library version: imagick.so requires version 18.0.0 or later, but libfreetype.6.dylib provides version 16.0.0 in Unknown on line 0

风流意气都作罢 提交于 2019-12-23 16:18:37
问题 I installed imagemagic and imagick successfully (using http://www.php.net/manual/en/imagick.installation.php#94169 steps ) and also put extension=imagick.so. but when i restart apache i am getting following error. Unable to load dynamic library /Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/imagick.so dlopen(/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/imagick.so, 9): Library not loaded: /usr/local/lib/libfreetype.6.dylib

mamp mysql won't start

时光总嘲笑我的痴心妄想 提交于 2019-12-23 15:17:05
问题 I have problem with mysql server. When I start MAMP Mysql server won't start. I tried to change port but it didn't help. I check the error log where I find this: 161010 09:21:07 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql56 2016-10-10 09:21:07 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2016-10-10 09:21:07 0 [Note] /Applications/MAMP

Local virtual hosts pointing to the same directory

蹲街弑〆低调 提交于 2019-12-23 13:24:47
问题 I have been getting lost amidst forum posts on this issue. 1) I have MAMP (not Pro) Installed 2) My Apache port is set to 8888 3) My Document Root in preferences is set-up to /Users/usr/Sites I want to set-up multiple local subdomains i.e. private/etc/hosts 127.0.0.1 local1.sitename.com 127.0.0.1 local2.sitename.com 127.0.0.1 local3.sitename.com No that is where the problem arises. In the httpd-vhosts.conf I tried to set up the following: <VirtualHost *:80> ServerAdmin admin@si1tename.com

Selenium don't show failed number lines

a 夏天 提交于 2019-12-23 13:09:17
问题 I have Selenium server working with PHPUnit on a MAMP local server. When an Assert fail, the failed number line is not showing, instead I see a phpunit number line. When I execute a "phpunit only" test I can see the number line of the failed assert. PHPUnit only test $ cd '/Applications/MAMP/htdocs/my-client/tests' && phpunit -c 'phpunit.xml' '/Applications/MAMP/htdocs/my-client/tests/controllers/homeTest.php' PHPUnit 3.6.10 by Sebastian Bergmann. Configuration read from /Applications/MAMP

Very high latency in first HTTP request on CodeIgniter project

冷暖自知 提交于 2019-12-23 10:59:37
问题 A friend and I just started working in a project which other people stopped developing a couple of years ago, and we're trying to resurrect it. We've already solved most of the setup-related issues, but there's a really annoying one that we can't figure out. In our localhosts, all the pages take A LOT of time to load/refresh. And I don't mean assets, scripts or anything, the problem is the latency until the first request completes. Most times it takes 15 to 30 seconds, which is unacceptable,

Where can I get version 16.0.0 of libfreetype.6.dylib for ImageMagick on MAMP

眉间皱痕 提交于 2019-12-23 08:53:53
问题 When running imagemagick under MAMP I get the error message: command output :"dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib Referenced from: /Applications/MAMP/bin/ImageMagick/ImageMagick-6.7.9/bin/convert Reason: Incompatible library version: convert requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0" I have searched everywhere I can think of but can't find a solution to this. One posting I saw suggested commenting out the DYLD_LIBRARY_PATH in

PHP header not working in MAMP even after removing white space

喜夏-厌秋 提交于 2019-12-23 04:26:28
问题 I am using MAMP and for some reason I am not getting redirected using header in php, can someone please have a look at the following code if there is something wrong in it??? I have read similar posts and found that it is caused by a sort of white space before header tag but in my case it is not. Please give your advices...thanx <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="root"; // Mysql password $db_name="DBase"; // Database name $tbl_name="customers"

sending an email using MAMP and php scripts

吃可爱长大的小学妹 提交于 2019-12-22 10:36:33
问题 Hi I am running MAMP on my mac to locally host a website. I want to send an email using php scripts. The stuff i looked online tells me about php scripts for emails but i am unable to send emails. I am guessing this has to do with MAMP settings or maybe i have to make changes to php.ini file but i cant find information regarding that. Can i send emails to my clients using my gmail address running php scripts. I am creating a signup page where once you signup successfully, the site sents you a

can not modify PATH with putenv() running MAMP / PHP 5.6.1 / Mac OS X El Capitan

柔情痞子 提交于 2019-12-22 09:59:56
问题 Config: MAMP Pro PHP 5.6.1 Mac OS X El Capitan I need to add /user/local/bin to the system paths php can access I've tried to use putenv() but it seems like I can't change the value of environment variable PATH in php using putenv() putenv('PATH=' . '/user/local/bin' . PATH_SEPARATOR . getenv('PATH') ); does not change the value this works with other variables PATH seems to be protected and I can not figure out where I can unprotect it - php ini settings do not seem to have anything regarding