Laravel-,
,,,, Star
,, pull ,,
Issue
,
PHP
[root@centos ~]# php -m
[PHP Modules]
bcmath
Core
ctype
curl
date
dom
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvsem
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib
Issue
****
GitHub
https://github.com/qqphp
https://gitee.com/qqphp
Star
.env
,APP_DEBUG = false
APP_URL = https://qqphp.com()
QUEUE_CONNECTION = database
DB_CONNECTION = mysql
DB_HOST = 127.0.0.1
DB_PORT = 3306
DB_DATABASE =
DB_USERNAME =
DB_PASSWORD =
.../laravel_blog/sql/qqphp.sql
MySQLstorage``public
chmod -R 777 storage
chmod -R 777 public
ln -s /www/wwwroot//storage/ /www/wwwroot//public/
.env
UPLOAD_TYPE=admin
.env
UPLOAD_TYPE=qiniu
config/filesystems.php
'qiniu' => [
'driver' => 'qiniu',
'domains' => [
'default' => 'qiniu.qqphp.com', // CDN *
'https' => '', // HTTPS
'custom' => '', //
],
'access_key'=> 'Yne-lN5CK1a0**********duEEylaoUjQAI', //AccessKey*
'secret_key'=> 'I2AecMg_MHUxEj**********zZo9hSWykRx3NO', //SecretKey*
'bucket' => 'leiyong-blog', //Bucket *
'notify_url'=> '', //
'url' => '', // url
'access' => '', // public private
],
/admin
:
admin
:admin
Laravel
composer install
,?MySQL, PHP PHP >= 7.1.3 Linux
php -m
public
storage
PHP
php.ini
file_uploads = on; # HTTP
upload_max_filesize = 1024m; #
post_max_size = 1024m; # POST PHP
max_execution_time = 300; # PHP ()
memory_limit = 256m; # PHP
HTTP 416 206 PHP PHP
Composer install
, PjaxVendor
PHPComposer install
.../public/
Laravel ,
index.php
Laravel5.8 :
https://learnku.com/docs/laravel/5.8/installation/3879
web
Warning: putenv() has been disabled for security reasons
PHP
Warning: require(/www/wwwroot/blog/code/laravel_blog/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/blog/code/laravel_blog/public/index.php on line 24
open_basedir PHP
stream_copy_to_stream(): read of 8192 bytes failed with errno=21 Is a directory
PHP 2M php.ini
upload_max_filesize = 2M
Nginx
add_header Access-Control-Allow-Origin *;
add_header Content-Security-Policy upgrade-insecure-requests;
Nginx
Laravel MITMIT