mamp

Symlinked MAMP Folder Causing 403 Forbidden

倾然丶 夕夏残阳落幕 提交于 2019-12-21 05:16:25
问题 I have a folder in my root MAMP directory, "site". I have that symlinked to a folder in ~/Documents/Dropbox/site, so whatever happens in "site" gets transferred to Dropbox. However, when I do this, I get a 403 forbidden error when trying to view localhost/site - is this a problem because I'm using PHP and I should fix php.ini, or is this an httpd.conf problem? In httpd.conf, I have AllowOverride set to None . Thanks for any answers in advance. 回答1: There's also the FollowSymlinks option in

MAC OS X: MAMP Environment & Virtual Hosts

被刻印的时光 ゝ 提交于 2019-12-21 04:52:14
问题 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.

Yosemite - MAMP - Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2)

无人久伴 提交于 2019-12-21 03:42:31
问题 I have problem when I try to connect to MySQL MAMP : ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2) I'm doing research but I have not found a solution to my problem, I try to link mysql.sock like this : sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock But, the file /tmp/mysql.sock doesn't exist. Do you have any ideas ? The problem is blocking me for 2 days, I searched for this time but nothing good for me.

Error starting apache from terminal after removing MAMP

让人想犯罪 __ 提交于 2019-12-21 00:45:13
问题 I removed MAMP recently. When I try to start apache from Terminal using: sudo apachectl -k restart I am getting the message Warning: DocumentRoot [usr/docs/dummy-host.example.com] does not exist. 回答1: First, make sure you're actually trying to execute the proper version of apachectl by issuing the following command: which apachectl (You don't want to see any MAMP references there). Next, find your virtual hosts config (which is likely here if your MAMP references are gone) /etc/apache2/extra

MAMP local host not working

假如想象 提交于 2019-12-20 20:36:12
问题 My MacBook Pro 13 inch is running on OS X 10.8.2 and I have downloaded MAMP 2.1.4. I want to run the MAMP program. After I connect to the servers successfully I then try to press the 'open start page'. It takes me to the Google Chrome browser with a page that says the page can't be found. I've installed MAMP and am running the Apache server and MySQL servers fine through either port 80 and 3306 or 8888 and 8889 - using either combination makes the status lights go green. The local host can't

Waiting For Connection (netbeans-xdebug) MAMP OS X

梦想的初衷 提交于 2019-12-20 12:37:18
问题 Preamble After many hours, I have been unable to get NetBeans to connect to xdebug. Some months ago, after upgrading from an old version of MAMP to MAMP PRO, debugging worked flawlessly. A week ago it started getting flakey. It would appear to connect but would not stop at the breakpoints. Restarting NetBeans (v7.0.1) and apache sometimes got it working for a short time. I really needed it fixed so I installed the latest version of MAMP PRO (2.1.2). Now I get the Waiting For Connection

Laravel Pass Parameter from Route to Filter

为君一笑 提交于 2019-12-20 10:13:37
问题 I am using the laravel framework. If I have the following route: Route::get('/test/{param}', array('before'=>'test_filter', 'SomeController@anyAction')); And this filter: Route::filter('test_filter', function() { $param = [Get the parameter from the url]; return "The value is $param"; }); How can I pass parameters to the filter so that when visiting /test/foobar I would get a page saying: "The value is foobar"? 回答1: Filters can be passed parameters, like the Route object or the Request:

Apache Server Won't Start in MAMP

馋奶兔 提交于 2019-12-20 09:53:19
问题 Apache server won't start when in MAMP. Here are the error logs: [Wed Aug 01 21:07:34 2012] [notice] Digest: generating secret for digest authentication ... [Wed Aug 01 21:07:34 2012] [notice] Digest: done [Wed Aug 01 21:07:34 2012] [notice] Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 configured -- resuming normal operations [Wed Aug 01 21:08:00 2012] [notice] caught SIGTERM, shutting down [Wed Aug 01 21:08:01 2012] [notice] Digest: generating secret for digest authentication ... [Wed Aug 01 21:08

Error importing MySQL data across platforms (MAMP to WIMP)

╄→гoц情女王★ 提交于 2019-12-20 07:10:07
问题 I've dumped a MySQL database I have on my local MAMP server into a .sql file. Usually, it's easy enough for me to import that file to my production Linux servers without a hitch. However, my current client runs MySQL on WIMP, and when import the MAMP-generated .sql dump into my WIMP mysql environment (Using pphpMyAdmin) I get a "File could not be read" error? Any ideas of what I'm bumping up against, or what to check? Thanks- EDIT: My initial explanation was unclear- I'm trying to export out

Zend Framework 2 Album Tutorial 404 error occurred The requested URL could not be matched by routing MAMP OSX

為{幸葍}努か 提交于 2019-12-20 06:19:33
问题 just posted this on IRC channel ZFTalk too, Hope I can get some help on ZF2, ZF2 Album Tutorial, OSX using MAMP. Skeleton framework, homepage is working. Issue : After completing section : 8.5 Listing albums, you fill up the module/Album/view/album/album/index.phtml with some code, then they ask you to preview the page on http://zf2-tutorial.localhost/album. I get a 404, The requested URL could not be matched by routing. I headed to Google for advice. Found a GIT repository with a 'fully