The requested URL /test.php was not found on this server.
来源:互联网 发布:淘宝店铺装模板 编辑:程序博客网 时间:2024/06/05 09:34
WampServer自定义网站根目录
D盘新建了Demo文件夹(设定的网站根目录),新建文本test.php,拓展名改为.php
输入以下内容,如果成功,则输出success。
<?php echo "success";?>
浏览器中输入要访问的地址:localhost/test.php,出现以下结果:
Not Found
The requested URL /test.php was not found on this server.
Apache/2.4.23 (Win64) PHP/5.6.25 Server at localhost Port 80
需要配置一下apache里面的配置文件:
httpd.conf 和 httpd.vhosts.conf
打开后,搜索DocumentRoot更改路径
将${INSTALL_DIR}/www/ 和 c:/wamp64/www/ 改为d:/Demo(设定的网站根目录)
重新启动所有服务,就能够访问了
同时,要更改安装包下面的wampmanager.ini 和wampmanager.tpl配置。
搜索Menu.left,
1、wampmanager.ini下把www 目录对应的filename改为自定义目录
2、wampmanager.tpl下把${w_wwwDirectory}对应的filename改为自定义目录
退出、重启服务器,www目录变成了Demo目录,不过是乱码
点开后就转到了D盘的Demo文件夹
阅读全文
0 0
- The requested URL /test.php was not found on this server.
- Not Found The requested URL /phpMyAdmin/index.php was not found on this server.
- Not Found The requested URL /phpMyAdmin/index.php was not found on this server.解决办法
- The requested URL /**** was not found on this server
- laravel The requested URL /test was not found on this server.
- PHP zend framework The requested URL /XXX/public/index was not found on this server
- 404 Not Found The requested URL * was not found on this server
- ubuntu 出现 Not Found The requested URL /phpmyadmin/ was not found on this server.
- ubuntu14.04 安装LAMP中访问info.php提示The requested URL /index.php was not found on this server.
- The requested URL was not found on the server
- 有关phpmyadmin登录错误The requested URL /phpmyadmin was not found on this server.的解决方法
- The requested URL /OA_HTML/AppsLogin was not found on this server. 的一个解决办法
- CakePHP运行报错The requested URL XX was not found on this server.
- Zend Framework: The requested URL /newposter was not found on this server.
- The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
- phpmyadmin登陆中遇到The requested URL /phpmyadmin was not found on this server的解决方法
- The requested URL /phpMyAdmin was not found on this server.问题解决方法
- The requested URL /get_data.xml was not found on this server.
- sprintf用法
- 文章标题
- 记一次JVM调优-后续跟踪优化
- VS win32命令控制台程序与单片机串口数据传输
- Summer Training day6 codeforces292D并查集合并
- The requested URL /test.php was not found on this server.
- bzoj1864 [Zjoi2006]三色二叉树
- 队列
- 数据挖掘:概念与技术(第三版)之第十章的学习记录
- HDU 3790 最短路径问题 (dijkstra+双重条件)
- bzoj4933妙
- oracle用户管理(2)
- 树莓派之HC-SR04超声波测距模块
- ios-最大并发数