mamp

mamp pro破解方法

不问归期 提交于 2019-12-04 15:20:33
mamp pro破解方法 安装的时候先把网断掉,然后把系统时间差不多调到2021年,安装完成之后运行一次mamp Pro,然后关掉mamp,在把时间调回来,你就会发现你有1000多天的使用时间了 来源: https://www.cnblogs.com/newmiracle/p/11871351.html

MAMP MySQL not recognizing my.cnf values in OSX

爷,独闯天下 提交于 2019-12-04 14:33:48
Trying to go UTF8 permanently and can't get MAMP's install of MySQL to recognize my.cnf values. MAMP Version 2.0.5 (2.0.5) MySQL 5.5.9 my.cnf file: [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] default-character-set=utf8 default-collation=utf8_general_ci collation_server=utf8_general_ci character_set_server=utf8 init-connect='SET NAMES utf8' Location of file: /Applications/MAMP/Library/Conf/ MySQL varibles on startup: mysql> show variables where variable_name LIKE '%char%' OR variable_name LIKE '%colla%'; +--------------------------+---------------------------

Send mail from localhost with PHP with MAMP

半城伤御伤魂 提交于 2019-12-04 14:31:48
I've been trying everything I can find on the internet for this, and none of them seem to be working, so I'm doing something wrong and I need some help figuring out what. [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = myemail@yahoo.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail -t -i -f myemail@yahoo.com The above code is what I have changed everything to, (except for the email is my actual email (also I'm not sure if yahoo email will work with this or not, so maybe that

How To Export/Import Large Database On MAMP

别等时光非礼了梦想. 提交于 2019-12-04 14:27:07
问题 How do I export/import large database on MAMP ? Using PHPMyAdmin does not work as it supposed to be. 回答1: It should be done via terminal as below. In the terminal navigate to bin folder of MAMP using below command cd /Applications/MAMP/library/bin Use this command to export the file ./mysqldump -u [USERNAME] -p [DATA_BASENAME] > [PATH_TO_FILE] . EG would be ./mysqldump -u root -p my_database_name > /Applications/MAMP/htdocs/folder_name/exported_db.sql Line should appear saying Enter password:

Use SSL with MAMP PRO 4

大兔子大兔子 提交于 2019-12-04 13:31:15
问题 Since I've updated to chrome 63, my sites in localhost are redirected to https, so I decided to use SSL with MAMP PRO but I can't make it work, chrome says Your connection is not private. In the SSL panel of MAMP, I generated the certificate and set its path for the key and certificate, however I don't know what I should do for "Certificate chain file (Apache only)" 回答1: I hit the same issue recently and found a solution that works for me on macOS. As you've already highlighted, this issue

Local Name Resolution without Port - MAMP Pro

ぃ、小莉子 提交于 2019-12-04 13:30:00
问题 This has been bothering me for a while, within MAMP Pro, I've got a few sites setup with "Local Name Resolution", however they only work with a port number. I've noticed many people are able to get them to work without any port numbers. E.g Chris Coyier from CSS-Tricks can work directly on v10.whatup , where as my own would only work on v10.whatup : 8888 TL:DR. test.dev:8888 works, but not test.dev/ Am I missing something/What's the problem? UPDATE/EDIT: If I set MAMP Pro port settings to use

PHP shell_exec only works for certain commands

馋奶兔 提交于 2019-12-04 13:19:08
I am a complete PHP (LAMP/WAMP/MAMP) noob and I'm running into what seems to be a common issue among noobs trying to run shell commands from a web server. I have a MAMP setup on a Mac mini and I want to collect the output from an Android command, adb devices so I can display a list of devices attached to my mac mini. whenever I pass the command to shell_exec in my PHP script I get an empty string returned. I cannot figure out how to resolve the issue after several web searches. I tried running shell_exec("who am i") which returns "Clifton", the name of the user account that launched MAMP. I

Changed upload_max_filesize in php.ini but phpinfo doesn't show the change

寵の児 提交于 2019-12-04 12:49:21
Basically phpinfo says upload_max_filesize is 2M, but I changed it in the php.ini file to 8M. I am using MAMP, so I restarted MAMP and phpinfo still says 2M. I checked the path to the php.ini file that phpinfo shows and it matched up exactly. See the YouTube video of me documenting all of this. You should change the file in /Applications/MAMP/bin/php/php5.4.10/conf/php.ini After you should reset MAMP. I also changed all php.ini before, and phpinfo() doesn't had been change, but I don't sure if it is need to works, so if only changing the file in the path above, try change the others also. I

Is there a definitive guide for setting up Mamp Pro so local network users can view/edit sites?

感情迁移 提交于 2019-12-04 12:29:57
问题 I've been researching how to setup a LAN Mamp Pro server so local users can edit/view sites - but there seems to be a lot of confusion (at least I'm confused based on why I've read). Specific questions: Running Apache/Mysql as www/mysql: When I switch the users to www/mysql I see permissions issues and can't login to my CMS from the machine running Mamp Pro. What's the best way of fixing this or running Mamp Pro - taking into consideration permissions when using pushing to DEV and LIVE

debugging php on mac?

こ雲淡風輕ζ 提交于 2019-12-04 11:44:58
was wondering what was the best way to debug PHP on my local machine. I use MAMP on mac os 10.5 thanks, Patrick Using xdebug is a good start. Download the package and follow the instructions in the INSTALL file. It's fairly easy. Once this is done, add the following lines to your php.ini file: ;;[xdebug] zend_extension="/Path/to/your/module/xdebug.so" xdebug.file_link_format="txmt://open?url=file://%f&line=%1" xdebug.var_display_max_depth = 20 Don't forget to restart Apache after this. Most debugging can be done using a simple die(var_dump($some_variable)) . It's not very sophisticated, but