1211 月 2021 by Bryce No Comments GCE 主機利用Docker快速架設ftp主機 docker 目的:在GCE的VM中(Linux - Ubuntu 18.04)利用Docker架設ftp主機。 目前有一台剛裝好Ubuntu 18.04的VM,首先需要先執行建立Docker 更新ubuntu主機 [crayon-628c3cf322d4306917283... Read More
029 月 2021 by Bryce No Comments Dockerfile 調整php的最大執行時間 max_execution_time docker 近期作了一個案子是需要透過Dockerfile建一個image環境,並安裝php等套件;其中一個因為需要長時間等待curl的回應,執行時間會超過上限。 為了配合GCP的Cloud Run在一開始就設定好環境,所以要把php的最大執行時間寫入Dockerfile... Read More
048 月 2021 by Bryce No Comments Google API 使用PHP取得Bigquery的數字型態 Cloud, GOOGLE 當使用API:google-cloud-php-bigquery來取回Bigquery時,會碰到一種型態(type)是NUMERIC,如下schema 而取得的中一個欄位資料是含小數點 而用api取回的資料會有提示他是一個「Google\Cloud\BigQu... Read More
026 月 2020 by Bryce No Comments 讓Laravel識別Proxy Pass Reverse取得正確的URL Laravel 這陣子執行一個專案,其中VM使用Docker並架設多個Container,外層VM本體使用Apache(80 Port)並使用VirtualHost的技術,然後對針每個Container的連線Port作Proxy Pass。 (閱讀全文...) Read More
171 月 2020 by Bryce 2 Comments GCP 架設VM中的samba server防火牆 Server, vps GCP上可以透過Compute Engine建立VM執行個體,但因為安全考量會預設不開啟任何Port,因此如果需要安裝samba server這類的東西,除了VM上本身安裝好外也需要另開啟PORT。 (閱讀全文...) Read More
0511 月 2019 by Bryce No Comments [PHP] Google Automl Tables API 取得dataset GOOGLE, PHP 最近gooogle api在取得response時,都會回傳一大包object,有時連手冊都沒有寫怎麼接這個object。 (閱讀全文...) Read More
253 月 2019 by Bryce No Comments Ubuntu 16.04 + php 7.3 修正 /libraries/plugin_interface.lib.php#532 PHP 今天在phpmyadmin上發生一件事,是匯入檔案時一直發生提醒 Warning in ./libraries/plugin_interface.lib.php#532 count(): Parameter must be an array or an obj... Read More
063 月 2019 by Bryce No Comments Ubuntu 18.04 重設 MySQL 5.7 的ROOT密碼 MySQL 在Ubuntu 18.04上安裝MySQL時,有設好了root的密碼;但在安裝phpmyadmin時,設定root密碼的地方明明就跳過沒輸入,可是後台登入時卻不能root使用。 (閱讀全文...) Read More
174 月 2018 by Bryce No Comments Laravel 網址無法正常顯示 Laravel 在ubuntu 16.04 建置好一個laravel專案,除了首頁可正常運作外,其他皆失效? (閱讀全文...) Read More
093 月 2018 by Bryce No Comments Ubuntu 16.04 LTS 搭建Apache, MariaDB PHP7 (LAMP)、phpMyAdmin vps Ubuntu 16.04 LTS Xenial Xerus官方自帶PHP7,所以我們就不需要再藉助第三方PPA來安裝PHP7了。這篇介紹Ubuntu 16.04 LTS如何安裝Apache, MariaDB和PHP7及phpMyAdmin。 (閱讀全文...) Read More