mamp

localhost refused to connect - MAMP Pro

社会主义新天地 提交于 2019-12-06 02:42:12
There seem to be a few questions that are similar but could not find the answer. An hour ago (and the months before that :-)) everything was working fine. It looks like after updating to XCode 9.2 things stopped working. I've justed updated to MacOS High Sierra 10.13.2 as there were some Apache updates included, but it didn't solve the issue. Maybe the XCode update changed something to the httpd.conf file? I'm not too familiar with the settings in there, so I'm unable to determine if something changed in that file. Error in Chrome: This site can’t be reached www.example.dev refused to connect.

Cannot connect to phpMyAdmin on MAMP

爱⌒轻易说出口 提交于 2019-12-06 02:29:35
Im getting this error message: MySQL said: Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. The user and pass are the default ones - both 'root'. I haven't set them anywhere. Ive tried various answers on here but nothing is working rmaspero In Preferences pane of MAMP switch back from PHP 7 to 5.6.10 and it should work again. I was having the same

mb_convert_case undefined function (Symfony2 FOS/UserBundle)

点点圈 提交于 2019-12-05 22:19:06
问题 On my Symfony2 application, I am receiving an error: Fatal error: Call to undefined function FOS\UserBundle\Util\mb_convert_case() in /Applications/MAMP/htdocs/application/vendor/bundles/FOS/UserBundle/Util/Canonicalizer.php on line 18 I am using PHP 5.3.6. Here is my PHPInfo showing that mbstring is enabled: http://i.stack.imgur.com/FCMDv.png If mbstring is enabled then why is mb_convert_case not being found? 回答1: I found this: Under Windows you must uncomment the line with php_mbstring.dll

sending an email using MAMP and php scripts

醉酒当歌 提交于 2019-12-05 19:09:11
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 welcome email. Can some body please guide me how to do this. I have used code from here: http://email

mac PHP mamp 搭建

烈酒焚心 提交于 2019-12-05 18:00:04
下载地址 http://soft.macx.cn/4019.htm; 文件密码是: www.macx.cn 安装激活码: 4A9D-E225-E267-FD9F0。直接安装后启动,发现apache启动不了。百度一下,找到解决办法 解决办法: 退出 MAMP 在终端执行以下命令,也就是重命名envvars 为 _envvars cd /Applications/MAMP/Library/bin mv envvars _envvars 打开safari,输入localhost:8888。启动成功 来源: oschina 链接: https://my.oschina.net/u/1014842/blog/504016

MAMP中设置Mysql root密码

折月煮酒 提交于 2019-12-05 17:59:49
作为一名大三学生,我的技术还很薄弱,最近想学习一下PHP+mysql进行web开发,由于用的是mac机器,并且希望快速入门而不必将时间花费在环境搭建上,我选择了使用MAMP集成开发环境,我会慢慢将我的学习心得和大家分享,希望的到大家的指导。 下载MAMP.dmg文件以后点击安装,由于没有难度就不会赘述,不过过程中有一个坑,就是在标准安装安装这一步请选择自定义,然后选择MAMP普通版本。因为它的安装包中有MAMP和MAMP pro,他会默认安装pro版本,然后让你购买这个版本,以后启动免费版本的时候一直会有警告消息。 本文主要想讲得是修改mysql的root 密码。 1.cd /Application/MAMP/Library/bin/ 2. ./mysqladmin -u root -p password "newpassword" 然后会让你输入当前密码:root 但是修改密码以后,再启动MAMP就会报错,因为此时MAMP不知道你的Mysql roor 密码。 下面主要讲如何更新密码配置。 很多文章都会讲让你更新/Application/MAMP/bin/mamp/index.php中得这样一行 $link =mysql_connect(':/Application/MAMP/tmp/mysql/mysql.sock',‘root','root'); 把第二个root改为新密码

Drupal开发时如何使用远端图片减轻工作量

最后都变了- 提交于 2019-12-05 17:59:35
  如果你有遇到过较大规模的 Drupal 项目,但可能已经发现了当 files 目录过于巨大对开发所带来的巨大挑战。如何让开发服务器(或者你的个人电脑)与这些文件保持同步是件非常痛苦的事情,但如果不这样做,往往又会因为无法使用用户上传的文件或附件,使网站开发过程中的很多重要的问题无法被发现。   要解决这个问题有非常多的办法,但要么非常慢,要么非常复杂。例如使用Drush命令或者使用脚本程序将网站的文件下载后再上传到本地开发环境,甚至有人会考虑使用FTP执行这样的操作(请千万不要这样做)。尽管这些办法都能达到效果,但我还是希望能够节约宝贵时间和硬盘空间。   最开始我们找到了 Stage File Proxy 模块,它能够让 Drupal 将所有的文件请求都定向到线上服务器,即使网站是在本地运行时也可以有效工作。但是要让这个模块正常工作,需要对网站进行一些调整并安装额外的模块。所以,尽管这个模块可以解决问题,但我还是希望能有其它的方案。   之后,我们发现可以使用 Apache 的 URL重写规则来满足需要——当Apache程序在处理连入的网页请求时,重写规则允许它对满足指定规则的URL地址进行修改——例如,它可以将访问本地 files 目录的请求重定向到线上的服务器。   经过查找有关URL重写规则的帖子和教程,我们终于可以写出所需要的代码了。因为我使用 MAMP 进行开发

Access phpmyadmin over lan using mamp

别说谁变了你拦得住时间么 提交于 2019-12-05 16:15:56
We are trying to set up a Mamp Pro installation ( on Mac ) which allows us to access PhPmyAdmin over the lan. We can access the htdocs folder to edit it's contents using standard sharing so that is not a problem. The problem is that we can't seem to the access the PhPmyAdmin of this installation. I've googled for several hours trying to make this work and now I'm trying here. I found several cases where they explain that you can access your phpMyAdmin via this: http://ip-ofserver:8888/MAMP but this is not working and I get this error: Forbidden You don't have permission to access /MAMP on this

Ruby On Rails in MAMP mySQL Snow Leopard

爷,独闯天下 提交于 2019-12-05 15:36:30
问题 I'm trying to find step-by-step instructions to run Ruby on Rails on MAMP server and use MAMP's mySQL database. I am on Snow Leopard also. I have read Hivelogic's article about this but I really don't want to compile rails, ruby and mySQL. Anyone have any suggestions 回答1: I can suggest this tutorial for you; Using Ruby MySQL Gem with MAMP 1.8.x on Snow Leopard 回答2: It is very simple, just edit your socket to MAMP's mysql socket in your rail's /config/database.yml development: adapter: mysql2

Autoload configuration doesn't load MongoDB classes

断了今生、忘了曾经 提交于 2019-12-05 14:13:29
I have MAMP 1.9 on MAC OSX 10.8.2 using PHP 5.3 I installed MongoDB and the PHP extension mongo.so and added it to my php.ini. I can run the MongoDB on the console and my phpinfo says MongoDB support is enabled but I cannot run the following PHP script. <?php $connection = new MongoClient(); ?> PHP comes up with a fatal error: Class 'MongoClient' not found Something seems to be wrong with the autoload configuration of my MAMP (or the extension installation). As Sammaye mentioned in the comments above, it looks like you're simply running an older version of the driver. You can obtain the