mamp

How to setup an SMTP server on Mac OS X?

╄→尐↘猪︶ㄣ 提交于 2020-06-24 12:23:12
问题 I work with PHP and I have mamp on my machine. I would like to send emails within my PHP code: <?php $to = "recipient@example.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> How can I configure a mail server for free on my mac machine ? 回答1: The following did the job. See source here. Edit file: sudo emacs /System/Library/LaunchDaemons/org.postfix.master

How to setup an SMTP server on Mac OS X?

北战南征 提交于 2020-06-24 12:23:06
问题 I work with PHP and I have mamp on my machine. I would like to send emails within my PHP code: <?php $to = "recipient@example.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> How can I configure a mail server for free on my mac machine ? 回答1: The following did the job. See source here. Edit file: sudo emacs /System/Library/LaunchDaemons/org.postfix.master

MAMP MySQL Cannot connect: invalid settings.

混江龙づ霸主 提交于 2020-06-11 08:45:59
问题 I've run into a issue in my MAMP instillation, I didn't change anything it just happened. I start MAMP perfectly fine and it gives the green light that the MySQL server is up and I can connect to it from the terminal using the mysql command. However when I try and open phpMyAdmin I get this error: Error MySQL said: Documentation Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and

MAMP MySQL Cannot connect: invalid settings.

大城市里の小女人 提交于 2020-06-11 08:45:22
问题 I've run into a issue in my MAMP instillation, I didn't change anything it just happened. I start MAMP perfectly fine and it gives the green light that the MySQL server is up and I can connect to it from the terminal using the mysql command. However when I try and open phpMyAdmin I get this error: Error MySQL said: Documentation Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and

MAMP MySQL Cannot connect: invalid settings.

谁说胖子不能爱 提交于 2020-06-11 08:45:18
问题 I've run into a issue in my MAMP instillation, I didn't change anything it just happened. I start MAMP perfectly fine and it gives the green light that the MySQL server is up and I can connect to it from the terminal using the mysql command. However when I try and open phpMyAdmin I get this error: Error MySQL said: Documentation Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and

MAMP VirtualHost chooses wrong directory

浪尽此生 提交于 2020-06-01 07:21:25
问题 I got a problem with MAMP. I added in the httpd-vhosts.conf these lines of code: <VirtualHost *:80> ServerName "site1.dev" DocumentRoot "/Users/kevingorjan/site1/public_html/" <Directory "/Users/kevingorjan/site1/public_html/"> Options All AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerName "site2.dev" DocumentRoot "/Users/kevingorjan/site2/public_html/" <Directory "/Users/kevingorjan/site2/public_html/"> Options All AllowOverride All

Installation of TYPO3 v9.5 fails in last step because of missing PHP library “argon2i”

徘徊边缘 提交于 2020-05-14 12:11:11
问题 I am trying to install TYPO3 v9.5.3 for the first time and fail in the last step of the installation routine (after submitting the form with the login details for the admin user). As far as I could track this issue down, I think the problem is that I don't have the required library for argon2i compiled into PHP. Now I found a very similar problem description here, but I am not able to change the algorithm in the process of the installation. Is there a way to use "bcrypt" or "phpass" right

Installation of TYPO3 v9.5 fails in last step because of missing PHP library “argon2i”

放肆的年华 提交于 2020-05-14 12:09:25
问题 I am trying to install TYPO3 v9.5.3 for the first time and fail in the last step of the installation routine (after submitting the form with the login details for the admin user). As far as I could track this issue down, I think the problem is that I don't have the required library for argon2i compiled into PHP. Now I found a very similar problem description here, but I am not able to change the algorithm in the process of the installation. Is there a way to use "bcrypt" or "phpass" right

Missing Authorization header using JWT

时光毁灭记忆、已成空白 提交于 2020-05-13 03:56:05
问题 I'm trying to setup JSON Web Tokens to communicate with my php backend from a mobile app. I can request a token just fine. When i need to validate it(or make a request to another endpoint), i setup the Authorization header with the following format: Bearer <token here> But for some reason on my backend, $_SERVER['HTTP_AUTHORIZATION'] is not set. I'm on localhost using Mamp Pro with PHP7. This is a dump for my $_SERVER array: Array ( [SERVER_SOFTWARE] => Apache [REQUEST_URI] => /wp-json/jwt

Missing Authorization header using JWT

我与影子孤独终老i 提交于 2020-05-13 03:54:08
问题 I'm trying to setup JSON Web Tokens to communicate with my php backend from a mobile app. I can request a token just fine. When i need to validate it(or make a request to another endpoint), i setup the Authorization header with the following format: Bearer <token here> But for some reason on my backend, $_SERVER['HTTP_AUTHORIZATION'] is not set. I'm on localhost using Mamp Pro with PHP7. This is a dump for my $_SERVER array: Array ( [SERVER_SOFTWARE] => Apache [REQUEST_URI] => /wp-json/jwt