Page 1 of 1

Can't unset ReadOnly on php directory [RESOLVED]

Posted: Sat Mar 10, 2007 6:48 pm
by califdon
I've been successfully using PHP5 on Windows XP for over a year. When I recently installed shareware called MyDB Dump (I think this is when this happened), suddenly I couldn't start up PHP when I boot Windows XP. I got the dreaded "unable to load php_mysql.dll" error. But the file was where it was supposed to be, and php.ini was correct, and I even reloaded the dll to make sure it wasn't corrupted. Then I noticed that the directory it was in, C:\php\ext\ was ReadOnly! Then I noticed that practically my whole hard disk indicates that the directories are ReadOnly!! When I reset them, it appears to "take", but when I look at the Properties, they are ReadOnly again!

I suspect it's a registry issue. Anyone know what's happening and how to correct it?

TIA

Posted: Sat Mar 10, 2007 6:51 pm
by feyd
Sounds like an ownership issue.

Posted: Sat Mar 10, 2007 7:01 pm
by califdon
feyd wrote:Sounds like an ownership issue.
Thanks for the lightning quick response, feyd. That makes sense, but I don't use any login accounts on my WinXP system, so as far as I know, there aren't any admin accounts, and it's the same OS I've been running with for two years without ever running into this problem, during which time I've installed numerous systems, including Apache, MySQL, PHP and others. Grrrr!

Posted: Sat Mar 10, 2007 7:09 pm
by feyd
Despite not seeing the users, they do exist. Are you running XP Pro?

In other thoughts, have you talked to the makers of this "MyDB Dump"?

Posted: Sat Mar 10, 2007 7:23 pm
by califdon
feyd wrote:Despite not seeing the users, they do exist. Are you running XP Pro?
No, it's just XP Home. I have never needed any kind of permissions on this machine, despite lots of installing, etc., and my understanding was that if you don't create users, effectively your automatic login is an admin account.
feyd wrote:In other thoughts, have you talked to the makers of this "MyDB Dump"?
I've been procrastinating on that, thinking that it's fairly old software and I haven't paid them anything, and I suspect, but don't know for sure that installing it caused the problem. But I think you're right, I should do that. And I will. Thanks.

Posted: Sun Mar 11, 2007 3:59 am
by volka
What does

Code: Select all

cacls C:\php\ext\php_mysql.dll
in a command line window print?

see also: http://www.google.de/search?q=site:micr ... art=0&sa=N

Posted: Mon Mar 12, 2007 5:17 pm
by califdon
volka wrote:What does

Code: Select all

cacls C:\php\ext\php_mysql.dll
in a command line window print?

see also: http://www.google.de/search?q=site:micr ... art=0&sa=N

Code: Select all

BUILTIN\Administrators:F
NT AUTHORITY\System:F
SLICK\Donald:F
BUILTIN\Users:R
That's a new command for me, I'll have to learn how to use it. Thanks.

Posted: Tue Mar 13, 2007 5:11 pm
by califdon
My problem has been resolved by reinstalling PHP. I still don't understand what was going on with its inability to load the dll, but installing a later version of PHP resolved it. Thanks all for the comments.