mamp

Mamp localhost resolving very slowly

岁酱吖の 提交于 2019-12-05 11:30:53
When I make local changes to my PHP / WordPress website, the localhost does not seem to update for 20-30 minutes. I'm on Mac OSX 10.8.4 and using MAMP Pro. I have two sites that I have created separate host entries for, let's call them mysite1.dev and mysite2.dev . Here is my MAMP Server configuration: Apache: 80 MySQL: 3306 SSL: 443 I saw this article ( How can I eliminate slow resolving/loading of localhost/virtualhost (a 2-3 second lag) on Mac OS X Lion? ) on the Bonjour conflicts and edited my /private/etc/hosts file with the suggestions in this article: I changed the host names from

getting to phpmyadmin with mamp

坚强是说给别人听的谎言 提交于 2019-12-05 11:20:26
问题 I'm using MAMP, and trying to get to phpmyadmin. loaclhost/phpmyadmin isn't working.. the sql light is green so it is enabled. I have changed the Document Root to /Users/troycosentino/Sites/easyuniv/ and when i open the start page from MAMP it is a page created by apple it looks like, not MAMP. Any ideas? 回答1: If i go to localhost:8888/MAMP it gives me the MAMP screen, from which i can go to phpmadmin. 回答2: If MAMP has MySQL Server and Apache Server running. You can go to phpMyAdmin via url

Enable errors in browser when parsing PHP-files

佐手、 提交于 2019-12-05 11:06:48
问题 I recently changed to a MacBook and now use the MAMP-stack for development locally. In my earlier development environment I always could see informative error-reports when I tried to access a PHP file through a web-browser and an error occurred. With the default installation of MAMP it seems that this feature is disabled, whenever I hit an error I can't see the cause of it, I can't even see a single line informing me that an error occurred. Not until I start to debug the code in a debugger I

storing data on a server from an app

心已入冬 提交于 2019-12-05 07:41:51
问题 How does one store data on a server from an iOS app? If I create, e.g. a JSON object, how can I send this to the server and save it on the server as the value from some Key? I am using MAMP at the moment and have seen examples of how to create the item on the server and get it to the phone, I would like to learn how to create objects on the device, send them to the server for storage. such as a JSON object and store it on the server as a value for e.g. a key with an ID. I would greatly

“gem install mysql2” on Mac with MAMP 2.2

假如想象 提交于 2019-12-05 07:21:59
问题 When trying to run a rails server in my current directory (which is a new rails project), it says that I need to install the mysql2 gem. At first, I had no idea what this meant... Then, I did some poking around, and finally decided to install the gem. However, I am getting this super pesky error (seeing as I just spent 2 hours trying to investigate, and solve another error). I am on the brink of giving up, but I really want to try rails. Please help! Currently, if I run sudo gem install

SQLSTATE[HY000][2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known

喜欢而已 提交于 2019-12-05 03:36:28
My problem: I use MAMP and Git to view and edit my PHP files with SQL database connection on my mac and then push it to the web server. I recently added a file directory. Here is the file with the SQl database connection: <?php ob_start(); session_start(); //set timezone date_default_timezone_set('America/New_York'); //database credentials define('DBHOST','mysql.hostinger.co.uk'); define('DBUSER','u536535282_evan7'); define('DBPASS','...'); define('DBNAME','u536535282_dbsql'); //application address define('DIR','http://w-o-l.ml/'); define('SITEEMAIL','it@w-o-l.ml'); try { //create PDO

MAMP / PHP.INI: “date.timezone” setting in phpinfo() shows “no value” even though the value is set in php.ini

可紊 提交于 2019-12-05 02:58:20
Greetings to StackOverflow gurus! Here's the issue I'm struggling with. I run phpinfo() in MAMP, and the resulting table shows "no value" in both columns of the date.timezone row. Additionally, the page displays the following: Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST

webpack-dev-server can't find localhost

99封情书 提交于 2019-12-05 02:37:27
I'm trying to get started with React using webpack , but keep running into an error when I try to set up webpack-dev-server . I ran npm install webpack-dev-server followed by webpack-dev-server and the command line returns the following: events.js:154 throw er; // Unhandled 'error' event ^ Error: getaddrinfo ENOTFOUND localhost at errnoException (dns.js:26:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26) Any clues on what is happening here? I don't really know how webpack works to try and search for the root of the problem, but I've also been developing a website using PHP at

Installing and enabling Xdebug on MAMP PRO

安稳与你 提交于 2019-12-05 01:03:17
问题 I am trying to set up Xdebug on my MAMP PRO installation. I tried xdebug.org/wizard.php to get the correct Xdebug version with custom installation instructions but I got stuck. According to step 4 in the tailored installation instructions I should get the following output: Configuring for: ... Zend Module Api No: 20100525 Zend Extension Api No: 220100525 But my output reads as follows: Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626

PHP 7.x connection with MSSQL server with MAMP

老子叫甜甜 提交于 2019-12-05 00:44:49
问题 I am trying to connect mssql server to PHP 7.0.8 through MAMP. I have tried using freetds. On some blog people are saying to use pdo_dblib.so extension but it's not working. Please guide me through the process of connection. 回答1: Follow this guide through step 3: Microsoft PHP drivers for SQL Server Find where pecl drops extensions in your local machine Copy the files pdo_sqlsrv.so and sqlsrv.so into your MAMP's PHP extension directory. Mine was located at /Applications/MAMP/bin/php/php7x.x