mamp

Add MAMP Pro Vhosts with script

[亡魂溺海] 提交于 2019-12-11 12:09:40
问题 I am trying to add add Virtual Host to MAMP Pro with a script that I am writing. Much of the documentation out there covers adding vhosts with MAMP (free, not Pro). What I am trying to do is add the vhost, restart MAMP Pro, and move on to the next part of my script. I've tried editing httpd.conf at ~/Library/Application Support/appsolute/MAMP PRO/httpd.conf , but when MAMP Pro restarts it is overwritten each time despite the comments on ~line 915 , which say to add Include files to add

How to automate MAMP Pro virtual host creation through a command-line shell script?

放肆的年华 提交于 2019-12-11 11:51:53
问题 I'm writing a script to create virtual hosts in Mamp Pro. I want them to be created and appear in the GUI next to the normal ones I've created manually through the GUI. I've found the following questions on SO: Automatic Virtual Hosts with MAMP Pro? Add MAMP Pro Vhosts with script Here are my findings, so far: I've found out that the hosts appearing in the MAMP Pro GUI are found in: ~/Library/Application\ Support/appsolute/MAMP\ PRO/settings3.plist ; I've tried editing it but I can't seem to

How to install gearman extension on MAMP

微笑、不失礼 提交于 2019-12-11 10:58:23
问题 Has anyone ever tried and succeeded to install gearman extension on MAMP? I am trying to do it on MAMP 2.x on a MAC OS X 10.6.8 回答1: You can install the server with homebrew brew install gearman Then download the PECL package here http://pecl.php.net/package/gearman and compile it tar xzf gearman-X.Y.tgz cd gearman-X.Y phpize ./configure make sudo make install Then copy/paste the gearman.so from your default extensions folder (for me /usr/lib/php/extensions/) to your MAMP extensions folder

403 Forbidden Error on MAMP

无人久伴 提交于 2019-12-11 10:27:27
问题 I try to run my local applications on MAMP PRO. Since now i run MAMP and everything works fine. Now i've changed to MAMP PRO because of the possibilities to generate more hosts and send email from local applications. Now i have the problem that i can't access files in a directory. I have checked indexes under Hosts->Extended which should solve this problem. But it doesn't. I've found many articles but not anyone that solves my problem. I'm also not a specialist on server, but i think there

MySQL can connect locally but not remotely

三世轮回 提交于 2019-12-11 10:25:47
问题 I'm trying to connect from my ip address to a mobile web app I'm helping to fix so I can test it on my Android phone. However, while the login screen shows up when I access it from localhost AND my ip address, it will only let me login from the localhost address- it doesn't even connect from the ip address. I'm running MAMP Pro and have unchecked the "Allow local access only". I went into MySQL my.cnf and changed the bind-address from 127.0.0.1 to my own IP. I also commented out the "MAMP

Cannot connect to mysql server with MAMP nor with Community Server

六月ゝ 毕业季﹏ 提交于 2019-12-11 10:16:50
问题 I created a database with MySQL Workbench, and now I need to access it. So I've written a php script to access it: <? $db = mysql_connect("127.0.0.1:3306","root", ""); if (!$db){ echo "Could not connect to database"; exit(); } $db_name = "pfc_db"; if (!mysql_select_db($db_name, $db)){ die ("Could not select database"); } $sql=mysql_query("select * from CAPAS"); while($row=mysql_fetch_assoc($sql)){ $output[]=$row; if (isset($output)){ echo "yes"; echo $output[0]; } else{echo "no";} } mysql

CSS not working with CakePHP, using MAMP

假如想象 提交于 2019-12-11 09:57:41
问题 i'm using MAMP on my MacBook Pro as a local server. PHP and MySql are running fine. However, i have a strange issue with CakePHP - CSS only works on homepage of my site and only by the two following paths: 'localhost' and 'localhost/index.php' Using 'localhost/index.php/' however returns just the bare unstyled markup as does all other pages in the site. How can a slash a the end break the CSS? A few searches have suggested this could possibly be a mod rewrite issue in apache, but i'm out of

MAMP: php.ini - mbstring.http_input - Disabling for Drupal

久未见 提交于 2019-12-11 08:34:23
问题 Updated my MAMP to the most current [3.0.7.2] since I have OSX 10.10 now. Having issues with installing any new Drupal installations locally now. Error - mbstring.http_input must be disabled. I have checked the php.ini being loaded in from /Applications/MAMP/bin/php/php5.6.2/conf/php.ini and shows it is disabled. I read into this and tried setting it to auto/off/false/pass, no luck. - http://us3.php.net/manual/en/function.mb-http-input.php Am I missing something? Any help greatly appreciated.

CSS not rendering on MAMP

不羁岁月 提交于 2019-12-11 08:08:24
问题 I'm working on a Wordpress blog. I'm embedding a stylesheet as follows: <link rel=”stylesheet” href="<?php bloginfo("stylesheet_url"); ?>" type=”text/css” media=”screen” /> However, the CSS doesn't render, at all. I've checked that the URL that is being put in the href is correct. The CSS is found. But, it doesn't render, in all browsers. I am utterly stumped, and would really appreciate a nudge in the right direction. I'm using MAMP 1.8.3, and Wordpress 1.2.9. 回答1: View Source in your

PHP APC Progress Bar

一笑奈何 提交于 2019-12-11 07:28:33
问题 Post Updated: After commentors advice. Index.php <?php $id = uniqid(""); ?> </head> <body> <form method="post" action="frame.php" target="upload_iframe" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $id; ?>"/> <br /> <input type="submit" name="submit" value="Submit" /> </form> <iframe name="upload_iframe" style="width: 400px; height: 100px;"> <