mamp

MAMP not starting Apache server on El Capitan 10.11.1

↘锁芯ラ 提交于 2019-12-05 00:13:01
问题 So I've been using MAMP just fine for an Apache server on Yosemite for some time now. I only need one local host, so I'm using regular MAMP and not MAMP Pro. I am on MAMP 3.4 When I click the "start servers" button, it doesn't respond to the click. It just shows the colored spinner like the application froze, and then nothing happens. Only the SQL server will start but not the Apache.(I don't even use SQL) I can click through the preferences window just fine, and I can click the quit button,

MAMP Pro: Apache couldn't be started because the port was already in use

荒凉一梦 提交于 2019-12-04 23:46:46
问题 When attempting to start my servers, Apache fails to start, and MAMP claims that the port ([::]:8888) is already in use. I have tried virtually every way I know of determining what process is using that port (as well as many of the solutions previously listed on SO), but I get no results. Neither lsof or netstat list anything about port 8888. There does not appear to be anything using this port at all. I need to either improve my search and find what(if anything) is really using the port, or

Mac下安装phpredis

☆樱花仙子☆ 提交于 2019-12-04 20:56:01
系统环境 macOS 10.14.5 MAMP 5.4 阿里云Redis 5.0集群 PHP的版本7.3.7 下载php-redis, github地址:https://github.com/phpredis/phpredis.git cd phpredis 编译 phpize /Applications/MAMP/bin/php/php7.3.7/bin/phpize 提示无法找到antoconf,如图: 使用 brew install autoconf 安装 autoconf,如果没有安装brew,执行 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /configure 执行 ./configure --with-php-config=/Applications/MAMP/bin/php/php7.3.7/bin/php-config make&make test 拷贝redis.so cd modules cp redis.so /Applications/MAMP/bin/php/php7.3.7/lib/php/extensions/no-debug-non-zts-20180731     修复php的配置文件 cd

MAMP安装指南

浪子不回头ぞ 提交于 2019-12-04 20:19:02
1. 下载MAMP安装文件 可以直接到下面的官网去下载,如果你的网速足够快的话, https://www.mamp.info/en/ 当然你如果觉得想要快一点,我为你准备了百度网盘的下载地址。 http://pan.baidu.com/s/1qWxLliG 2. 安装MAMP 这里我为了方便,直接采用截图的方式来进行说明 3. 运行MAMP 安装后完成后可以在/Applications/MAMP文件夹下找到启动程序。双击MAMP开始运行。 单击Preferences 看到了MAMP欢迎界面之后,代表安装成功。 4. 查看phpinfo 可以看到如下内容: 可以看到php.ini为: /Applications/MAMP/bin/php/php5.6.10/conf/php.ini 5. Apache的配置文件,配置虚拟主机 Apache的配置文件在/Applications/MAMP/conf/apache路径中,括号内为添加的说明 lai@mac:/Applications/MAMP/conf/apache$ tree . ├── extra │ ├── httpd-autoindex.conf │ ├── httpd-dav.conf │ ├── httpd-default.conf │ ├── httpd-info.conf │ ├── httpd-languages

mamp 下 配置 虚拟主机

别等时光非礼了梦想. 提交于 2019-12-04 20:18:49
mac下修改hosts 首先进入apache的配置文件httpd.conf,如果是mamp,路径 是/Applications/MAMP/conf/apache/httpd.conf,用文本编辑器打开,command+f查找一下‘vhosts’关键字,来到了这一行 #Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf 把前面的#号去掉,表示这句话生效,这句话的意思就是使虚拟地址的配置文件生效。 保存后,用文本编辑器打开 /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf,加入需要配置的虚拟地址,大概是这样的: <VirtualHost *:80> DocumentRoot "/Users/Cancel/Develop/MAMP/test" ServerName lypton.test.com ServerAlias lypton.test.com <Directory "/Users/Cancel/Develop/MAMP/test"> Options Indexes FollowSymLinks AllowOverride All Order deny,allow Allow from all </Directory> </VirtualHost>

Sphinx 2.0.4 Install Error with MAMP 2.0: Can't Find MySQL Headers

瘦欲@ 提交于 2019-12-04 20:14:05
Developing locally in MAMP and need Sphinx to work with MAMP's MySQL. Basically hitting a dead end during $ sudo make . MAMP installs without some necessary resources for Sphinx integration, mainly a mysql lib directory and an include directory filled with C header source files. These were downloaded and installed successfully (using CMake) into the following directories: /Applications/MAMP/Library/include/mysql /Applications/MAMP/Library/lib/mysql After unzipping Sphinx and running: sudo ./configure --prefix=/usr/local/sphinx --with-libstemmer --with-mysql=/Applications/MAMP/Library I got: **

MySQL and PhpMyAdmin config.inc.php Password issue on MAMP

孤者浪人 提交于 2019-12-04 18:51:13
This is a very strange issue that is similar to a few other people issue that has been going on for a while with MAMP. I recently upgraded to MAMP2 and followed the instruction for the new phpMyAdmin and it work for a while but recently whenever I try to connect to MySQL I always get this error: Error: Could not connect to MySQL server! /Applications/MAMP/Library/bin/mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect So I changed the password to the correct one and changed all the files as per advised on this forum topic: http:/

Mamp 3 - apache won't start on port 8888

℡╲_俬逩灬. 提交于 2019-12-04 16:57:58
Running Mavericks and I just upgraded to Mamp 3. I can't get apache to start using the default port of 8888. Runs fine on port 80, and all ran smoothly using Mamp 2. Restarting Apache using SUDO doesn't work. I used "sudo apachectl stop" but this had no effect. Error logs show nothing. when I switch to port 80 and MySQL port 3306, it all starts, but I don't want it to use port 80. Thanks. i have found this solution it worked for me i hope it helps you : Just navigate to /Applications/MAMP/bin/apache2/bin using Finder, and rename envvars to _envvars (yes, just add the underscore). Boom! Done

MAMP - mysql server won't start on port 3306

余生颓废 提交于 2019-12-04 16:27:37
mySQL Server refuses to start up on port 3306 but ok on 8889. Anyone got any ideas? Banging head on desk here :-) The simplest solution would be probably to figure out if there is another instance of MySQL running and stopping it, e.g. you could call in Terminal : ps -ax | grep mysqld and then kill the appropriate mysqld process. And to check for processes listening on the port 3306 : lsof -i:3306 for me solution was to stop mhsql service sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist and then reload it from MAMP 来源: https://stackoverflow.com/questions

How to set environment variable in MAMP?

ⅰ亾dé卋堺 提交于 2019-12-04 16:19:49
How to set environment variable in MAMP(version 3.3) which can i use in my PHP application? I have updated /Applications/MAMP/Library/bin/envvars_ and envvars-std_ file and add following lines: # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License