Installation of Maverick causes the server to stop working

Asked

Viewed 148 times

1

I’m novice with Apples and recently bought a mac book, with 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 showing the PHP site, the folder tree appears.

What to do?

  • Take a look at the system preferences, in sharing. If web sharing is enabled, you are using apache from the OSX installation. And it’s possible that the update overwrites what you installed, depending on where you installed it.

  • You are using standard facilities from php mysql? or installed a package such as XAMPP?

1 answer

3

To rehabilitate PHP do the following procedure

Open the terminal

Type the following command

sudo vi /etc/apache2/httpd.conf

Enter your user password

Will open the apache configuration. Find the line

LoadModule php5_module libexec/apache2/libphp5.so

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

Right after

sudo apachectl restart

Test and see if php is working again

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

If you have any further questions on the subject:

http://akrabat.com/computing/setting-up-php-mysql-on-os-x-mavericks/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.