Manual WAMP stack

For future reference…

Apache

  1. Download Apache from Apache Lounge.
  2. Unpack and adjust httpd.conf as necessary (e.g. paths).
  3. Install as service.
    httpd.exe -k install
  4. Start the service.
  5. Verify that it works.

PHP

  1. Download Thread-Safe PHP from PHP.net.
  2. Unpack and add to path.
  3. Pick a php.ini and edit as necessary.
  4. In particular, uncomment the following:
    extension_dir = "ext"
  5. Add following to httpd.conf, and also adjust the DocumentRoot.
    LoadModule php7_module C:/php/php7apache2_4.dll
    <IfModule php7_module>
        DirectoryIndex index.html index.php
        AddHandler application/x-httpd-php .php
        PHPIniDir "C:/php"
    </IfModule>
  6. Add an index.php in your DocumentRoot.
    <?php phpinfo();
  7. Restart Apache, and verify that it works.

MariaDB

  1. Download from mariadb.org and install.
  2. Optionally add following to my.ini under mysqld section:
    bind-address=127.0.0.1

    general-log=1
    general-log-file=queries.log
    log-output=file

Composer

  1. Download Windows installer from getcomposer.org and install.

How to repair broken user folders in Windows

Tried moving my Documents/Desktop/Music/etc folders to a Google Drive mounted via Drive File Stream. Seemed to work well at first, but after the first reboot Windows clearly wasn’t happy and kept complaining about not finding the Desktop or the Documents…

Possibly because that drive seems to be mounted a bit too slowly (i.e. happens a bit after one has logged in)? And/or because it’s just mounted in a way Windows doesn’t like?

Either way, here’s how to…

Fix

  1. Open up regedit.
  2. Go to:
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
  3. Update all incorrect values.
  4. Reboot.

That seems to have fixed it for me anyways…

Source: scottiestech.info

Windows 10 Default app removal

Just a note to self…

Remove

Get-AppxPackage *xbox* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *people* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *zune* | Remove-AppxPackage
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
Get-AppxPackage *bing* | Remove-AppxPackage
Get-AppxPackage *onenote* | Remove-AppxPackage
Get-AppxPackage *sway* | Remove-AppxPackage
Get-AppxPackage *messaging* | Remove-AppxPackage
Get-AppxPackage *phone* | Remove-AppxPackage

Get-AppxPackage drawboardpdf | Remove-AppxPackage
Get-AppxPackage freshpaint | Remove-AppxPackage
Get-AppxPackage SurfaceHub | Remove-AppxPackage
Get-AppxPackage flipboard | Remove-AppxPackage

List

Get-AppxPackage | Select-Object -expandproperty name

Reinstall

Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

Source: www.howtogeek.com

How to lower USB headphone audio levels on Windows

When connecting my headphones via a simple USB-plug, the audio levels are often way, way, too loud. Today I had to turn the Windows audio level all the way down to 2% for the audio just to be OK’ish. That’s not very usable, and also kind of scary…

Finally I found something to fix it!

  1. Install Equalizer APO
  2. Open up “C:\Program Files\EqualizerAPO\config\config.txt”
  3. Replace its contents with:
    Preamp: -30 dB
  4. And adjust that level as necessary…

Finally I can use the Windows audio levels, and also not be afraid of suddenly having my ears destroyed if the audio were to move up a percentage or two…

With a hint of Social Ineptitude