Broken php/localhost/something

Posted by ghego1 on Stack Overflow See other posts from Stack Overflow or by ghego1
Published on 2012-10-31T22:54:11Z Indexed on 2012/10/31 23:00 UTC
Read the original article Hit count: 122

Filed under:
|
|

I was trying to install the mcrypt libraries following this tutorial (http://www.glenscott.co.uk/blog/2011/08/29/install-mcrypt-php-extension-on-mac-os-x-lion/), but something must have gone wrong and now when I load a php page on my localhost I see this:

query="SELECT DISTINCT ".$field." as a,".$field2." as b FROM ".$tab." ".$where. " Group by ".$field." order By ".$orderBy; return $this->query; }

And all the remaining code of the php page that should get loaded. I've retrieved the previous versions of the private/etc folder and usr/lib/php folder with time machine but it didn't help. And now if I execute sudo pachectl restart it gives me this error: sudo: no valid sudoers sources found, quitting (while before it worked.

PS I'm on a mac with Mountain Lion

© Stack Overflow or respective owner

Related posts about php

Related posts about apache