phpstudy 新项目配置

重新导出autoload.php  

执行composer dumpautoload

使用mysql+nginx,新建网站这里的配置,多个网站可以同时使用80端口

根路径要执行laravel的public路径

phpstudy 新项目配置

phpstudy 新项目配置

server {
        listen        80;
        server_name  www.kaibook.com kaibook.com;
        root   "D:/study/book/public";
        location / {
            index index.php index.html error/index.html;
            try_files $uri $uri/ /index.php?$query_string;
            include D:/study/book/public/nginx.htaccess;
            autoindex  off;
        }
        location ~ \.php(.*)$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }
}

 

phpstudy 新项目配置

上一篇:cgi、fast-cgi、php-cgi、php-fpm概念梳理


下一篇:CSS样式-浮动