Can't unset ReadOnly on php directory [RESOLVED]

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Can't unset ReadOnly on php directory [RESOLVED]

Post 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
Last edited by califdon on Tue Mar 13, 2007 5:12 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Sounds like an ownership issue.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post 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!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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"?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post 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.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post 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.
Post Reply