Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

3 votes
1 answers
7287 views
Access Applications directory with Terminal in Recovery Mode
I hope someone can help. I'm trying to access my Appplications directory in Recovery Mode of my iMac with Terminal. I want to copy a folder to an external hard drive. After updating to Big Sur, my iMac won't start and so I need some files to save. The path I want to access is `/Applications/MAMP/htd...
I hope someone can help. I'm trying to access my Appplications directory in Recovery Mode of my iMac with Terminal. I want to copy a folder to an external hard drive. After updating to Big Sur, my iMac won't start and so I need some files to save. The path I want to access is /Applications/MAMP/htdocs. When I type ls /Applications/MAMP: it says that there is no such file or directory. When I type ls /Applications: Safari.app and Utilities appear. When I type ls /Volumes/Macintosh\ HD/users/"username"/Applications .localized appears. Is there another command I have to use? Is it even possible to get into the application folder? By the way: I already copied the whole Library folder... maybe it's possible to override the MAMP-files? Or do I need another backup of the htdocs-folder? Edit: This is the result of diskutil list internal enter image description here
Marina2701 (33 rep)
Jul 30, 2021, 05:39 AM • Last activity: Dec 11, 2024, 01:07 PM
0 votes
1 answers
449 views
How can I install an Apple Silicon (ARM) native version of Oracle’s InstantClient (OCI8) for use with MAMP?
The title pretty much says it all: How can I install an Apple Silicon (ARM) native version of Oracle’s InstantClient (OCI8) for use with [MAMP][1]? As I understand it, Oracle has not released an official Apple Silicon (ARM) native version of their InstantClient (OCI8). This is a pain, and it means t...
The title pretty much says it all: How can I install an Apple Silicon (ARM) native version of Oracle’s InstantClient (OCI8) for use with MAMP ? As I understand it, Oracle has not released an official Apple Silicon (ARM) native version of their InstantClient (OCI8). This is a pain, and it means that I have to use the Intel native version of MAMP that will run via translation via Rosetta 2. And I have to install the Intel version of Oracle’s InstantClient (OCI8) to get it to work. I’m not obsessed with speed since I use MAMP for general development purposes, but I would like to have a cleaner install process for MAMP than what I currently have to do; kludge MAMP’s Intel installer to force it to install on my MacBook Air (M2; 2022) . How can this be done?
Giacomo1968 (5877 rep)
Aug 13, 2024, 06:22 PM • Last activity: Aug 15, 2024, 06:49 PM
2 votes
1 answers
613 views
How to set up Varnish locally on a Mac OS with MAMP Pro?
I'm trying to make Varnish work on my local Mac with MAMP Pro (running a Drupal website). I have installed Varnish with Homebrew brew install varnish So far so good. Then I start Varnish with the following command : sudo varnishd -a 127.0.0.1:8080 -T 127.0.0.1:6082 -f /usr/local/etc/varnish/drupal.v...
I'm trying to make Varnish work on my local Mac with MAMP Pro (running a Drupal website). I have installed Varnish with Homebrew brew install varnish So far so good. Then I start Varnish with the following command : sudo varnishd -a 127.0.0.1:8080 -T 127.0.0.1:6082 -f /usr/local/etc/varnish/drupal.vcl -s file,/tmp,500M The varnish child start and I start to monitor with : varnishstat MAMP Pro is set to port 80 which is the conf I have in my .vcl file. The problem is Varnish does not cache the page when I go to my http://drupal.local website (All the caching conf from Drupal is properly set up as it works on a centOS server). Any idea about what I'm missing ?
pbonnefoi (141 rep)
Feb 8, 2023, 10:15 AM • Last activity: Apr 22, 2024, 09:25 PM
0 votes
1 answers
410 views
How can I force an install of an Intel binary on an Apple Silicon machine? In this case, MAMP 6.9
Due the fact that [Oracle has not released an ARM version (Apple Silicon) of their Instant Client (OCI8)][1] I am forced to use the Intel version of MAMP with my MacBook Air (M2; 2023) so I can properly compile the OCI8 binary (based on the Intel version of the Instant Client) via Pecl. Okay, that s...
Due the fact that Oracle has not released an ARM version (Apple Silicon) of their Instant Client (OCI8) I am forced to use the Intel version of MAMP with my MacBook Air (M2; 2023) so I can properly compile the OCI8 binary (based on the Intel version of the Instant Client) via Pecl. Okay, that should be no big deal. MAMP basically runs Apache, MySQL and PHP so there should not be a performance hit. Rosetta translation of Intel code should not significant or negatively impact the use of MAMP at all. But how I can I install the install the Intel version of the binary (MAMP_MAMP_PRO_6.9-Intel-x86.pkg) on my MacBook Air (M2; 2023)? I launch the installer and get this message that effectively blocks and install: > **x86_64 CPU required!** > > You need a x86 CPU (64 bit) to run MAMP or MAMP PRO. enter image description here I guess I could hassle a co-worker to install in on an Intel-based Mac and then just copy the MAMP folder located at /Applications/MAMP to a USB flash drive and then install that on my MacBook Air? But is there any way to force the installer to ignore the CPU architecture mismatch so I can handle this on my own?
Giacomo1968 (5877 rep)
Mar 31, 2024, 03:01 AM • Last activity: Mar 31, 2024, 02:19 PM
2 votes
1 answers
363 views
Repeated alert: "MAMP PRO.app" would like to access data from other apps
I recently migrated to a new Macbook Pro. Now every time I re-open Mamp I get the alert `"MAMP PRO.app" would like to access data from other apps`. Even if I choose to "Allow" it will pop up again if I close the app and open it. What is Mamp trying to access and why? Edit: I'm using the newest versi...
I recently migrated to a new Macbook Pro. Now every time I re-open Mamp I get the alert "MAMP PRO.app" would like to access data from other apps. Even if I choose to "Allow" it will pop up again if I close the app and open it. What is Mamp trying to access and why? Edit: I'm using the newest version of Mamp Pro 6.8
Brimby (123 rep)
Jan 11, 2024, 06:01 PM • Last activity: Jan 19, 2024, 10:17 AM
15 votes
8 answers
30663 views
macOS Catalina doesn't allow MAMP permission to certain folders (Documents, Downloads, Desktop)
I have been using MAMP for a few years now, I just updated to macOS Catalina, it seems that macOS Catalina is blocking permissions to the Documents folder among a few others (such as Downloads and Desktop). I have already checked the permissions on these files with terminal and that doesn't seem to...
I have been using MAMP for a few years now, I just updated to macOS Catalina, it seems that macOS Catalina is blocking permissions to the Documents folder among a few others (such as Downloads and Desktop). I have already checked the permissions on these files with terminal and that doesn't seem to be the issue. Additionally I have The server gives me this error: Forbidden You don't have permission to access /Users/xxx/Downloads/index.html on this server. The Apache log gives me this error: [Wed Oct 09 12:31:30 2019] [error] [client ::1] (1)Operation not permitted: file permissions deny server access: /Users/xxx/Downloads/index.html, referer: http://localhost/Users/xxx/ It seems to be an issue with the way macOS is restricting permissions to certain directories. In the settings panel under Security and Privacy there are additional settings for file access, I have granted MAMP those permissions, in addition I have also went inside the MAMP folder and granted Apache's httpd the same permissions, still no luck. Does anyone have a work around? This is causing me such a headache in development.
tony (253 rep)
Oct 9, 2019, 07:36 PM • Last activity: Jun 21, 2023, 07:12 PM
1 votes
1 answers
731 views
How can I solve this cakephp/cakephp 4.2.8 requires ext-intl PHP extension error on macOS?
With a MacBook Pro, I use MAMP and I believe I already have intl PHP extension [![enter image description here][1]][1] [1]: https://i.sstatic.net/doPqb.png When i am trying to update my cakephp project via composer i am getting this error - Root composer.json requires cakephp/cakephp ^4.2.8 -> satis...
With a MacBook Pro, I use MAMP and I believe I already have intl PHP extension enter image description here When i am trying to update my cakephp project via composer i am getting this error - Root composer.json requires cakephp/cakephp ^4.2.8 -> satisfiable by cakephp/cakephp[4.2.8]. - cakephp/cakephp 4.2.8 requires ext-intl * -> it is missing from your system. Install or enable PHP's intl extension. Then i checked which php and result is which php /usr/bin/php I tried to use composer.phar file but still same error. How to change default php (mac os ) to MAMP?
Yogesh Saroya (141 rep)
Aug 24, 2021, 07:19 AM • Last activity: Apr 26, 2023, 05:52 PM
0 votes
0 answers
87 views
Unable to remove PHP old path from system
Ever since I updated my MacBook PRO from 8.0 8.2, I can't seem to symlink php or add php to path anymore. I have to give the full path. ``` $ php -v -bash: /Applications/MAMP/bin/php/php8.0.8/bin/php: No such file or directory ``` ``` $ /Applications/MAMP/bin/php/php8.2.0/bin/php -v PHP 8.2.0 (cli)...
Ever since I updated my MacBook PRO from 8.0 8.2, I can't seem to symlink php or add php to path anymore. I have to give the full path.
$ php -v
-bash: /Applications/MAMP/bin/php/php8.0.8/bin/php: No such file or directory
$ /Applications/MAMP/bin/php/php8.2.0/bin/php -v
PHP 8.2.0 (cli) (built: Dec  9 2022 09:00:24) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.0, Copyright (c) Zend Technologies
$ sudo mv /usr/bin/php /usr/bin/~php
mv: rename /usr/bin/php to /usr/bin/~php: Operation not permitted
$ sudo ln -s /Applications/MAMP/bin/php/php8.2.0/bin/php /usr/bin/php
ln: /usr/bin/php: Operation not permitted
$ export PATH=$PATH:/Applications/MAMP/bin/php/php8.2.0/bin
$ php -v
-bash: /Applications/MAMP/bin/php/php8.0.8/bin/php: No such file or directory
$ echo $PATH
blah-blah-blah:/Applications/MAMP/bin/php/php8.0.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/MAMP/bin/php/php8.2.0/bin:blah-blah-blah:
php -v
-bash: /Applications/MAMP/bin/php/php8.0.8/bin/php: No such file or directory
Where is php8.0.8 stoned in ? Which file do I search for ? macOS Mojave.
anjanesh (467 rep)
Feb 25, 2023, 07:27 AM
0 votes
1 answers
816 views
Laravel from Scratch - Traversy YouTube - SQLSTATE[HY000] [1045] error when run PHP artisan migrate
I'm running PHP 7.4.9, Laravel 8 and MAMP 6.0.1 and am learning Laravel. Those of you running **MAMP** and following this excellent [tutorial][1] will find in Video 5 that you will get this error when attempt to run the PHP artisan migrate command in video #5: SQLSTATE[HY000] [1045] Access denied fo...
I'm running PHP 7.4.9, Laravel 8 and MAMP 6.0.1 and am learning Laravel. Those of you running **MAMP** and following this excellent tutorial will find in Video 5 that you will get this error when attempt to run the PHP artisan migrate command in video #5: SQLSTATE[HY000] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = lsapp and table_name = migrations and table_type = 'BASE TABLE') It looks like a basic mySQL issue but it's not, it's due to some missing configuration in the defaul Laravel configuration for MAMP users. I spent ages attempting to resolve and found bits of helpful and conflicting info across different threads so thought it would be useful to combine the solution in one place...
NickC (56 rep)
Jan 16, 2021, 04:30 PM • Last activity: Oct 9, 2022, 04:04 AM
8 votes
4 answers
21350 views
PHP not working after upgrading to OS Mojave
When i try to open localhost it gives me 403 error message like this "You don't have permission to access / on this server." I have tried changing the permission but nothing happens. It worked fine with High Sierra but after update its not working.I am using the pre installed apache and not using th...
When i try to open localhost it gives me 403 error message like this "You don't have permission to access / on this server." I have tried changing the permission but nothing happens. It worked fine with High Sierra but after update its not working.I am using the pre installed apache and not using third party apps like xamppenter image description here
Kalpesh Shende (83 rep)
Sep 30, 2018, 06:40 AM • Last activity: Jul 11, 2022, 09:19 PM
1 votes
0 answers
411 views
Chrome and Safari find localhost in two different locations
I've been trying to set up MAMP (macOS, Apache, MySQL, PHP) using Homebrew on macOS Monterey. I set the file directory for Apache as `/Users/myname/Sites` in `httpd.conf`. When I go to http://localhost in Chrome, I get the `index.html` page in that directory. But when I go to http://localhost in Saf...
I've been trying to set up MAMP (macOS, Apache, MySQL, PHP) using Homebrew on macOS Monterey. I set the file directory for Apache as /Users/myname/Sites in httpd.conf. When I go to http://localhost in Chrome, I get the index.html page in that directory. But when I go to http://localhost in Safari, it opens the index.html page in /Library/WebServer/Documents. Do I somehow have 2 copies of Apache running? How do I resolve this conflict?
superflippy (61 rep)
May 12, 2022, 02:40 PM • Last activity: May 13, 2022, 07:28 AM
0 votes
1 answers
420 views
Apache config resetting after every OS update
This is infuriating. I have a lot of custom settings on my development Mac and every time there is an OS upgrade I have to go back and reset everything. I read somewhere that the old config is saved in `httpd.conf~previous`, but that file doesn't contain my changes either. It seems to be more or les...
This is infuriating. I have a lot of custom settings on my development Mac and every time there is an OS upgrade I have to go back and reset everything. I read somewhere that the old config is saved in httpd.conf~previous, but that file doesn't contain my changes either. It seems to be more or less the same as the new one. Questions Why does this happen on every Mac update? What can I do to avoid this? Should I install a second copy of apache with brew? and if I do that, is it reasonably possible to disable the built-in MAMP? All solutions are greatly appreciated.
I wrestled a bear once. (103 rep)
Mar 12, 2021, 06:11 PM • Last activity: Mar 13, 2021, 10:45 PM
2 votes
2 answers
11356 views
MAMP Pro license record
I purchased a license for MAMP Pro and copy/pasted the license on the webpage when I ordered it. But there is no record of the license key on the invoice or on when I login to their support system.. I am retiring this computer and transferring my work to a new computer so I am trying to find my lice...
I purchased a license for MAMP Pro and copy/pasted the license on the webpage when I ordered it. But there is no record of the license key on the invoice or on when I login to their support system.. I am retiring this computer and transferring my work to a new computer so I am trying to find my license so I can reinstall MAMP on the new computer. I've looked through the ~/Library/Application Support folder and /Applications/MAMP Pro/ but I can not find it in a plist file either. Does anyone know where this is stored or where I can find it? I've already submitted a support ticket but figured I'd see if someone knows rather than waiting around for them to get back to me.
davidcondrey (1814 rep)
Nov 21, 2014, 06:39 PM • Last activity: Nov 19, 2019, 11:33 PM
0 votes
1 answers
2845 views
After updating to MacOS Catalina MAMP doesn't work anymore with root on a network mount
I have a network mount on /var/www (original on /Volumes/internet, connected to afp://nasbox/). This is the document root for my MAMP server (5.5). After upgrading to MacOS Catalina I get the following error: > [Wed Oct 09 03:56:05 2019] [error] [client 127.0.0.1] (1)Operation not > permitted: Can't...
I have a network mount on /var/www (original on /Volumes/internet, connected to afp://nasbox/). This is the document root for my MAMP server (5.5). After upgrading to MacOS Catalina I get the following error: > [Wed Oct 09 03:56:05 2019] [error] [client 127.0.0.1] (1)Operation not > permitted: Can't open directory for index: /Volumes/internet/ I can connect to the network folder, I can see it's content if I check with a terminal, but MAMP doesn't seem to be able to read from it after the update. How can I make things work again? *EDIT: I changed the DocumentRoot to a 'real' local folder (/Applications/MAMP/htdocs) and everything seems to be running as expected, which leads me to belief the mapping to the NAS is the problem. ls -l showed me I had all permissions on this drive (drwxrwxrwx)
patrick (101 rep)
Oct 9, 2019, 02:10 AM • Last activity: Oct 16, 2019, 07:52 PM
1 votes
2 answers
776 views
Postfix in combinaton with MAMP
I'm trying to get Postfix working on my mac but I can not get it working. Operating system is Mojave 10.14.3 MAMP PRO 5.2.2 I use a hostgator smtp which should work. It works anyway in my mail app. I can not find any usable message and I have tried all kind of solutions which I found on internet but...
I'm trying to get Postfix working on my mac but I can not get it working. Operating system is Mojave 10.14.3 MAMP PRO 5.2.2 I use a hostgator smtp which should work. It works anyway in my mail app. I can not find any usable message and I have tried all kind of solutions which I found on internet but it still does not work. By starting postfix in the terminal with "sudo postfix start" I get the message "fatal error". How can I get postfix working on my Mac?
Martin de Schrijver (11 rep)
Mar 1, 2019, 02:47 PM • Last activity: Mar 21, 2019, 01:38 PM
1 votes
1 answers
6625 views
List all installed macOS packages
I've inherited a pre-owned Mac running macOS High Sierra. I wish to use it for Web app development. It's been well-used by the previous owner for Software development and DevOps. It runs like a HAL9000 (I suspect some Mac guru has configured it thus). So I do not wish to wipe and reinstall macOS. I...
I've inherited a pre-owned Mac running macOS High Sierra. I wish to use it for Web app development. It's been well-used by the previous owner for Software development and DevOps. It runs like a HAL9000 (I suspect some Mac guru has configured it thus). So I do not wish to wipe and reinstall macOS. I wish to determine a list of all the apps and packages along with their version information installed via various sources like Mac App Store, manually installed software, Homebrew, MacPorts, Fink etc. For each app/package I am looking to obtain the following information: 1. Installed version. 2. Installation source, i.e. via a package manager (Homebrew, MacPorts, Fink), macOS pre-installed, or unknown (direct download). 3. Primary configuration file location. For e.g. httdp.conf, my.cnf, php.ini bin and log dirs for A++ etc. I don't think of the Mac App Store as a package manager per-se, and I guess the app are tied to ones Apple ID than the machine, right? By knowing the source or installation of package will help me with cleanup on unneeded apps and upgradation of the rest. Additionally, it will be really helpful to identify components installed on virtual machines, XAMPP, MAMP environments etc. which have been in use. I know theres containerisation, as Docker is installed. When I say **packages**, I'm primarily interested in: 1. Major system services and Development libraries. 2. RDBMS, such as MySQL, MariaDB, PostgreSQL etc. 3. Web servers, such as Apache, Tomcat, Nginx, JBoss etc. 4. Core language libraries, such as Python, PHP, Java etc. If filtering is a hassle, all is good too from library to GUI app. 5. Programming language frameworks installed, such as PHP: Laravel, CodeIgniter; Python: MySQL Connectors etc. 6. Testing frameworks, such as PHPUnit. 7. Additional component packages and plugins installed/active beyond default configuration. 8. Front-end tooling, such as CSS: Bootstrap, JavaScript: Libraries. I'm guessing these would be installed in specific development environments not the whole machine? I don't think it would be possible to identify this level of environment for reuse and they tend to be set-up according to developer preferences and and the primary IDE/tools they use. 9. Developer tools, such FTP/SFTP Apps, Espresso, CSEdit, LiveStyle. 10. Web Browsers and associated tools, such as extensions and bookmarklets that would complete a full audit of macOS development environment. Speaking of Editors & IDE's, I've got a ton of them, including Eclipse, Codekit, PhpStorm, Brackets, Sublime Text 3, Coda, TextWrangler, BBEdit, TextMate, Atom etc. As a other way round ToDo, it would be great to have a **general** system audit tool and I could filter out. Anyway, the **primary** question is how of identify the source package installer; so I can reverse out or upgrade cleanly. I know brew will tell you what it has installed but not whether a component already exists natively or otherwise. I'll be amazed if anyone responds to this convoluted inquiry! **TL;DR**, I am looking to compile a list of anything and everything installed in the OS over the default install.
Senor Felipe Largo (21 rep)
Jul 29, 2018, 06:45 PM • Last activity: Aug 10, 2018, 09:10 AM
2 votes
2 answers
1833 views
Uninstall MySQL
I'm trying to get a working copy of MAMP. But I once installed the MySQL server seperately, and I can't find a way to uninstall. ![enter image description here][1] ![enter image description here][2] How can I uninstall this version of MySQL? [1]: https://i.sstatic.net/DmYFx.png [2]: https://i.sstati...
I'm trying to get a working copy of MAMP. But I once installed the MySQL server seperately, and I can't find a way to uninstall. enter image description here enter image description here How can I uninstall this version of MySQL?
Michiel (9875 rep)
Apr 3, 2012, 08:32 PM • Last activity: Jul 24, 2018, 10:48 PM
6 votes
2 answers
2519 views
MAMP nginx.conf - invalid number of arguments in "user"
I am having issues starting up Nginx with the MAMP Pro application. When I press start Nginx I get the following error message invalid number of arguments in "user" directive in /Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf:7 looking at the configuration file > /Library/Application...
I am having issues starting up Nginx with the MAMP Pro application. When I press start Nginx I get the following error message invalid number of arguments in "user" directive in /Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf:7 looking at the configuration file > /Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf I notice the following line has multiple users user rob COMPANYWORKDOMAIN\Domain Users; However changing it to just one user (rob) does not work because it gets overwritten and reverted back next time I start up Nginx via the MAMP application. I'm a bit stuck as what to do here?
Robbo_UK (345 rep)
Feb 24, 2017, 11:33 AM • Last activity: Jul 13, 2018, 06:20 PM
14 votes
7 answers
46475 views
How can I increase command line memory_limit for PHP with MAMP PRO?
I've edited every single `php.ini` on my Mac (at least all the ones found by "locate") and still can't seem to increase the `memory_limit` directive for PHP. I'm using MAMP PRO and running PHP scripts in the terminal. How to solve this?
I've edited every single php.ini on my Mac (at least all the ones found by "locate") and still can't seem to increase the memory_limit directive for PHP. I'm using MAMP PRO and running PHP scripts in the terminal. How to solve this?
Alex Weber (262 rep)
Nov 21, 2011, 02:52 AM • Last activity: Jul 9, 2018, 07:13 PM
0 votes
1 answers
1870 views
Configuring XAMPP on macOS Sierra (version 10.12.6)
On a fresh installation of macOS, I decided to use XAMPP (I have previously used MAMP (free ver.)) but I have encountered some simple issues. 1. The general tab shows IP address `192.168.64.2` but my system IP is `192.168.1.100`. Why is the IP different by default? And how can this be changed to use...
On a fresh installation of macOS, I decided to use XAMPP (I have previously used MAMP (free ver.)) but I have encountered some simple issues. 1. The general tab shows IP address 192.168.64.2 but my system IP is 192.168.1.100. Why is the IP different by default? And how can this be changed to use the same? The "go to application page" loads dashboard on 192.168.64.2 but I'd like to use the localhost on some port like localhost:8888 / 127.0.0.1:8888. 2. Trying to open phpmyadmin returned an access forbidden page ("... New XAMPP security concept: ..."). I looked up about it in google which showed results suggesting to edit the configuration file to allow external access. I'd like to keep it to localhost, so I guess the IP has to be changed to localhost. How can that be achieved? 3. Unlike MAMP, there is no option to set the port within the application, so I tried to look for the httpd file in `Applications->XAMPP->(show package contents)->contents->... but did not find the file. So where are the configuration files? > P.S. Do not suggest to turn off the system provided apache server > (sudo apachectl stop)
user248550
Jul 23, 2017, 05:50 AM • Last activity: Apr 21, 2018, 09:26 PM
Showing page 1 of 20 total questions