![]() Look at the configuration of php in MAMP Pro Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-( The following problem can occur while using xDebug Xdebug: Could not connect to debugging client. Ĭomment: If you have already symbolic links use the resulting file iso creating a symbolic link to a symbolic link. You will need permissions to create the directory and link, so just prefix the commands above with sudo if necessary. If you have /var/mysql/mysql.sock but no /tmp/mysql.sock then. If you have /tmp/mysql.sock but no /var/mysql/mysql.sock then. ' Comment: Exactly what I had with earlier MAMP installations, but since you are doing this once, you don't remember it. Rather than move the socket, edit config files, and have to remember to keep edited files local and away from servers where the paths are correct, simply create a symbolic link so your Mac finds the required socket, even when it's looking in the wrong place! $ ls -l /tmp/mysql.sock /var/mysql/mysql.sock You may have a socket (appearing as a zero length file) as /tmp/mysql.sock or /var/mysql/mysql.sock, but one or more apps is looking in the other location for it. mysqli_connect(*uninitialized*, *uninitialized*, *uninitialized*) /Data/./Database.php:258įor some reason mysql on OS X gets the locations of the required socket file a bit wrong, but thankfully the solution is as simple as setting up a symbolic link. PHP Warning: mysqli_connect(): (HY000/2002): No such file or directory in /Data/./Database.php on line 258 When you receive the following warning on mysql on OSX: Fixed, the deamon has been started (see line2).May 28 16:29:26 postfix/master: daemon started - version 2.11.0, configuration /etc/postfix May 28 16:29:26 postfix/master: terminating on signal 15 May 28 16:28:40 postfix/master: daemon started - version 2.11.0, configuration /etc/postfix May 28 16:28:29 postfix/master: fatal: bind fe80::1 port 25: Can't assign requested address Now look in the mail.log tail -f -n 65 /var/log/mail.log.Edit the file main.cf located in the /etc/postfix/main.cf in terminal.The reason of these errors is located in the wrong binding to the ipv6 instead of the ipv4. May 28 16:09:49 postfix/master: fatal: bind fe80::1 port 25: Can't assign requested address May 28 16:09:39 postfix/master: fatal: bind fe80::1 port 25: Can't assign requested address Now open the mail log file which is located in the /var/log directory and you will see:. ![]() Just fill in '' at the Domain of outgoing mail and restart the server.MAMP Pro uses postfix as you can find on the last tab of the MAMP Pro app. If you try to send a mail with MAMP Pro you will notice that this is not working out-of-the-box. rwxrwxr-x 1 _www admin 11M Nov 15 19:04 Log4DbTrace.log The best way is to change the group of the directory in the admin user (I think every Apple owner is also the admin of his device). Give your OSX password and that will do the trick.Īnother way is to do is to use su, but that's even more annoying. When you try to run a Terminal application that uses files from the Server owned directory you need to do a sudo: MAMP has the user _www as default user to run the MAMP-server. The best way to create websites is outside the MAMP (PRO) environment. It all depends how you have configured your websites in MAMP and MAMP-Pro. Follow the guidelines given on that Website.Installing is simple and only given here for reference. To obtain MAMP for Installation and Update you need to: Zend_extension="/Applications/MAMP/bin/php/php5.4.34/lib/php/extensions/no-debug-non-zts-20100525/xdebug.MAMP Pro is a very handy tool for having a Webserver with PHP and MySql on your Mac. The final result will look something like this: In both of these files, go down to the very bottom of the config file, where the section is, and uncomment ( remove the ) zend_extension line. Applications/MAMP/bin/php/php/conf/php.ini There are two files you need to edit: /Applications/MAMP/conf/php/php.ini One serves as a template when you start up PHP. Really the only trick to know is that MAMP keeps two configuration files for each PHP version. I found plenty of MAMP Pro posts on how to setup XDebug, but not for simple MAMP. It also comes with a preconfigured MySQL instance for my database needs.īy default, XDebug is not enabled in MAMP. I work with a variety of projects that require different versions of PHP, and MAMP allows me to change the PHP version quickly and easily. I’ve swapped over to MAMP for my local web development needs on OSX.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |