Ubuntu 16でphp5.6/7.0/7.4に切り替える。
ubuntu 16.04 で複数のバージョンの PHP を使う、切り替える - Enjoi Blog
これで切り替えが出来た。
php5.3はinstall出来なかった。
php7.4へも切り替えできた。めちゃくちゃ簡単...。
これは凄い。
# list up PHP versions update-alternatives --list php # disable & enable php on Apache & restart apache sudo a2dismod php5.6 && sudo a2enmod php7.1 && sudo service apache2 restart
シンボリックリンクを貼る方法
coreserverにSSHログインした時にHost key verification failed.になりログインできない。
https://www.coreserver.jp/
↑これすね。
ssh {user name}@{host} @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is SHA256:blahblahblah. Please contact your system administrator. Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message. Offending RSA key in /Users/xxx/.ssh/known_hosts:3 RSA host key for {host} has changed and you have requested strict checking. Host key verification failed.
こんなエラーが出る。私SSHの専門家では無いので意味分かんないすね。。
↓ぐぐってもよくわからなかったので、試しにこのファイルを確認するとかな〜り昔にcoreserverにアクセスしたログが...。その行を削除したらログイン出来ました。
~/.ssh/known_hosts
ローカル端末側の設定でアクセス出来ないってどういうメリットがあるのかなとか素人なりに思いました。
- 作者:Daniel J. Barrett,Richard E. Silverman,Robert G. Byrnes
- 発売日: 2006/11/22
- メディア: 大型本
Laravel 7.11.0 で カラム名を変更する方法
ターミナルにて。
$ php artisan migrate Migrating: 2020_05_16_165342_rename_author_id_to_user_id_on_posts_table Error Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found at vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:64 60| * @return \Doctrine\DBAL\Driver\PDOMySql\Driver 61| */ 62| protected function getDoctrineDriver() 63| { > 64| return new DoctrineDriver; 65| } 66| } 67| +8 vendor frames 9 database/migrations/2020_05_16_165342_rename_author_id_to_user_id_on_posts_table.php:18 Illuminate\Support\Facades\Facade::__callStatic("table") +22 vendor frames 32 artisan:37 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
解決方法
$ composer require doctrine/dbal
- 作者:津耶乃, 掌田
- 発売日: 2019/12/27
- メディア: 単行本
- 作者:津耶乃, 掌田
- 発売日: 2019/07/26
- メディア: 単行本
LaravelとNuxtではじめるSNSシェアアプリ開発 (技術の泉シリーズ(NextPublishing))
- 作者:峯岸 海
- 発売日: 2020/05/01
- メディア: オンデマンド (ペーパーバック)
Laravel 7.11.0 で smtp gmail の設定
php artisan --version Laravel Framework 7.11.0
MAIL_DRIVER=smtp MAIL_HOST=smtp.googlemail.com MAIL_PORT=465 MAIL_ENCRYPTION=ssl MAIL_FROM_ADDRESS=xxx@gmail.com MAIL_FROM_NAME="${APP_NAME}" MAIL_USERNAME=xxx@gmail.com MAIL_PASSWORD=xxxxxxxxx MAIL_PRETEND=false
gmail側の設定は、
2 step verifycation ON
app password を発行して使用。
これでローカルからも送信できました。
便利な世の中です。
- 作者:津耶乃, 掌田
- 発売日: 2019/12/27
- メディア: 単行本
- 作者:津耶乃, 掌田
- 発売日: 2019/07/26
- メディア: 単行本
LaravelとNuxtではじめるSNSシェアアプリ開発 (技術の泉シリーズ(NextPublishing))
- 作者:峯岸 海
- 発売日: 2020/05/01
- メディア: オンデマンド (ペーパーバック)
phpstormでejsのインデントが変わらない時の対処法。
- Mac HighSierra
- editorconfigも効かない。