0

You dont have enough permission to access /phpmyadmin/ on this server.

enter image description here

after updating to mac os Mojave when I browse to http://localhost/phpmyadmin/index.php I get the index.php file as text. so php isn't working

enter image description here

but when I was running php on terminal php -v is working so there isn't a problem with php.

enter image description here

I think the problem is apache isn't configured to working with php

noone
  • 6,168
  • 2
  • 42
  • 51

1 Answers1

1

I needed to tell apache to use php, so I uncommented following line in apache httpd conf

open /etc/apache2/httpd.conf on any text editor

uncomment following line (remove the pre # tag)

LoadModule php7_module libexec/apache2/libphp7.so

save the file and exit

now apache is using php, restart apache to effect the changes

sudo apachectl restart

noone
  • 6,168
  • 2
  • 42
  • 51