同理 apt-get install -y libzip-dev
完後可以安装zip...
apt-get install libcurl4-openssl-dev
完後可以安装 docker-php-ext-install curl
然後还需要 apt-get install unzip
把原本的cake资料夹删掉再试一次composer,就可以成功安装cake了
再接着设定URL Rewriting的部分
<Directory />
Options FollowSymLinks
AllowOverride All
# Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Allow from all
</Directory>
接着再输入
a2enmod rewrite
service apache2 restart
可喜可贺~~~
不过database显示unable to connect
先进到 myc/config/app_local.php
改成以下这样试试
'Datasources' => [
'default' => [
'host' => 'mysql',
/*
* CakePHP will use the default DB port based on the driver selected
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment
* the following line and set the port accordingly
*/
//'port' => 'non_standard_port_number',
'username' => 'root',
'password' => 'secret',
'database' => 'cake',
'encoding' => 'utf8mb4',
'timezone' => 'UTC',
/*
* If not using the default 'public' schema with the PostgreSQL driver
* set it here.
*/
//'schema' => 'myapp',
/*
* You can use a DSN string to set the entire configuration
*/
'url' => env('DATABASE_URL', null),
],
太棒惹~
接下来的问题是这个container该如何可以被ssh从外部code连接到呢?
<<: [Day12] Key Sequence Detection (KONAMI CODE)
「今天是几月几号啊?」 今天是 ... 等等! 不准看电脑上的! 你先等我造出一个,我们要看日期 ...
Model之间的关联,主要分为三个 一对一:每位使用者(User)可以开一家店(Store) 一对多...
**1.安装Visual Studio code ** 有安装的可跳过这一步 官网连结: http:...
半夜12点都还开着的邪恶消夜~ 台中市南区的忠孝夜市,邻近中兴大学,是许多兴大人共同的回忆,可以在这...
昨天简单介绍过 Prometheus 了,那麽今天我们就自己架一个来玩看看吧。尝试任何一个新工具的第...