mamp

MAMP not starting Apache server on El Capitan 10.11.1

别来无恙 提交于 2019-12-03 16:28:07
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, but the start servers button just gives that error. The Apache box in the top right isn't filled in,

Use Python on MAMP

谁说胖子不能爱 提交于 2019-12-03 15:59:54
I'm slowly migrating from PHP to Python. In particular, as I work in webdev/webdesign I would like to display a basic HTML page using Python, using the following code : #!/usr/bin/python print('<html><head></head><body>This is a test</body></html>') Again, the point is just to see if it works. Sending the file online on my host as index.cgi I've had no problem displaying the content of the file. The problems start when I try to install the WSGI module on MAMP, or just to make Python work in general with it. When It go to localhost/index.cgi the content of the file is displayed instead of its

PHP 7.x connection with MSSQL server with MAMP

↘锁芯ラ 提交于 2019-12-03 15:44:47
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. Vague Space 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/lib/php/extensions/no-debug-foo-bar Edit your php.ini file to include the new extensions:

MAC OS X: MAMP Environment & Virtual Hosts

只愿长相守 提交于 2019-12-03 15:04:45
I'm not sure what's happening here, but I'm running MAMP 1.9 on MAC OS X. In my httpd.conf file, the DocumentRoot is set to the default htdocs path. Within the htdocs folder, I've created a number of "subsites" in an effort to set them up as Virtual Hosts.... I can get to the paths specified, but they all seem to default to the first one I set up. Essentially, the first VirtualHost I configured was for site1.localhost.com. I've since configured site2.localhost.com and site3.localhost.com. However, going to either of the last two addresses, always seems to redirect me to site1.localhost.com.

How do you upgrade MAMP's PHP to PHP 5.3 ?

让人想犯罪 __ 提交于 2019-12-03 14:40:39
I haven't been able to find any resources on how to do this.. Anyone have any ideas or resources?! I've tried changing the ./configure options and I'm solving things one at a time but it seems like this method could take forever.. My current error is.. checking for jpeg_read_header in -ljpeg... no configure: error: Problem with libjpeg.(a|so). Please check config.log for more information. I'm running Snow Leopard. Any help would be great, Matt Mueller The current version (1.9) of MAMP / MAMP PRO includes PHP 5.3 and is available on the MAMP download page . I know this is an old question- but

xdebug not loading. not found in phpinfo() after apache restart

依然范特西╮ 提交于 2019-12-03 11:21:22
问题 I've been scouring every resource I could find, but came up empty. I get the dreaded "Waiting for Connection" message in NetBeans 6.9 when I start a debug session. After much reading, most folks are able to get phpinfo() to display that it loaded the xdebug module. Not so with me. I downloaded the source through SVN using this call svn co svn://svn.xdebug.org/svn/xdebug/xdebug/trunk xdebug I switched to the xdebug directory and then ran phpize on the source sudo /Applications/MAMP/bin/php5

MAMP with Laravel Unix Socket

穿精又带淫゛_ 提交于 2019-12-03 09:36:47
问题 I'm working with MAMP on my local development server on my laravel application and I'm trying to figure out how I can safely setup my server so I don't have to use the following into the database connections mysql array because that should only be used when I'm on my development server. It works when I add the line into the mysql array however that isn't used if I was on a production server. Any ideas? 'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock', .env.development.php <?php

PHP header not working in MAMP even after removing white space

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using MAMP and for some reason I am not getting redirected using header in php, can someone please have a look at the following code if there is something wrong in it??? I have read similar posts and found that it is caused by a sort of white space before header tag but in my case it is not. Please give your advices...thanx <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="root"; // Mysql password $db_name="DBase"; // Database name $tbl_name="customers"; // Table name // Connect to server and select

localhost refused to connect - MAMP Pro

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

MAMP - Mac OS X

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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