Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 本地虚拟主机_Php_Apache_Debian - Fatal编程技术网

Php 本地虚拟主机

Php 本地虚拟主机,php,apache,debian,Php,Apache,Debian,我遵循了上面链接中显示的步骤 #mkdir -p /var/www/smartschool.com/public_html #chown rushabh:rushabh -R /var/www/smartschool.com #chmode 755 -R /var/www/smartschool.com #vi /var/www/smartschool.com/public_html/idex.html #cp /etc/apache2/sites-available/default /etc/

我遵循了上面链接中显示的步骤

#mkdir -p /var/www/smartschool.com/public_html
#chown rushabh:rushabh -R /var/www/smartschool.com
#chmode 755 -R /var/www/smartschool.com
#vi /var/www/smartschool.com/public_html/idex.html
#cp /etc/apache2/sites-available/default /etc/apache2/sites-available/smartschool.com
#vi /etc/apache2/sites-available/smartschool.com

<VirtualHost *:80>
    ServerAdmin webmaster@smartschool.com
    ServerName smartschool.com
    ServerAlias www.smartschool.com [...]
#a2ensite smartschool.com
#service apache2 restart
#mkdir-p/var/www/smartschool.com/public\u html
#chown rushabh:rushabh-R/var/www/smartschool.com
#chmode755-R/var/www/smartschool.com
#vi/var/www/smartschool.com/public_html/idex.html
#cp/etc/apache2/sites available/default/etc/apache2/sites available/smartschool.com
#vi/etc/apache2/sites available/smartschool.com
服务器管理员webmaster@smartschool.com
ServerName smartschool.com
ServerAlias www.smartschool.com[…]
#a2ensite smartschool.com
#服务apache2重新启动
现在我的firefox正在向我展示 未找到 在此服务器上找不到请求的URL/

smartschool.com端口80上的Apache/2.2.22(Debian)服务器


我错过什么了吗?提前谢谢你

你也更新了你的主机文件吗?是的,我用127.0.0.1 smartschool.com更新了/etc/host,没有这个。。。在这两种情况下,它都不起作用。。。未编写127.0.0.1 smartschool.com时,浏览器搜索页面并最终显示加载页面时出现的问题您是否设置了
DocumentRoot
?是否有一个
目录
指令引用授予访问权限的
文档根
?您是否关闭了
?没有,仍然不工作