phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
#php.ini加
extension =mongodb.so
php composer.phar require jenssegers/mongodb
提示错误,php扩展mbstring错误,用phpize编译安装mbstring
Your requirements could not be resolved to an installable set of packages.
Problem 1
- danielstjules/stringy 1.10.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- danielstjules/stringy 1.10.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- danielstjules/stringy 1.10.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- Installation request for danielstjules/stringy == 1.10.0.0 -> satisfiable by danielstjules/stringy[1.10.0].
Installation failed, reverting ./composer.json to its original content.
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
php artisan key:generate
[Dotenv\Exception\InvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.
.env文件中文或者空格必须加引号
OpenSSL extension is required
打开php.ini启用php_openssl
Key path “file://storage\oauth-public.key” does not exist or is not readable
php artisan passport:install
[Composer\Downloader\TransportException] The “https://packagist.phpcomposer.com/p/provider-2017-07%24c3e8d929d5d06fa b76cef9c5b5e4305dbe89c1599b79e63eee70490a6b8df914.json” file could not be d ownloaded (HTTP/1.1 404 Not Found)
LogicException Key path “file:///storage/oauth-public.key” does not exist or is not readable
chown www-data:www-data storage/oauth-*.key
chmod 600 storage/oauth-*.key
[Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))
AppServiceProvider.php
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
C:\ProgramData\MySQL\MySQL Server 8.0\my.ini里default_authentication_plugin=caching_sha2_password改default_authentication_plugin=mysql_native_password
./configure --prefix=/usr/local/xml2-config
make
make install
php编译安装
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-libxml-dir=/usr/local/xml2-config
make
make install