mamp

Drush enable error

别来无恙 提交于 2020-01-17 12:25:10
问题 when i what to enable module using drush I'm getting this error Im using mamp pro 3 and php 5.5.10 <h1>Additional uncaught exception thrown while handling exception.</h1 <h2>Original</h2> <p>PDOException: SQLSTATE[HY000] [2002] Socket operation on non-socket in drupal_is_denied() (line 1933 of /Users/edinpuzic/desktop/projekti/studiotnt /includes/bootstrap.inc).</p> <h2>Additional</h2> <p>PDOException: SQLSTATE[HY000] [2002] Socket operation on non-socket in _registry_check_code() (line 3185

Can't diagnose my MySQL root user problem

限于喜欢 提交于 2020-01-16 19:30:13
问题 I have a problem with the MySQL root user in My MySQL setup, and I just can't for the life of me work out how to fix it. It seems that I have somehow messed up the root user, and my access to databases is now very erratic. For reference, I'm using MAMP on OS X to provide the MySQL server. I'm not sure how much that matters though - I'd guess that whatever I've done will require a command-line fix to solve it. I can start MySQL using MAMP as usual, and access databases using the 'standard'

Xdebug doesn't work in MAMP

自闭症网瘾萝莉.ら 提交于 2020-01-13 10:15:32
问题 I have MAMP with PHP 5.5.3 installed. The ending of my php.ini file (MAMP/conf/php5.5.3/php.ini) is this: [OPcache] zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so" opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 [xdebug] xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote

APACHE needs port 80 - MAMP

爷,独闯天下 提交于 2020-01-12 09:08:25
问题 I want to run MAMP on my Windows 8.1 pc, but when I start the servers, it says: 'APACHE' needs open port '80' which is already being used by another service or application. Please reconfigure 'APACHE' to use free port. Changing the port to something else doesn't help. 回答1: when you have this problem just turn off Skype because Skype use port 80 回答2: I used kampageddon's answer and it worked. Just follow the following steps: Run MAMP Click Preferences On Preference window click Ports While on

Using terminal, how do I make OS X use MAMPs version of PHP

一个人想着一个人 提交于 2020-01-11 04:16:25
问题 I'm currently learning the Yii framework, and one of the tutorials I was running through yesterday required me to test the database connection of a project. The details aren't too important here, but basically when I run shell, and type in the command it throws up an error as follows: server:trackstar charlieryan$ protected/yiic shell Yii Interactive Tool v1.1 (based on Yii v1.1.13) Please type 'help' for help. Type 'exit' to quit. echo Yii::app()->db->connectionString; PHP Warning: PDO::_

MAMP 3.2 debug.log keeps on growing on Windows 10

情到浓时终转凉″ 提交于 2020-01-07 02:00:07
问题 I just installed MAMP 3.2 on Windows 10 and I've noticed debug.log in MAMP/logs directory increasing its size every second with this message: 14/04/2016 8:48:33:::Error in GetAllFileNamesFromDirectoryWithFileMask. 14/04/2016 8:48:34:::Error in GetAllFileNamesFromDirectoryWithFileMask. 14/04/2016 8:48:35:::Error in GetAllFileNamesFromDirectoryWithFileMask. 14/04/2016 8:48:36:::Error in GetAllFileNamesFromDirectoryWithFileMask. Do you know how to solve it? Thanks. P.S. This is my first question

MySQL issue connecting to site with php

一世执手 提交于 2020-01-06 19:42:35
问题 Every time I try to connect to my localhost (using MAMP), it tells me that either access was denied or that it can't connect!!! It is driving me crazy! I have the php example below. What am I missing, because apparently nobody on the web is having this same problem... //setup db connection $link = mysqli_connect("localhost","root",""); mysqli_select_db($link, "iReport") 回答1: Try... //Database Information $dbhost = "serverip"; $dbname = "databasename"; $dbuser = "username"; $dbpass = "password

MySQL issue connecting to site with php

谁说我不能喝 提交于 2020-01-06 19:41:11
问题 Every time I try to connect to my localhost (using MAMP), it tells me that either access was denied or that it can't connect!!! It is driving me crazy! I have the php example below. What am I missing, because apparently nobody on the web is having this same problem... //setup db connection $link = mysqli_connect("localhost","root",""); mysqli_select_db($link, "iReport") 回答1: Try... //Database Information $dbhost = "serverip"; $dbname = "databasename"; $dbuser = "username"; $dbpass = "password

POST Working, But Not Updating File

雨燕双飞 提交于 2020-01-06 10:02:02
问题 Using BackgridJS (backgridjs.com) and want to be able to update one of the cells and save it to the server. This is the code that they provide us with for this task: var MyModel = Backbone.Model.extend({ initialize: function () { Backbone.Model.prototype.initialize.apply(this, arguments); this.on("change", function (model, options) { if (options && options.save === false) return; model.save(); }); } }); I added this to my code, and ran it on my server using MAMP. I looked at the JavaScript

POST Working, But Not Updating File

佐手、 提交于 2020-01-06 10:00:05
问题 Using BackgridJS (backgridjs.com) and want to be able to update one of the cells and save it to the server. This is the code that they provide us with for this task: var MyModel = Backbone.Model.extend({ initialize: function () { Backbone.Model.prototype.initialize.apply(this, arguments); this.on("change", function (model, options) { if (options && options.save === false) return; model.save(); }); } }); I added this to my code, and ran it on my server using MAMP. I looked at the JavaScript