We had just started learning web programming and I had little knowledge of php. While working in a small assignment, I had to use php. My local server was working but php files would not open, in my MAC OS. I searched in internet and tried a lot of things, and I was able to set system document root at the preferred one, yet my php files would not open.
Solution:
You have to turn on PHP. By uncommenting a specific module i.e.: "LoadModule php5_module libexec/apache2/libphp5.so" in httpd.conf file. After you uncomment the module you have to save the changes, and then restart the server. Then you can check if it is working by filing a php file in the preferred document root and viewing in the browser. php, server configuration, web technologies web programming command line.
Comments