I didn't have the /etc/php.ini. I did what you said but id doesn't work. If I try to open a php page in my Sites folder it shows me the code. Maybe it's a problem with apache? – lucagheraFeb 11 '12 at 13:28
Look in /etc/apache2/httpd.conf and make sure LoadModule php5_module libexec/apache2/libphp5.so is uncommented. – pätFeb 11 '12 at 13:39
I did it and it worked...however it was in /private/etc/apache2. Why do I have 2 versions? Is it normal the fact that if I go to /localhost/~luca/phpmyadmin it works but /localhost/~luca/phpmyadmin/index.php shows me the php code? – lucagheraFeb 11 '12 at 13:42
1) /etc is just a symlink to /private/etc. And 2) no it's not normal. Maybe browser cache? – pätFeb 11 '12 at 13:46
2) Yes, it was! Thanks! – lucagheraFeb 11 '12 at 16:04