MYSQL access problem with phpmyadmin

I have searched everywhere and can not resolved this issue. I have a 64 bit macbook pro laptop.

I have installed the latest MYSQL for 64 bit mac
I have the latest version of PHP installed and working perfectly with php files.

When i try go to localhost/phpmyadmin I am faced with the login screen so that is all good.

On the login screen it gives me an warning :Cannot load the mcrypt extention although I have followed the instructions to in it which told me I needed to install not mycrypt but libmcrypt-2.5.8 which I have done

I have Xcode 3.2 tools installed and Netbeans.

My problem is when I enter the user 'root' and my password I have set, I either get the error #2002 Cannot log in to the MySQL server if using Safari, or if using Google Chrome I get to a page that tells me

It was by default trying to write session files to /etc/tmp which is not writable. So I changed the path.

Everything I try I get errors and I am at the point of wanting to completely remove all applications to do with a web server and start over, or just go back to using my linux ubuntu server which works fine.

Can someone please guide me to getting this running properly. Many thanks in advance.

1) mcrypt : you have to install the PHP mcrypt extension, not the mcrypt library. Something like php5-mcrypt, not libmcryptxxx
I don't know if php-mcrypt is required or not. But on a fresh debian server I just installed with phpmyadmin, it installed php5-mcrypt because of dependencies :)

2) your session directory: of course the one you choosed is writeable by everyone

It will maybe solve your warning, not your problem.

For the problem, did you check the php log? send us some parts. Thanks. (same with the webserver's logs)

No problems I have a linux system as well but the mac is different. Here is the last few lines from my
apache access log but they don't show much. The apache error log shows even less (just a bunch of errors about a php file with an undefined variable) but that is not the problem. Still trying to find the php error logs.....

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Although there aren't any files in that folder, just a folder. I even tried it without the 'libmcrypt' on the end as that is where a bunch of files are for mcrypt but still get that warning on the phpmyadmin login page.

Cannot load mcrypt extension. Please check your PHP configuration.
I have attached the apache2 error and access logs so you can see what they say. Thanks so much for your patience (mine has run out almost) I also attached my php.ini fileaccess-logerror-logphp.ini

One thing I also noticed is that web sharing was turned on in my system preferences although
I have been told it is unsafe to have it turned on. When I turn it off, localhost does not work at all. I know in some applications possibly Xamp web sharing is required to be turned off. I'm confused.

Would it be better to try and uninstall or dump everything and go for a package to install all 3 applications? I tried Mamp but did not like it and couldn't access my databases even after setting permissions in the folders. I tried Xamp and that wasn't working either. Surely there must be a simple method of getting a damn web server running on a mac so I can do my work! I don't want it as a public server, just local development.

I tried that error file and all it logged was php errors like Undefined index for $name in index.php on LINE 3
and a few other insignificant things. I have lost all faith in trying to get this going so I deleted everything and put MAMP back into my applications folder, and this time it worked! I can now open my php websites and mysql is allowing access so all is good.

I do appreciate your effort but in this case, it was better to move on for me as I have a lot of work to get done.
Much thanks

Featured Post

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Part of the Global Positioning System
A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…

Introduction
Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…

Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…