Maverick installation causes the server to stop working

1

I'm new to apples and recently bought a Mac book, with the Lion operating system. I installed php, mysql, etc and everything worked perfectly.

Now I've upgraded the system to Maverick and the server has stopped working. When I type in the browser localhost / ~ username / project, instead of displaying the PHP site, the folder tree appears.

What to do?

    
asked by anonymous 01.02.2014 / 13:05

1 answer

3

To re-enable PHP do the following

Open the terminal

Type the following command

sudo vi /etc/apache2/httpd.conf

Enter your user password

It will open the apache configuration. Browse the line

LoadModule php5_module libexec/apache2/libphp5.so

Press i to start editing and remove the # at the beginning of the line. Press ESC and then: wq And press ENTER

Shortly thereafter

sudo apachectl restart

Test and see if php is up and running again

I recommend opening a file with phpinfo () to see if the configurations remain the same.

If you have any other questions about the subject:

link

    
01.02.2014 / 14:43