xampp

Laravel: how to access a file in the local disk? - File does not exist

被刻印的时光 ゝ 提交于 2021-01-29 04:32:59
问题 I'm trying to edit an excel file after uploading it in laravel. the file is uploaded to local disk, so no one can access it from the public. Filesystems.php 'local' => [ 'driver' => 'local', 'root' => storage_path('app') Routes.php Route::get('test',function() { // Create new PHPExcel object $objPHPExcel = new PHPExcel(); $objPHPExcel = PHPExcel_IOFactory::load(Storage::disk('local')->url('margin/analyser/0IGkQQgmGXkHrV9ISnBTrGyZFUPfjz3cWJbLGbDN.xlsx')); $objPHPExcel->setActiveSheetIndex(0);

Why does mod_rewrite redirect to /index.php/index.php/index.php etc

人盡茶涼 提交于 2021-01-28 12:27:57
问题 I want every subdomain to act as a folder, so basicly: projects.dev -> / test.projects.dev -> /test amazing-project.projects.dev -> /amazing-project And I have this code in my Virtualhost file: <VirtualHost *:80> ServerName projects.dev DocumentRoot "D:/xampp/htdocs/projects" ServerAlias *.projects.dev RewriteEngine on RewriteCond %{HTTP_HOST} ^(.*)\.projects\.dev RewriteRule ^/(.*)$ "D:/xampp/htdocs/projects/%1/$1" [L,R=301] </VirtualHost> However when i go to "designs.projects.dev" it gets

How to connect sql developer to XAMPP MYSQL server

落花浮王杯 提交于 2021-01-28 02:48:06
问题 I need to connect my sql developer to a localhost XAMPP server username: root password: root hostname: 127.0.0.1 port: 3306 SID: ? service name: ? It needs SID or service name. so what are they? and how to know them 回答1: Download platform independent driver at http://dev.mysql.com/downloads/file.php?id=456317 Unzip the package and place the file mysql-connector-java-5.1.35-bin in folder <Path to SQL Developer>\sqldeveloper\extensions Open SQL Developer and add JDBC driver above in Extras ,

php7ts.dll cannot load into server

做~自己de王妃 提交于 2021-01-27 18:10:30
问题 Today I have installed php7 , but when I restart the apache, it couldn't start. again despite I edited the httpd-xampp.conf file to config php7 . anyway I went to C:/xampp and run the apache_start.bat , then I saw the following error Apache 2 is starting ... httpd.exe: Syntax error on line 456 of C:/xampp/apache/conf/httpd.conf: Syntax error on line 17 of C:/xampp/apache/conf/extra/httpd-xampp.conf: Cannot load C:/xampp/php/php7ts.dll into server: The specified module could not be found.

Why can't I upgrade MySQL in Xampp?

元气小坏坏 提交于 2021-01-27 07:20:17
问题 I followed this guide https://superuser.com/a/860604 However, when I run mysql it fall and get me error: 2017-12-15 12:24:58 10592 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'min_value' at position 3 to have type varbinary(255), found type varchar(255). 2017-12-15 12:24:58 10592 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'max_value' at position 4 to have type varbinary(255), found type varchar(255). What's going wrong? 回答1: This

Why can't I upgrade MySQL in Xampp?

﹥>﹥吖頭↗ 提交于 2021-01-27 07:19:13
问题 I followed this guide https://superuser.com/a/860604 However, when I run mysql it fall and get me error: 2017-12-15 12:24:58 10592 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'min_value' at position 3 to have type varbinary(255), found type varchar(255). 2017-12-15 12:24:58 10592 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'max_value' at position 4 to have type varbinary(255), found type varchar(255). What's going wrong? 回答1: This

如何使用XAMPP搭建本地环境的WordPress网站

故事扮演 提交于 2021-01-24 12:51:38
想学习WordPress建站,不想买服务器? 您是否使用XAMPP在计算机上搭建建本地环境WordPress网站?在电脑上搭建本地环境的WordPress可帮助您试用WordPress,测试主题和插件以及学习WordPress开发。 在本文中,我们将向您展示如何使用XAMPP轻松创建本地环境的WordPress网站。 为什么要搭建本地WordPress网站?   搭建本地WordPress网站是开发人员和网站所有者的常见做法,可以让您测试WordPress,而无需在互联网上创建实际的网站。   本地网站仅在您的计算机上可见。您可以尝试不同的WordPress主题和插件,测试其功能,并学习WordPress基础知识。   如果您已经拥有WordPress网站,则可以创建您网站的副本,在网站上实施之前尝试新的功能。   重要提示:只有您在计算机上才能看到本地网站。如果您想制作一个实时网站,则需要一个域名和WordPress托管。 什么是XAMMP?   XAMPP是一个软件包,其中包括在计算机上设置本地服务器环境所需的所有内容。   为了创建本地WordPress网站,您需要在计算机上设置Web服务器软件(Apache),PHP和MySQL。   PHP是一种编程语言,而MySQL是一种数据库管理软件。两者都需要运行WordPress。   对于初学者,安装它们非常困难

Cannot load routing modules after building in Angular

萝らか妹 提交于 2021-01-20 07:38:06
问题 I am trying to build my angular app und serve it on xampp, but after building my Angular Project and copying the dist folder into the htdocs folder, I cannot access the routing modules. When running the angular app with ng serve, I have no problems accessing the route in the module, but after building it, I am getting an 404 error when trying to acess a route thats in the routing module. The routes that are in the app module work just fine. My app-routing.module.ts: import { NgModule } from '

对 SolarWinds 事件更深的思考:如何防御供应链攻击

旧城冷巷雨未停 提交于 2021-01-15 13:10:57
简介: 消灭企业安全体系中“隐秘的角落” ———— APT攻击愈演愈烈,与SolarWinds相关的安全反思已持续半月,阿里云安全带来了面向供应链攻击特征属性的全面攻防观察,以飨从业者。 ———— 后期精彩的APT内网对抗往往依赖于「先从外部撕开」一道口子,对于黑客而言, 脆弱的供应链无异于一块「新大陆」,成为击穿「关键基础设施」的最佳切入点。 应用开发方式变革引入供应链风险 随着企业上云,传统的网络边界正在逐渐消失,尤其是突如其来的疫情,更是让几乎所有企业都不得不进行远程办公,员工开始从家庭网络、咖啡厅与企业网络建立连接, 企业的IT架构正在从「有边界」向「无限边界」发生转变。 受益于开源软件与成熟的三方产品和服务(COTS)的优势,国内互联网、金融行业快速发展。在COTS模式下,企业可以快速采购到能够满足当前业务需要的生产工具、软件或硬件产品,从而节省成本和时间。 开源软件的蓬勃发展改变了应用开发形态,现代应用的开发人员不再首选自研,而是会看当前业界是否已有成熟的框架或解决方案。 Synopsys公司发布的《2020年开源安全和风险分析OSSRA报告》中指出,当前超过90%的现代应用融入了开源组件,平均每个应用包含超过124个开源组件,其中49%的开源组件存在高危漏洞。 从政府服务到金融机构每个组织都依靠软件来为客户提供服务。嵌入式软件不再仅仅局限于计算机

搭建DVWA渗透测试靶机

落爺英雄遲暮 提交于 2021-01-03 11:34:26
实验器材:Windows 2008 windows7 准备一台带有Xampp环境的2008的windows将DVWA的软件包放到c盘xampp目录下的htdoc 进入htdoc点击DVWA的目录下的DVWA_JIsuxia解压 去配置htdoc点击DVWA的目录下config下的config.inc.php右键vim打开编辑 编辑21行的数据库密码,还有24行的端口号 29 30行修改公钥私钥保存退出 打开Xampp如下图编辑(PHP(php.ini)) 打开之后是记事本改成vim格式修改: 点击右上角的config配置如图找到vim的位置: 再去打开config编辑就变成了vim格式并修改配置保存退出: 打开本机浏览器输入localhost设置密码: 修改密码成功后再次登录报错修改配置文件: 修改21行的密码保存退出 刷新浏览器页面直接登录 打开windows7客户端访问: 出现红色的disabled需要修改配置文件: 重启apache 再刷新网页 登陆成功,用户名为admin 密码password 创建(windows2008)一个a.php的网站: 另存为看存储名称和存储位置: C盘–XAMPP-htdocs-a.php 访问看一下是否成功: 来源: oschina 链接: https://my.oschina.net/u/4312205/blog/4874264