Category: Network & Server (網絡及服務器)

Simple VPN Upgrade to L2TP IPSec

By admin, May 28, 2019 11:42

It turns out my new iPad removed PPTP since iOS10 due to outdated and unsecured protocol of PPTP, and there is no 3rd party app for PPTP VPN clients for iOS12.

So the only solution without jailbreak is to upgrading my old VPN gateway (running on Windows Server 2003) from PPTP to L2TP IPSec.

Simply select “Allow custom IPSec policy for L2TP connection” and type in a Pre-shared Key in the RRAS property.

On the VPN client side, all you need to do is to select L2TP and type in the Pre-shared Key under Security tab.

Simple as that!

l2tp

Play MKV, MP4, FLAC, APE on IPad/iPhone

By admin, April 10, 2019 11:43

VLC Media Player App is so good!

Simply use iTune’s File Sharing and drag your media to VLC.

All your MKV, MP4, FLAC, APE, MP3…can be played on iPad/iPhone now and no more conversion required, nice and easy!

Btw, Apple support really SUCKS! It’s just completely waste of my time. Google is your best friend as always

用咗13年嘅Dell Notebook終於可以退役

By admin, April 3, 2019 13:44

IMG_6358

Reset CentOS 7 root Password

By admin, April 30, 2018 13:14

1. Menu press “e”
2. Find the line “linux16 vmlinuz…: at the end add “init=/bin/sh”, then Ctrl + x
3. mount -o remount,rw /
4. passwd root
5. touch /.autorelabel
6. exec /sbin/init (You will need to WAIT for a few minutes)

曾經是最強主機板,現在變成了古董收藏

By admin, December 3, 2017 10:17

Tyan S2688 E-ATX, PIII-S 1.4Ghz, 3GB ECC+REG RAM, PIC-X, LSI MEGARAID 320-2 SCSI

IMG_7974

No GUI and SSH login on console, only [sda] Assuming drive cache: write through

By admin, October 11, 2017 13:05

Today I found out one of the CentOS 7-1611 VMs has no GUI available and also there is no SSH login at the console.

Worst the screen indicates “[sda] Assuming drive cache: write through”, seems it’s hang at startup.

In fact it’s working fine, then I SSH into the server remotely, and issue “systemctl set-default multi-user.target” which set the default login interface to be text based SSH login, the SSH login screen appears after the reboot.

systemctl isolate multi-user.target to return to command mode
systemctl isolate graphical.target  to return to graphical mode

Somehow, systemctl isolate graphical.target turns the screen into blank, still have no idea what’s causing this, nor startx works.

Finally, the vCenter VM Guest OS status changed from CentOS 4/5 64 bits to Other (32-bit) automatically everything after reboot, anyone knows why? Pls drop me a line, thx.

IIS6對中文路徑或文件名支持問題解決

By admin, October 10, 2017 14:24

默認情況下,無論是IIS6對中文路徑或文件名支持的不是很好,主要表現為:圖片中含有中文路徑顯示無法找到网頁;含有中文的文件直接使用IE下載的時候出現無法找到的錯誤等等。

解決方法:

打開注冊表中的HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters\,
新增的FavorDBCS設置為0,然后重啟IIS。

WannaCry Hot Fix for Windows XP!

By admin, June 7, 2017 16:17

Definitely a big surprise from M$ to release a hotfix for WannaCry for all their EOL products!

wc

When Dell Runs Out of Stock

By admin, June 1, 2017 19:10

This is what my friends showed to me recently.

When Dell ran out of Equallogic disks (15K RPM, 600GB 3.5″ SAS), they supplied him with this alternative solution.

A 2.5″ 15K RPM, 600GB SAS!

IMG-20170602-WA0005

IMG-20170528-WA0003

This is how it fits into the original 3.5″ tray, seems the tray is a revised version with 4 new holes on the back in order to fit that 2.5″ SAS disk.

IMG-20170528-WA0004

IMG-20170602-WA0002

Running Multiple PHP Versions on Windows Server

By admin, May 25, 2017 00:33

The trick is to create an extra environment variable PHPRC and point to the specific PHP version directory that contains php.ini.

* DO NOT put an extra \ at the end, ie, C:\Program Files (x86)\PHP 7.1.5 is the correct form without the ending \.

* Make sure you downloaded the Non-Thread Safe x86 version for PHP release

php

Extra Note:

For FastCGI on Windows Server 2003, the last supported binary Non-Thread Safe x86 version of PHP is 5.4.9. (ie, php-5.4.9-nts-Win32-VC9-x86.zip)

Enable the User-Defined INI files

If you want to allow Web application owners to control PHP settings themselves, you can enable a user-defined PHP configuration.

  1. Add the following setting, which specifies the name to be used for user-specific INI files, to the main php.ini file. Setting this to an empty value disables the user-defined PHP configuration.

    console
    user_ini.filename = .user.ini
    
  2. Create a file called .user.ini in C:\inetpub\website1.com\ folder, and add the following:

    console
    max_execution_time = 300
    
  3. Add the following to the file .user.ini in C:\inetpub\website2.com\ folder:

    console
    upload_max_filesize = 12M
    

    Note that if your main php.ini file has [PATH] sections that point to the root folders of these sites, then you need to remove those sections; if you do not remove those sections, the user-defined settings will not take effect.

  4. Use phpinfo() or ini_get(”max_execution_time”) to check that the new settings have overwritten the default settings. Create a PHP file with the following text and save it in the Web root folder:

    XML
    <?php phpinfo(); ?>
    
  5. Open the PHP script on the Web site http://localhost/phpinfo.php.

  6. Note also that when you enable the user-defined INI files, the settings in those files are cached by the PHP engine to avoid re-reading those files for every request. This means that if the user makes a change to .user.ini file, then that change may not take effect right away. Instead it may take effect after the cache time to live (TTL) has expired. The cache TTL value is controlled by the php.ini setting user_ini.cache_ttl, which is set to 300 seconds (5 minutes) by default.

Fore detail, please refer to Enable Per-Site PHP Configuration on IIS 7.

Pages: 1 2 3 4 5 6 7 8 9 10 ...25 26 27 Next