102 reputation
16
bio website
location
age
visits member for 2 years, 4 months
seen Sep 4 '13 at 13:12

Aug
3
awarded  Notable Question
Mar
15
awarded  Supporter
Oct
13
awarded  Popular Question
Aug
31
comment MAMP runs agonizingly slow unless I'm authorized to use sudo
POW! It seems to have worked. I removed the write permissions and my pages immediately started loading normally! For the sake of closure (and the legions of other people who seem to have this same/similar problem) can you briefly explain why this worked? I don't entirely understand what the underlying problem was that we just solved.
Aug
31
comment MAMP runs agonizingly slow unless I'm authorized to use sudo
Here's what I got after $ ls -l /etc/hosts : -rw-r--r-- 1 root wheel 523 Aug 29 15:05 /etc/hosts Looks like it's already as it should be.
Aug
31
comment MAMP runs agonizingly slow unless I'm authorized to use sudo
That sounds interesting. Is that risky at all? I'm not great with the command line. Can you tell me the exact snippet?
Aug
29
awarded  Commentator
Aug
29
answered MAMP Vhosts Slow
Aug
29
revised MAMP runs agonizingly slow unless I'm authorized to use sudo
added 65 characters in body; edited title
Aug
29
comment MAMP runs agonizingly slow unless I'm authorized to use sudo
Correction! After further testing the actual syntax of the host files doesn't seem to matter. It's the fact that I have to login as an admin (sudo?) to make changes. For the next couple minutes my pages are super quick. Then I guess my sudo credentials expire and I go back to loading pages at a snails pace.
Aug
29
revised MAMP runs agonizingly slow unless I'm authorized to use sudo
added 314 characters in body
Aug
29
comment MAMP runs agonizingly slow unless I'm authorized to use sudo
I think I figured out why the problem keeps coming back. I think MAMP changes the etc/hosts file BACK to single lines (first code block above). Whenever I edit the file manually, I change to single line and it fixes the problem.
Aug
24
asked MAMP runs agonizingly slow unless I'm authorized to use sudo
May
29
awarded  Tumbleweed
Dec
12
revised PHP script needs permission to run a sudo command with shell_exec()
Added updated sudoers file
Dec
12
comment PHP script needs permission to run a sudo command with shell_exec()
I actually tried this, and for some reason it didn't work with the full path. I've got it working currently, but with this: Emerson ALL=(ALL) NOPASSWD: ALL I'm not happy about it because it seems too permissive to be safe. Am I wrong about that?
Dec
12
revised PHP script needs permission to run a sudo command with shell_exec()
Added new test resutls
Dec
12
comment PHP script needs permission to run a sudo command with shell_exec()
Update. It still didn't work. I still have to open/re-save etc/sudoer to keep my script working. It sounds like the requiretty flag should be off by default anyway.
Dec
12
comment PHP script needs permission to run a sudo command with shell_exec()
Update. It didn't work with username. I'm testing it as follows: Defaults:www-data !requiretty
Dec
12
comment PHP script needs permission to run a sudo command with shell_exec()
I don't have a /var/log/auth.log but I do have a /var/log/secure.log. I took a look at the entries from the past 36 hours. Nothing seems to be relevant, but I'm also not sure what I should be looking for? Would it be appropriate to add the contents to my post?