Broken php/localhost/something
- by ghego1
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