Mamp and virtual host - mamp

I have created a new host but I forget to add the disk location and then I press the apply button.
Now my Mamp pro is blocked on the mysql activation and I have no idea how to stop it to remove the host I inserted..
Can someone help me?

In the terminal, execute these commands to stop the running services:
/Applications/MAMP Pro/bin/stopApache.sh
/Applications/MAMP Pro/bin/stopMysql.sh
(I actually only use MAMP and not MAMP Pro, so I'm guessing your stopApache and stopMysql are in the MAMP Pro and not MAMP like mine.)

Related

MAMP (PRO) 6 how can I export hosts configuration?

I moved from Intel Mac to M1 and after upgrading I can't kill MySQL anymore, I also have MAMP server randomly restarting
I would like to do a fresh install the only hard think would be recreate all my host structure ( not files and DB )
I know MAMP Pro has a backup utility but ( for me ) it is useless since it try to backup the entire host with all files
What I need to backup is only web server configuration, but can't find any info about that

MAMP 4.2 MySQL Server Not Starting

I recently upgraded from MAMP 4.1.1 to MAMP 4.2 on my Mac running MacOS 10.12.6. After upgrading, MAMP 4.2 will not start the MySQL server. Additionally, there is not an option to Stop servers. I see a green box to the right of Apache Server along with the the ability to select Preferences and Start Servers. Open WebStart page is grayed out.
I followed the instructions on MAMP mysql server won't start. No mysql processes are running to delete the ib_logfile0 and ib_logfile1 files from MAMP/db/mysql56, but that did not work. In addition to the ib_logfiles, I also deleted ibdata1 followed by all of the contents of mysql56, but neither of those worked.
Lastly, I do not see a mysqld running in Activity Monitor.
Any help in restoring my MAMP functionality is greatly appreciated. Thank you in advance for any help.
I had the same problem and tried the same things which didn't solved it.
What solved it for me is I tried starting mySQL in terminal manually in Terminal, here:
/Applications/MAMP/bin/startMysql.sh
I saw this error in Terminal prompt:
mysqld_safe error: log-error set to '/Applications/MAMP/logs/mysql_error_log.err', however file don't exists. Create writable for user 'mysql'.
So I manually create a file '/Applications/MAMP/logs/mysql_error_log.err' and retry startMysql.sh, mySQL then started with no problem.
Back to MAMP app console, I can also start/stop servers and 'Open WebStart Page' with no problem now.

MAMP PRO doesn't allow me to change PHP version over hosts

I don't know why but for some reason my MAMP PRO doesn't allow me to change PHP version over host. I'm using MAMP PRO 4. If you take a look you will notice the option for that is disabled,
I left here a screenshot,
MAMP PRO configuration
Any idea?,
Regards!
I just resolved. The error was running PHP as module mode, if you want to have multiples version for each vhost you must run as CGI
To run a different PHP version on each host, go Languages > PHP > Individual PHP version for every host (CGI mode).
Return to Settings > Hosts and under the host a dropdown should be available to choose your PHP version.
Possibility 1: your server is running (you cannot change php version when the serving is running)
Possibility 2: you only have 1 version of php installed on your computer

MAMP Pro 4 and Sophos Warning about Adminer Database Manager

I have been using Sophos Anti-Virus on the Mac for several years now with good results. Recently when attempting to download the new MAMP Pro 4.x, I received a Sophos alert that the MAMP installer contains the Adminer Database Manager, which it identifies as known Adware and PUA.
Has anyone experienced a similar warning, and is there any reason for concern about this warning?
The only real information I can find about Adminer is this:
http://philipdowner.com/2012/01/using-adminer-with-mamp-on-mac-os-x/
This post indicates that Adminer is some type of script designed to be an alternative to PHPMyAdmin.
Can I just remove Adminer after installing?
-- Lee
I got the same warning and also Google Chrome flags the MAMP 4 PKG file as having a virus. It appears that the official download of Adminer throws the same warning by Sophos (from their website):
https://www.adminer.org/
So, this issue is NOT related to MAMP itself but rather the Adminer application. I think it's a false positive since from what I've seen Sophos is the only antivirus software that flags adminer.php, however you CAN remove the file Applications/MAMP/bin/adminer.php without affecting functionality of MAMP, since as you point out it is just a phpMyAdmin alternative. I simply deleted it for now.
That said, if you upgrade MAMP the file will likely be replaced.

Mamp Pro Restore root user / uninstall

Hi in Mamp Pro I accidentally removed the root account, so I now cannot use mysql to create new databases and all other operations.
This is the error I get when startng mysql via mamp pro:
Checking MySQL databases failed
Error message:
/Applications/MAMP/Library/bin/mysqlcheck: Got error: 1044: Access denied for user 'root'#'localhost' to database 'mysql' when selecting the database
I have tried to reset to factory settings but that hasn't helped.
Basically in the users overview in Phpmyadmin, I just get a yellow box saying "No privileges".
I also tried to uninstall Mamp Pro, but when I tick the uninstaller's checkboxes and hit uninstall, I get the following error:
Error
The privileged action failed.
Help would be really appreciated since I cannot do any work like this.
MAMP evidently creates some configuration files that can't be wiped via the uninstaller. I was able to circumvent the The privileged action failed error and completely uninstall MAMP Pro using the following steps:
Delete the appsolute directory from /Library/Application Support , which contains configuration files that are created upon MAMP Pro installation
Delete the file hosts.mamp.bak in /etc, which is the MAMP hosts backup file
Delete the MAMP directory from /Applications/MAMP
Open the MAMP Pro Uninstaller, check all five options, and click to uninstall
This should completely wipe the existing MAMP/MAMP Pro installation and enable a clean, fresh install. You may need to restart your computer to get Apache running after re-installation.