cloud9

AWS Cloud9 で private subnet を追加して private subnet 内に立てた instance に SSH 接続する 力技

背景: cloud9 で mongodb を利用するとき app server と同一の EC2 インスタンスにmongoDB をインストールして使用したが、より本番環境に近い private subnet 内に EC2 インスタンスを立て、そこに mongodb server を作ることを試みた。 流れ: cloud9 と同…

AWS Cloud9 using Laravel initial settings

updated: 2019/7/12 Environmentの設定 sudo apt update // packageのアップデート sudo apt install -y php php-xml curl -sS https://getcomposer.org/installer | php // composer のインストール suod mv composer.phar /usr/local/bin/composer // term…

Migration from old cloud9 to AWS cloud9

2019/7/1 以降Old Cloud9上でWorkspacesにアクセス不可になったので 自分のダッシュボードにアクセス https://c9.io/YOUR_OLD_CLOUD9_ACCAOUNT_NAME AWSアカウントの作成 AWS Cloud9 https://ap-northeast-1.console.aws.amazon.com/cloud9/home/product# EC…

jenssegers/laravel-mongodb Installation on php7.2 cloud9

Updated: 2018/9/27 php7.2 を cloud9 にインストール monteecristoo.hatenablog.com MongoDB のインストール monteecristoo.hatenablog.com PHP 用の MongoDB ドライバーをインストール PHP: Installing the MongoDB PHP Driver with PECL - Manual sudo pe…

php の mongodb ドライバーをインストールしようとしたらエラーが発生した cloud9

環境: php7.2 cloud9(ubuntu14.0.4) cloud9 で php5 から php7 にアップデート済み MongoDB ver 4.0.2 sudo pecl mongodb => Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/php/PEAR/Frontend.php on line 91 solution: sudo apt-g…

cloud9 で Nginx を使う

updated: 2018/8/4 cloud9 では初めから Nginx がインストールされている。 初期設定ではポートが 80 になっている。cloud9 で使用できるポートは 8080, 8081, 8082 なので 設定を変える。 docs.c9.io @/etc/nginx/sites-available sudo nano default >>> se…

github と cloud9 の連携 fork 編

まず github 上で fork したいレポジトリを fork 次に cloud9 で新規ワークスペースを作成。この時 git clone の clone 元はオリジナルではなく fork した自分のレポジトリにする。(そうしないと cloud9 から push 出来ない。) github 上で fork し、git clo…

error: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = c9 and table_name = migrations)

// cloud9 上で php artisan migrate:reset 時に下記のエラー SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = c9 and table_name = migrations) composer dump-autoload してもダメな時 な…

mozjpeg コンパイリングエラー cloud9

// cloud9 で Laravel mix 使用時、下記のエラーが発生 cjpeg: error while loading shared libraries: libpng16.so.16 error write epipe エラーがどのタイミングで発生したか把握していない ubuntu 特有のエラーかも 環境: Ubuntu 14.04.5 LTS (cloud9) la…

jenssegers/laravel-mongodb Basic Usage on cloud9 with php7 ①

// updated 2018/1/5 Installation monteecristoo.hatenablog.com monteecristoo.hatenablog.com Laravel Configuration @config\app.php add the service provider Jenssegers\Mongodb\MongodbServiceProvider::class, @config/database.php 'mongodb' => […

PHP のシステムファイルが破損した場合 Unable to load dynamic library

composer update or composer require xxx phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. → sudo apt-get install php7.1-xml composer update or composer require xxx → error- Unable to l…

jenssegers/laravel-mongodb installation PHP7.1 on cloud9

updated: 2018/9/25 jenssegers/laravel-mongodb installation PHP7.1 on cloud9 updated: 2017/12/14 下記に従ってmongoDBをインストール。 monteecristoo.hatenablog.com composer require jenssegers/mongodb → error: Problem 1 - jenssegers/mongodb v3…

mongoDB installation on a cloud9 workspace

// updated: 2020/1/24 環境:PHP7 Laravel5.4 mongoDB 公式Doc の Install MongoDB Community Edition on Ubuntu に従う。 1 Import the public key used by the package management system. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 -…

mongoDB uninstall

// mongoDB unistall To completely remove MongoDB from a system, you must remove the MongoDB applications themselves, the configuration files, and any directories containing data and logs. The following section guides you through the necess…

AWS cloud9 でディスク容量がいっぱいになったとき

// updated: 2020/6/3 #1 インスタンスから不要なファイルを削除する 残存容量の確認 $ df /boot 定期的に不要なファイルを削除するコマンド sudo apt-get autoremove を実行 以下のコマンドで比較的使用量の大きいディレクトリを確認できる du -h -t 50M 参…

Setting Up MongoDB on cloud9 Laravel project

// community.c9.io www.compose.com https://teratail.com/questions/41471

cloud9にphp7とLaravel5.xをインストール

// updated: 2021/5/15 sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install libapache2-mod-php7.2 sudo a2dismod php5 sudo a2enmod php7.2 sudo apt-get install php7.2-dom php7.2-mbstring php7.2-zip php7.2-mysql php7…

git + cloud9 備忘

cloud9のコードをgithubで管理 githubでリポジトリ作成 cloud9でリポジトリを使ってプロジェクトを作成 cloud9でコード編集 cloud9ターミナル上でgit commit -a git push -u origin master