将OS X Yosemite升级到El Capitan后如何运行php文件?

I've recently upgraded my OS X to El Capitan. Then created a php file inside my local server. The newly created file is displayed without error, but previous files in the same directory shows the PHP code in the browser. Also, I cannot access phpmyadmin, it shows Forbidden You don't have permission to access /phpmyadmin/ on this server.

I have run ls -l to see the file permissions in the folder I am working on, everything seems ok. I don't see any change from previous files to the new file I have created. How can I fix this?

Upgrading El Capitan would reset your apache config. You need to change that enable all modules requires in your case mod_alias.