Novawin Posted June 17, 2007 Share Posted June 17, 2007 I just installed and configured PHP, mySQL and phpMyAdmin on my Windows Vista IIS7. PHP and mySQL are working well. For phpMyAdmin, everything was done until when I wanted to view the database, I got the error as below This error always is still there even I restarted my laptop several times. I went and checked C:\Windows\Temp but it seemed it does not exist on Windows Vista. And since I can't see C:\Windows\Temp, how to give the Write/Read permission for IUSR_Computername? Should I change the Temp directory path? Any solution? Thanks Link to comment Share on other sites More sharing options...
0 Lant Posted June 17, 2007 Share Posted June 17, 2007 (edited) Run these two commands if you havent icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant Users:(CI)(S,WD,AD,X) icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant "CREATOR OWNER":(OI)(CI)(IO)(F) From: http://blondr.blogspot.com/2006/11/set-up-...-and-php-5.html Link to comment Share on other sites More sharing options...
0 Novawin Posted June 17, 2007 Author Share Posted June 17, 2007 (edited) These two commands are for fixing PHP session permission on Vista only. I have used them to run earlier just before I installed and configured phpMyAdmin. I checked and found that TEMP reside on C:\Users\XXX\AppData\Local\Temp for Windows Vista while C:\Windows\Temp for Windows XP. C:\Windows\Temp seemed it does not exist on Windows Vista, is it? And I have no idea how to change TEMP path for phpMyAdmin. Anyone? Link to comment Share on other sites More sharing options...
0 Wilhelmus Posted June 17, 2007 Share Posted June 17, 2007 Add following to your PMA's config.inc.php: $cfg['TempDir'] = 'C:\path\to\temp'; Link to comment Share on other sites More sharing options...
0 Novawin Posted June 17, 2007 Author Share Posted June 17, 2007 Still can't work... It still displayed C:\Windows\TEMP... I have used mySQL Query Browser to view the database and it work but I find mySQL Query Browser too hassle and troublesome to use. Always prefer phpMyAdmin. I need to get rid of this stupid problem :pinch: So how? Link to comment Share on other sites More sharing options...
0 Wilhelmus Posted June 17, 2007 Share Posted June 17, 2007 What if you add/change following in the same config.inc.php file: $cfg['UploadDir'] = 'C:\path\to\temp'; $cfg['SaveDir'] = 'C:\path\to\temp'; Does it still display as c:\windows\temp? Link to comment Share on other sites More sharing options...
0 Kussie Posted June 17, 2007 Share Posted June 17, 2007 Why don't you just create the Temp folder? Link to comment Share on other sites More sharing options...
0 Novawin Posted June 18, 2007 Author Share Posted June 18, 2007 What if you add/change following in the same config.inc.php file: $cfg['UploadDir'] = 'C:\path\to\temp'; $cfg['SaveDir'] = 'C:\path\to\temp'; Does it still display as c:\windows\temp? Still can't work. It still display C:\Windows\Temp :pinch: Link to comment Share on other sites More sharing options...
0 Novawin Posted June 18, 2007 Author Share Posted June 18, 2007 Why don't you just create the Temp folder? Yeah, it work! Can view the database already. I am not sure why Temp on Windows Vista use C:\Users\XXX\AppData\Local\Temp, instead of C:\Windows\Temp. What's up with Windows Vista on non-existence of C:\Windows\Temp? I had to create this folder manually... :blink: Link to comment Share on other sites More sharing options...
Question
Novawin
I just installed and configured PHP, mySQL and phpMyAdmin on my Windows Vista IIS7.
PHP and mySQL are working well. For phpMyAdmin, everything was done until when I wanted to view the database, I got the error as below
This error always is still there even I restarted my laptop several times.
I went and checked C:\Windows\Temp but it seemed it does not exist on Windows Vista.
And since I can't see C:\Windows\Temp, how to give the Write/Read permission for IUSR_Computername?
Should I change the Temp directory path?
Any solution?
Thanks
Link to comment
Share on other sites
8 answers to this question
Recommended Posts