laravel_blog

Laravel诗词博客-匠心编程,热爱生活。喜欢就 Star 吧

MIT License

Stars
174
Committers
1

Laravel-,

,,,, Star

,, pull ,, Issue ,

  1. Laravel5.8
  2. Bootstrap4 PC
  3. Laravel-admin1.73
  4. jQuery Pjax
  5. MarkDown Simditor
  6. Live2D
  7. may be

  • NginxApacheweb
  • MySQL5.6
  • Redis
  • PHP >= 7.1.3 7.2

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 ****

  • Laravel

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 MySQL
    • php artisan aetherupload:groups groups
    • Linux storage``public chmod -R 777 storage chmod -R 777 public
    • Linux 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

    1. 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 
  • 3.HTTP 206 416

HTTP 416 206 PHP PHP

Composer install , Pjax Vendor PHP Composer install

  • 5., 500

.../public/

Laravel , index.php

Laravel5.8 : https://learnku.com/docs/laravel/5.8/installation/3879web

  • 6.composer install Warning: putenv() has been disabled for security reasons

PHP

  • 7., 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

    1. stream_copy_to_stream(): read of 8192 bytes failed with errno=21 Is a directory

PHP 2M php.ini upload_max_filesize = 2M

  • 9.icon: strict-origin-when-cross-originMixed Content

Nginx add_header Access-Control-Allow-Origin *; add_header Content-Security-Policy upgrade-insecure-requests;Nginx

Laravel MITMIT

  • 20191001
  • 20191107
  • 20200103 BUG,
  • 20200909 Bug,
  • 20230510