grzech.webio.pl


.. kolejny blog w sieci (głównie na własne potrzeby)


  1. Tworzenie i odtwarzanie backupu dla bazy MySQL

    Tworzenie: mysqldump -u root -p Tutorials > tut_backup.sql Odtwarzanie: mysql -u [uname] -p[pass] [db_to_restore] < [backupfile.sql] Zrodlo: http://www.webcheatsheet.com/SQL/mysql_backup_restore.php

  2. Pokazywanie ukrytych/nieistniejących urządzen w Device manager

    Z linii poleceń uruchomić: SET DEVMGR_SHOW_NONPRESENT_DEVICES=1 START DEVMGMT.MSC

  3. Nadanie uprawnien Read Permissions dla lokalnych uzytkownikow

    icacls X:\KATALOG /grant BUILTIN\Users:(OI)(CI)(Rc,S)

  4. Resetowanie indeksu wyszukiwania

    Odpalić konsole powershell Exchange 2010 Przejść do katalogu %PROGRAMFILES%\Microsoft\Exchange Server\V14\Scripts Uruchomić .\ResetSearchIndex.ps1 -force -all Źródło: http://www.sheenaustin.com/2010/11/11/exchange-2010-search-reset-search-index/

  5. Pokazywanie błędów pod IIS7 dla ASP Classic

    %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true Ewentualnie dodatkowo: %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpErrors -errorMode:Detailed lub w pliku web.config w gałęzi system.webServer dodać: <httpErrors existingResponse="PassThrough" />

  6. Szyfrowanie sekcji connectionStrings w pliku web.config

    C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -pe "connectionStrings" -site IDSTRONY -app "/"

  7. ASP.NET state service - The system cannot find the file specified.

    Rozwiazanie: Go to command prompt and type regedit When regedit opens, locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state ImagePath Data was %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe so altered to %SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_state.exe Go to Services and start ASP.NET State Service Źródło: http://thelittlewolfsadventuresindotnet.blogspot.com/2010/03/aspnet-state-service-system-cannot-find.html...

  8. Generowanie pliku certyfikatu PFX z certyfikatu domeny, certyfikatu posredniego oraz klucza prywatnego

    Trzeba sciagnac OpenSSL: http://www.openssl.org/related/binaries.html openssl pkcs12 -export -out certificate.pfx -inkey privatekey.txt -in certificate.txt -certfile intermediate.txt Źródło: http://nickstips.wordpress.com/2010/09/08/sql-ssl-and-sql-server-2008-creating-the-certificate/

  9. Czyszczenie dziennika zmian w plikach

    Fsutil usn deletejournal /D c:

  10. Włączenie pokazywania błędów PHP (FastCGI) w IIS7

    c:\windows\system32\inetsrv\appcmd.exe set config "{sitename}" -section:system.webServer/httpErrors /existingResponse:"PassThrough" /commit:apphost Źródło: http://serverfault.com/questions/69839/show-php-error-message-on-iis-7 Można też dodać w galęzi system.webServer w pliku web.config wpis: <httpErrors existingResponse="PassThrough" />