本來已有倦意,但忽然有心機整理網站,於是將WhatsApp 內的記事擺上網。本來只是打算修飾一下About me 的網頁,將Sway 內應該有用的資料放進去,但想不到卻因此著了癮,狠下心將近百段有多的精句(Quote)放上網,這些是我從有感開始記下的精句,次序是重要的,越早的精句放得越上,理論上是我的回憶,是我每個階段的心路歷程,是我走過的路,讀過的書,遇過的人所留下的句子,有部份是心靈雞湯,有部份是警世名言,亦有部份是黑色幽默,但這是一個契機展示出我以前,甚或現在覺得重要的語句。老實說我並不經常翻看這些句子的,畢竟我對心靈雞湯免疫的。
甫醒來,已是十一點,經過星期六日由上水去維園的遊車河,車子已經無油。疏洗完出門,要去入油,然後去上環,繼續揼code,今天終於整到heatmap 了,但仍然有很多未做。由於約了Mani 去D2 年宵,所以我六半離開,行西隧七點到D2ONE,很多人,由天台逛到樓下,買了一把落雨會變色的遮,台灣製造。逛完D2 ONE,去逛D2 TWO,仍然很多人。Even Martin 都說很多人。無錯,我倆排隊排了很耐去和廚師YouTuber Martin 合照,看到他正為,買了一本他出的書,還有他的「馬田」簽名。
回到家,前日醫生所送的水仙已開花,是小確幸呀!
跋:
長知識,我在word press set 了domain Name, 很開心解決了domain 的問題,怎料完全不能save 任何wordpress 的設定,我已經將我寫了的Post的文字預先 Copy 了,怎料仍是老貓燒鬚,我在設定domain name 時copy 了網址,變成了我本身copy 的Post content 消失晒!!!下次應該預先paste 在某空間才對,但與此同時,我search 了究竟copy and paste 本身有無back up ,原來真的有history 的!當我滿懷希望和自地按了windows + V,打開了剪貼薄,以為可以拎返消失了的Post Content,但原來這是新電腦,剛剛開了這功能,看著剪貼薄內的第一筆record 就是設定domain name 時copy 的網址,只有在心裡默默地說了個「頂」字。
六點十一到兆基上堂,趁仲有時間係兆基大堂快食壽司,我忽然想起,我好耐之前來過這裡睇戲,係一套傘後紀錄片,名叫《分域大道》(Last Exit to Kai Tak),大致講黃之鋒、林淳軒、劉偉德、黃洋達及何韻詩的故事(Everyone love stories, right?) ,印象中最記得林淳軒整本土啤酒、劉偉德叫大舊,唔玩政治改從商儲彈藥、黃洋達挑機大波MAN,反而黃之鋒同何韻詩無咩印象(可能新聞聽得太多)。最深刻係導演和其拍檔當晚有黎謝票,仲有Q&A環節。記得有很多高質問題,當時記住了,但今日未搵到,下次吧。我到E一刻仲記得當時我有問題想問導演,但不敢問(人多時我就不敢問問題的,希望改到)。
I have recently purchased a Synology DS718+ and found out that amongst the many great things we can do with it, one is installing a WordPress site using the Web Station package. But it only lets us install one instance of WordPress. It is possible to manually install and run multiple WordPress sites on Synology NAS. But first of all, you have to read my introduction article “How to speed up WordPress on Synology NAS“.
If you use multiple computers in your house running any OS (Windows 10, Mac or Linux Ubuntu) and would like to pick up WordPress development on your localhost that you have left off on another computer in your home network without dealing with Dropbox, Onedrive, sync for files and a plugin like WP Migrate DB Pro for the database, read on.
After following these steps you should be able to create multiple websites on your localhost like this: local.dev, showcase-pro.dev which are accessible from any device on your network (that you can add a hosts entry in).
In this article I am not going to cover what’s required to make these sites accessible from outside your local WiFi/home network. You can find this information on host from home article. So, let’s start:
Log into your NAS LAN. In my case, it is at http://10.0.0.60:5000/.
Go to Package Center, search for Web Station and install it. This will create a “web” folder in your NAS’s root.
Also, install WordPress package and set it up. While we are not going to use the website created by this package (you may, if you wish), we take this step so that the needed dependencies like PHP, MariaDB 10 can get installed.
Install the latest phpMyAdmin and Apache HTTP Server 2.4 packages. These are the relevant packages that I have running: Apache HTTP Server 2.2, Apache HTTP Server 2.4, MariaDB 10, PHP 5.6, PHP 7.0, PHP 7.2 phpMyAdmin, Web Station and WordPress. Some of these may not be needed. You might want to experiment with them.
From the Main Menu, launch File Station. Navigate to web folder and create a folder for your site, say, “wordpress-latest”. Go inside the folder. Download WordPress on your computer, extract the zip, drag all the content and drop inside “wordpress-latest”. Alternatively, if you have Download Station package installed you can simply enter https://wordpress.org/latest.zip for the URL and have the file downloaded to “wordpress-latest”, then extract using the option from context menu.
Create a folder for your website. Ex. showcase-pro.
Copy all the content from “wordpress-latest” into the site’s folder.
Right click on the folder and click Properties. Go to Permissions tab. Create a new permission for “http” user granting all Write permissions.
Log into your phpMyAdmin (at http://10.0.0.60/phpMyAdmin/ for me) using “root” as the username (password is blank/empty) or use the one you have set up when you installed MariaDB10. After logging in, change the password if you wish. Create a new database for your site. Ex.: showcasepro. During my experiments, the database connection wasn’t working because the database name had a hyphen in it, so I had to change the database name from “showcase-pro” to “showcasepro”.
In Windows Explorer/Finder, navigate to your Synology’s network drive and then into your website’s folder.
Rename wp-config-sample.php to wp-config.php and edit it. Set your database name, enter root as username and your password.
STEP 2
Above
/* That's all, stop editing! Happy blogging. */
paste
define('FS_METHOD', 'direct');
If you are using MariaDB 10, edit wp-config.php parameter for hostname as follows:
/** MySQL hostname */ define(‘DB_HOST’, ‘localhost:/run/mysqld/mysqld10.sock’);
Set new unique keys and salts generated at https://api.wordpress.org/secret-key/1.1/salt/define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here'); define('LOGGED_IN_KEY', 'put your unique phrase here'); define('NONCE_KEY', 'put your unique phrase here'); define('AUTH_SALT', 'put your unique phrase here'); define('SECURE_AUTH_SALT', 'put your unique phrase here'); define('LOGGED_IN_SALT', 'put your unique phrase here'); define('NONCE_SALT', 'put your unique phrase here'); Save and close the file.
1. Launch Web Station. General Settings: Set HTTP back-end server to Apache HTTP Server 2.4 and PHP to 7.2.
2. PHP Settings: Set PHP version to 7.2. Leave PHP Cache enabled. Select these extensions: curl, exif, ftp, gd, gettext, iconv, mcrypt, mysqli, openssl, posix, soap, sockets, xmlrpc, zip. Press Apply.
3. Virtual Host: Click Create, enter “showcase-pro.dev” for the Hostname, browse your site’s folder for Document root, select Apache HTTP Server 2.4 and PHP 7.2. Press OK.
4. In your hosts file enter 10.0.0.60 showcase-pro.dev Do this for every computer from which you’d like to work on your local site.
5. Visit http://showcase-pro.dev in your browser and complete the WordPress installation.
6. Log into your WordPress site’s admin, go to Settings > Permalinks and press Save to generate the .htaccess or otherwise pretty permalinks will not work.
That’s it. Now you should be able to administer and access your newly created local WordPress site on any computer in your LAN network.
Note: If you have a https problems when accessing your .dev website try to change or reinstall using .local domain instead of .dev domain
This post was updated on Monday / October 5th, 2020 at 7:09 AM