mamp

MAMP - Mac OS X

寵の児 提交于 2019-12-04 10:37:10
I have been using MAMP for sometime now on port 8888 so I visit website in the browser like so: http://localhost:8888/website However I have just installed a Wordpress Multisite and therefore want to switch to port 80 to allow me to visit the websites as normal and have sub directories e.g. http://website.co.uk , http://subdomain.website.co.uk I have setup the vhosts file within MAMP and changed the port to 80 in the MAMP preferences but ever since doing this MAMP will not start Apache. MySQL starts up fine but Apache fails to start. I have tried to start apache manually by running the

Drush cannot connect to MySQL on MAMP?

旧城冷巷雨未停 提交于 2019-12-04 09:27:16
Im trying to set Drush up for the first time. Im using Mamp and Mountain Lion. When I type 'drush' into the terminal I get a list of commands so it seems to be installed up OK. Ive changed the default web directory folder in MAMP. I have many Drupal sites within folders within the web directory. So the url for one site is http://localhost:8888/omega/omegav3/ and another is http://localhost:8888/omega/omegav4/ By navigating to the site folder in the terminal I can then run a Drush command, however I get errors. When I download Views it does download the module to my sites/all/modules folder

MAMP Python-MySQLdb issue: Path to libssl.1.0.0.dylib changing once Python file called

夙愿已清 提交于 2019-12-04 08:59:34
I'm trying to use python MySQLdb to access my MySQL database on my MAMP server. When I initially tried to call a Python file with python-sql to access my database on MAMP I got the image not found error regarding the libssl.1.0.0.dylib library Traceback (most recent call last): File "desktopsql.py", line 3, in <module> import _mysql as ms File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 7, in <module> File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 6, in __bootstrap__ ImportError: dlopen(/Users/username/.python-eggs/MySQL_python-1.2.5-py2.7-macosx- 10.5-x86_64.egg-tmp/_mysql

How to upgrade OpenSSL in MAMP

坚强是说给别人听的谎言 提交于 2019-12-04 08:34:20
I am using MAMP 2.1 on Mac OS X 10.6.8 - This comes with the OpenSSL extention for PHP, however only version 0.9 - I need to upgrade it to 1.0 - however I'm not sure how I would go about such a task. Can anybody help? You can follow these instructions I got it from here Upgrade Steps 1) Make sure you have XCode command line tools installed. We are going to need a C compiler and other libraries to upgrade cURL. So fire up a Terminal which you will continue to use for each step in this documentation. xcode-select --install 2) Install Homebrew's OpenSSL library The goal is to compile cURL against

How to change PHP version on MAMP 4.1

瘦欲@ 提交于 2019-12-04 08:16:41
问题 I downloaded MAMP 4.1 on my Mac; by default, the only PHP versions I can use are 7.0.15 and 7.1.1 How can I use PHP 5.6? I tried the solution here Which says I should rename the versions I don't want to use to something else. But it didn't work for me. 回答1: As mentioned by @Scott in the comments under your question: Your here is the right link. Use the bottom answer to rename the bin/php directory. The MAMP preference pane will show the 2 latest versions in the php directory. – Scott

MAMP / Symfony: MAMP overrides date.timezone setting from php.ini, Symfony fails

ⅰ亾dé卋堺 提交于 2019-12-04 07:12:40
I'm trying to configure Symfony2 framework in MAMP. In php.ini I have correctly set date.timezone , however, it appears that MAMP somehow overrides the setting and uses system time instead. As a result, Symphony's config.php page sends this warning: Warning: date_default_timezone_get() [function.date-default-timezone-get]: 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

How to recover mysql root password in MacOS

倾然丶 夕夏残阳落幕 提交于 2019-12-04 05:49:11
问题 I start my MAMP and try to connect to my MySQL server via localhost or 127.0.0.1 , I tried all the possible password that I think it is correct, but for some reasons it still didn't like it, so I think I forgot it somehow. I need help. Try #1 Enter all the possible passwords MySQL -u root -h localhost -p Enter password: <--- I've tried almost 10 possible passwords I got ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Try #2 Enter possible passwords MySQL -u

PDOException: SQLSTATE[HY000] [2002] No such file or directory

核能气质少年 提交于 2019-12-04 05:14:10
I have put PushChatServer dir in htdocs folder and create database puschat try to run @" http://localhost/PushChatServer/api/test/database.php " Then I got following exception. I want do same thing to explain this link http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2 I have done all that but I got this exception Could not connect to the database. Reason: exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in /Applications/MAMP/htdocs/PushChatServer/api/test/database.php:17 Stack trace: #0 /Applications/MAMP/htdocs

running php on mamp [closed]

北战南征 提交于 2019-12-04 03:56:06
I already installed MAMP in my macbook pro. I want to run a php. what can i do? If you have done everything right, open your browser and type this: http://localhost to see if it opens successfully and then you can open your sites. Also check out the mamp's documentation on how to configure it and run php scripts. /Applications/MAMP/htdocs/hello.php Will then appear in http://localhost:8888/hello.php :) Drop the PHP file into the HTDOCs folder in MAMP, for example let's call it hello_world.php and now you can run it by going to: http://localhost/hello_world.php Depending on the port settings of

MYSQL: How to make NULL or empty data default to 0 during insert

强颜欢笑 提交于 2019-12-04 03:28:52
So this seems like it would be pretty straight forward and I swear I've done this before, but for some reason it's just not working for me. I am using MAMP and have a table with about 200 columns and I want about 20 of them to default to 0 if NULL or empty data is inserted into it. Here's a small example of what my table looks like as well as what I have done for columns that I want to default to 0. CREATE TABLE `listings` ( `ListingID` int(11) NOT NULL, `BathsFull` int(6) NOT NULL DEFAULT '0', PRIMARY KEY (`ListingID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; So notice on BathsFull I have it