我正确设置了我的ubuntu环境,安装了正在运行的apache2,firefox提供了localhost,Apache2 Ubuntu Default Page
但是每当我尝试访问使用netbeans创建的网站时,我都会收到404错误。http://localhost/PhpProject1/index.php
是netbeans尝试运行我的代码的URL。创建此项目时,所有设置均为默认设置。源文件夹:/var/www/PhpProject2
尝试运行项目时,我得到以下信息:
Not Found
The requested URL /PhpProject2/index.php was not found on this server.
apache的新的默认根文件夹为/var/www/html
,因此您的Source文件夹应为/var/www/html/PhpProject2
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句