🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
PHP运行环境线上部署方式: 1.server panel:宝塔 / 其他 2.一键安装包:LAMP / LAMP 3.独立安装: PHP: https://windows.php.net/download#php-7.3 MySQL: https://dev.mysql.com/downloads/windows/installer/8.0.html Apache: https://httpd.apache.org/download.cgi#apache24 <hr/> 1.在C:\web\php-7.3.3,将php.ini-development修改为php.ini 2.C:/web/Apache24/conf/httpd.conf打开修改: ``` DirectoryIndex index.html --> DirectoryIndex index.html index.php ``` ``` LoadModule php7_module "C:/web/php-7.3.3/php7apache2_4.dll" PHPIniDir "C:/web/php-7.3.3" AddType application/x-httpd-php .php .phtml ``` 2.在C:/web/php-7.3.3/php.ini打开修改: ``` extension_dir = "C:/web/php-7.3.3/ext" ``` 启用:mysqli和pdo\_mysql ``` extension=mysqli extension=pdo_mysql ``` mysql 8需要运行: ``` alter user 'root'@'localhost' identified with mysql_native_password by 'root'; ``` 参考: https://jingyan.baidu.com/article/cdddd41c60bc3f53cb00e1aa.html https://blog.csdn.net/zjy_android_blog/article/details/81777142 https://github.com/laradock/laradock/issues/1390